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