mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
util: make EncodeBase58Check consume Spans
This commit is contained in:
@@ -39,9 +39,9 @@ NODISCARD bool DecodeBase58(const char* psz, std::vector<unsigned char>& vchRet,
|
||||
NODISCARD bool DecodeBase58(const std::string& str, std::vector<unsigned char>& vchRet, int max_ret_len);
|
||||
|
||||
/**
|
||||
* Encode a byte vector into a base58-encoded string, including checksum
|
||||
* Encode a byte span into a base58-encoded string, including checksum
|
||||
*/
|
||||
std::string EncodeBase58Check(const std::vector<unsigned char>& vchIn);
|
||||
std::string EncodeBase58Check(Span<const unsigned char> input);
|
||||
|
||||
/**
|
||||
* Decode a base58-encoded string (psz) that includes a checksum into a byte
|
||||
|
||||
Reference in New Issue
Block a user