20 #ifndef RIPPLE_PROTOCOL_TOKENS_H_INCLUDED
21 #define RIPPLE_PROTOCOL_TOKENS_H_INCLUDED
23 #include <boost/optional.hpp>
std::string base58EncodeToken(TokenType type, void const *token, std::size_t size)
boost::optional< AccountID > parseHex(std::string const &s)
Parse AccountID from hexadecimal string.
std::string base58EncodeTokenBitcoin(TokenType type, void const *token, std::size_t size)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
boost::optional< AccountID > parseHexOrBase58(std::string const &s)
Parse AccountID from hex or checked base58 string.
static std::string decodeBase58Token(std::string const &s, TokenType type, InverseArray const &inv)
std::string decodeBase58TokenBitcoin(std::string const &s, TokenType type)
Decode a Base58 token using Bitcoin alphabet.
boost::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.