6 #include <fc/crypto/sha256.hpp>
10 namespace atomicswap {
15 std::string
get_secret_hex(
const std::string& secret,
const uint8_t secret_length = 0);
fc::fixed_string_32 hash_index_type
void validate_contract_metadata(const std::string &metadata)
void validate_secret(const std::string &secret_hex)
hash_index_type get_contract_hash(const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
void validate_secret_hash(const std::string &secret_hash)
fc::sha256 get_contract_hash_obj(const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
std::string get_secret_hash(const std::string &secret_hex)
std::string get_secret_hex(const std::string &secret, const uint8_t secret_length)
std::string get_contract_hash_hex(const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
fc::fixed_string_16 account_name_type