20 #ifndef RIPPLE_PROTOCOL_TOKENS_H_INCLUDED
21 #define RIPPLE_PROTOCOL_TOKENS_H_INCLUDED
23 #include <boost/optional.hpp>
boost::optional< AccountID > parseHex(std::string const &s)
Parse AccountID from hexadecimal string.
std::string decodeBase58Token(std::string const &s, TokenType type)
Decode a token of given type encoded using Base58Check and the XRPL alphabet.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string encodeBase58Token(TokenType type, void const *token, std::size_t size)
Encode data in Base58Check format using XRPL alphabet.
boost::optional< AccountID > parseHexOrBase58(std::string const &s)
Parse AccountID from hex or checked base58 string.
boost::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.