Scorum
|
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) |
using scorum::protocol::atomicswap::hash_index_type = typedef fc::fixed_string_32 |
Definition at line 12 of file atomicswap_helper.hpp.
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.
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.
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.
std::string scorum::protocol::atomicswap::get_secret_hash | ( | const std::string & | secret_hex | ) |
Definition at line 40 of file atomicswap_helper.cpp.
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.
void scorum::protocol::atomicswap::validate_contract_metadata | ( | const std::string & | metadata | ) |
Definition at line 88 of file atomicswap_helper.cpp.
void scorum::protocol::atomicswap::validate_secret | ( | const std::string & | secret_hex | ) |
Definition at line 67 of file atomicswap_helper.cpp.
void scorum::protocol::atomicswap::validate_secret_hash | ( | const std::string & | secret_hash | ) |
Definition at line 77 of file atomicswap_helper.cpp.