OpenCBDC Transaction Processor
|
#include "messages.hpp"
#include "parsec/broker/interface.hpp"
#include "util/common/buffer.hpp"
#include "util/common/hash.hpp"
#include "util/common/keys.hpp"
#include "util/common/logging.hpp"
#include <evmc/evmc.hpp>
#include <evmc/hex.hpp>
#include <memory>
#include <secp256k1.h>
#include <secp256k1_extrakeys.h>
#include <secp256k1_recovery.h>
Go to the source code of this file.
Namespaces | |
namespace | cbdc |
namespace | cbdc::parsec |
namespace | cbdc::parsec::agent |
namespace | cbdc::parsec::agent::runner |
Functions | |
auto | cbdc::parsec::agent::runner::to_uint64 (const evmc::uint256be &v) -> uint64_t |
Converts an uint256be to a uint64_t, ignoring higher order bits. | |
template<typename T > | |
auto | cbdc::parsec::agent::runner::to_hex (const T &v) -> std::string |
Converts a bytes-like object to a hex string. | |
auto | cbdc::parsec::agent::runner::to_hex_trimmed (const evmc::bytes32 &b, const std::string &prefix) -> std::string |
void | cbdc::parsec::agent::runner::add_to_bloom (cbdc::buffer &bloom, const cbdc::buffer &entry) |
Adds an entry to a bloom value. | |
template<typename T > | |
auto | cbdc::parsec::agent::runner::from_hex (const std::string &hex) -> typename std::enable_if_t< std::is_same< T, evmc::bytes32 >::value||std::is_same< T, evmc::address >::value, std::optional< T > > |
Parses hexadecimal representation in string format to T. | |
auto | cbdc::parsec::agent::runner::uint256be_from_hex (const std::string &hex) -> std::optional< evmc::uint256be > |
Generates a uint256be from a hex string. | |
auto | cbdc::parsec::agent::runner::mint_initial_accounts (const std::shared_ptr< logging::log > &log, const std::shared_ptr< parsec::broker::interface > &broker) -> bool |
Mints a set of initial accounts with funds, bypassing the agent. | |