Scorum
Namespaces | Functions
atomicswap_helper.cpp File Reference
#include <scorum/protocol/atomicswap_helper.hpp>
#include <scorum/protocol/config.hpp>
#include <fc/crypto/sha512.hpp>
#include <fc/crypto/hex.hpp>
#include <fc/crypto/ripemd160.hpp>
#include <sstream>

Go to the source code of this file.

Namespaces

 scorum
 
 scorum::protocol
 
 scorum::protocol::atomicswap
 

Functions

std::string scorum::protocol::atomicswap::get_secret_hex (const std::string &secret, const uint8_t secret_length)
 
std::string scorum::protocol::atomicswap::get_secret_hash (const std::string &secret_hex)
 
void scorum::protocol::atomicswap::validate_secret (const std::string &secret_hex)
 
void scorum::protocol::atomicswap::validate_secret_hash (const std::string &secret_hash)
 
void scorum::protocol::atomicswap::validate_contract_metadata (const std::string &metadata)
 
fc::sha256 scorum::protocol::atomicswap::get_contract_hash_obj (const account_name_type &from, const account_name_type &to, const std::string &secret_hash)
 
std::string scorum::protocol::atomicswap::get_contract_hash_hex (const account_name_type &from, const account_name_type &to, const std::string &secret_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)