 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
26 const std::string random_hex_string(buffer.begin(), buffer.end());
27 const std::vector<unsigned char> data =
ParseHex(random_hex_string);
28 const std::string hex_data =
HexStr(data);
29 if (
IsHex(random_hex_string)) {
bool ParseHashStr(const std::string &strHex, uint256 &result)
Parse a hex string into 256 bits.
std::vector< unsigned char > ParseHex(const char *psz)
bool IsHexNumber(const std::string &str)
Return true if the string is a hex number, optionally prefixed with "0x".
bool IsHex(const std::string &str)
CPubKey HexToPubKey(const std::string &hex_in)
bool DecodeHexBlockHeader(CBlockHeader &, const std::string &hex_header)
uint256 uint256S(const char *str)
Users of this module must hold an ECCVerifyHandle.
FUZZ_TARGET_INIT(hex, initialize_hex)
bool DecodeHexBlk(CBlock &, const std::string &strHexBlk)
std::string HexStr(const Span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
std::string ToLower(const std::string &str)
Returns the lowercase equivalent of the given string.