 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
24 const std::string random_encoded_string(buffer.begin(), buffer.end());
26 std::vector<unsigned char> decoded;
28 const std::string encoded_string =
EncodeBase58(decoded);
40 std::string decoded_string =
DecodeBase32(random_encoded_string, &pf_invalid);
42 const std::string encoded_string =
EncodeBase32(decoded_string);
47 decoded_string =
DecodeBase64(random_encoded_string, &pf_invalid);
49 const std::string encoded_string =
EncodeBase64(decoded_string);
static bool DecodeBase58Check(const char *psz, std::vector< unsigned char > &vchRet, int max_ret_len)
std::string TrimString(const std::string &str, const std::string &pattern=" \f\n\r\t\v")
std::string EncodeBase64(Span< const unsigned char > input)
bool DecodeBase64PSBT(PartiallySignedTransaction &psbt, const std::string &base64_tx, std::string &error)
Decode a base64ed PSBT into a PartiallySignedTransaction.
std::string EncodeBase58Check(Span< const unsigned char > input)
Encode a byte span into a base58-encoded string, including checksum.
void initialize_base_encode_decode()
std::string EncodeBase58(Span< const unsigned char > input)
Why base-58 instead of standard base-64 encoding?
std::vector< unsigned char > DecodeBase64(const char *p, bool *pf_invalid)
static bool DecodeBase58(const char *psz, std::vector< unsigned char > &vch, int max_ret_len)
std::string EncodeBase32(Span< const unsigned char > input, bool pad)
Base32 encode.
std::vector< unsigned char > DecodeBase32(const char *p, bool *pf_invalid)
Users of this module must hold an ECCVerifyHandle.
A version of CTransaction with the PSBT format.
bool error(const char *fmt, const Args &... args)
FUZZ_TARGET_INIT(base_encode_decode, initialize_base_encode_decode)
std::string ToLower(const std::string &str)
Returns the lowercase equivalent of the given string.