1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 20:10:03 +02:00

include/libeosio/base58.hpp: adding base58_decode functions.

This commit is contained in:
Henrik Hautakoski 2023-03-09 18:18:10 +01:00
parent a43b913277
commit ed59959b5b
4 changed files with 136 additions and 0 deletions

View file

@ -36,6 +36,13 @@ std::string base58_encode(const std::string& str);
std::string base58_encode(const std::vector<unsigned char>& vch);
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);
/**
* Returns true if `ch` is a base58 character, false otherwise.
*/