20 #ifndef RIPPLE_PROTOCOL_SEED_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SEED_H_INCLUDED
23 #include <ripple/basics/Slice.h>
24 #include <ripple/basics/base_uint.h>
25 #include <ripple/protocol/tokens.h>
An immutable linear range of bytes.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Integers of any length that is a multiple of 32-bits.
std::string seedAs1751(Seed const &seed)
Encode a Seed in RFC1751 format.
Seed randomSeed()
Create a seed using secure random numbers.
std::optional< Seed > parseGenericSeed(std::string const &str, bool rfc1751)
Attempt to parse a string as a seed.
std::array< uint8_t, 16 > buf_
Seed generateSeed(std::string const &passPhrase)
Generate a seed deterministically.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const_iterator begin() const noexcept
Seeds are used to generate deterministic secret keys.
Seed & operator=(Seed const &)=default
std::string encodeBase58Token(TokenType type, void const *token, std::size_t size)
Encode data in Base58Check format using XRPL alphabet.
const_iterator cend() const noexcept
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
const_iterator end() const noexcept
std::array< uint8_t, 16 >::const_iterator const_iterator
std::uint8_t const * data() const
const_iterator cbegin() const noexcept