1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-18 12:30:02 +02:00

include/libeosio/base58.hpp: Change decode function to accept vector instead of string.

This commit is contained in:
Henrik Hautakoski 2023-03-10 10:38:18 +01:00
parent ed59959b5b
commit a99a23ae9b
3 changed files with 8 additions and 6 deletions

View file

@ -40,8 +40,8 @@ std::string base58_encode(const unsigned char* pbegin, const unsigned char* pend
/**
* Base58 Decoding functions.
*/
bool base58_decode(const char* psz, std::string& out);
bool base58_decode(const std::string& str, std::string& out);
bool base58_decode(const char* psz, std::vector<unsigned char>& out);
bool base58_decode(const std::string& str, std::vector<unsigned char>& out);
/**
* Returns true if `ch` is a base58 character, false otherwise.