Scorum
Typedefs | Functions
scorum::protocol::atomicswap Namespace Reference

Typedefs

using hash_index_type = fc::fixed_string_32
 

Functions

std::string get_secret_hex (const std::string &secret, const uint8_t secret_length)
 
std::string get_secret_hash (const std::string &secret_hex)
 
void validate_secret (const std::string &secret_hex)
 
void validate_secret_hash (const std::string &secret_hash)
 
void validate_contract_metadata (const std::string &metadata)
 
fc::sha256 get_contract_hash_obj (const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
 
std::string get_contract_hash_hex (const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
 
hash_index_type get_contract_hash (const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
 

Typedef Documentation

◆ hash_index_type

using scorum::protocol::atomicswap::hash_index_type = typedef fc::fixed_string_32

Definition at line 12 of file atomicswap_helper.hpp.

Function Documentation

◆ get_contract_hash()

hash_index_type scorum::protocol::atomicswap::get_contract_hash ( const account_name_type from,
const account_name_type to,
const std::string &  secret_hash 
)

Definition at line 109 of file atomicswap_helper.cpp.

◆ get_contract_hash_hex()

std::string scorum::protocol::atomicswap::get_contract_hash_hex ( const account_name_type from,
const account_name_type to,
const std::string &  secret_hash 
)

Definition at line 103 of file atomicswap_helper.cpp.

◆ get_contract_hash_obj()

fc::sha256 scorum::protocol::atomicswap::get_contract_hash_obj ( const account_name_type from,
const account_name_type to,
const std::string &  secret_hash 
)

Definition at line 95 of file atomicswap_helper.cpp.

◆ get_secret_hash()

std::string scorum::protocol::atomicswap::get_secret_hash ( const std::string &  secret_hex)

Definition at line 40 of file atomicswap_helper.cpp.

◆ get_secret_hex()

std::string scorum::protocol::atomicswap::get_secret_hex ( const std::string &  secret,
const uint8_t  secret_length 
)

Definition at line 14 of file atomicswap_helper.cpp.

◆ validate_contract_metadata()

void scorum::protocol::atomicswap::validate_contract_metadata ( const std::string &  metadata)

Definition at line 88 of file atomicswap_helper.cpp.

◆ validate_secret()

void scorum::protocol::atomicswap::validate_secret ( const std::string &  secret_hex)

Definition at line 67 of file atomicswap_helper.cpp.

◆ validate_secret_hash()

void scorum::protocol::atomicswap::validate_secret_hash ( const std::string &  secret_hash)

Definition at line 77 of file atomicswap_helper.cpp.