26 assert(std::ranges::equal(std::as_bytes(std::span{data}), bytes));
static std::optional< transaction_identifier > FromHex(std::string_view hex)
static std::optional< uint256 > FromUserHex(std::string_view str)
static std::optional< uint256 > FromHex(std::string_view str)
bool DecodeHexBlockHeader(CBlockHeader &header, const std::string &hex_header)
bool DecodeHexBlk(CBlock &block, const std::string &strHexBlk)
std::string HexStr(const std::span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
CPubKey HexToPubKey(const std::string &hex_in)
std::vector< Byte > ParseHex(std::string_view hex_str)
Like TryParseHex, but returns an empty vector on invalid input.
bool IsHex(std::string_view str)
std::optional< std::vector< Byte > > TryParseHex(std::string_view str)
Parse the hex string into bytes (uint8_t or std::byte).
std::string ToLower(std::string_view str)
Returns the lowercase equivalent of the given string.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.