OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
util.cpp File Reference
#include "util.hpp"
#include "crypto/sha256.h"
#include "format.hpp"
#include "hash.hpp"
#include "init_addresses.hpp"
#include "math.hpp"
#include "parsec/util.hpp"
#include "rlp.hpp"
#include "util/common/hash.hpp"
#include "util/serialization/util.hpp"
#include <future>
#include <optional>
#include <secp256k1.h>
Include dependency graph for agent/runners/evm/util.cpp:

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.
 
auto cbdc::parsec::agent::runner::to_hex (const evmc::address &addr) -> std::string
 
auto cbdc::parsec::agent::runner::to_hex (const evmc::bytes32 &b) -> std::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.
 
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.