diff options
| author | Sebastian Falbesoner <[email protected]> | 2020-08-10 03:03:10 +0200 |
|---|---|---|
| committer | Sebastian Falbesoner <[email protected]> | 2020-08-12 16:25:50 +0200 |
| commit | 356988e200b1debaa80d210d502d2d085c72dc64 (patch) | |
| tree | 1d44ec1ddd069ffeb785acb30c438a6a08ea2a0e /src/base58.h | |
| parent | util: make EncodeBase58 consume Spans (diff) | |
| download | discoin-356988e200b1debaa80d210d502d2d085c72dc64.tar.xz discoin-356988e200b1debaa80d210d502d2d085c72dc64.zip | |
util: make EncodeBase58Check consume Spans
Diffstat (limited to 'src/base58.h')
| -rw-r--r-- | src/base58.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base58.h b/src/base58.h index d9791d1db..b87664b78 100644 --- a/src/base58.h +++ b/src/base58.h @@ -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 |