20 #ifndef RIPPLE_PROTOCOL_SECRETKEY_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SECRETKEY_H_INCLUDED
23 #include <ripple/basics/Buffer.h>
24 #include <ripple/basics/Slice.h>
25 #include <ripple/protocol/KeyType.h>
26 #include <ripple/protocol/PublicKey.h>
27 #include <ripple/protocol/Seed.h>
28 #include <ripple/protocol/tokens.h>
109 return !(lhs == rhs);
174 sign(PublicKey
const& pk, SecretKey
const& sk, Slice
const& message);
An immutable linear range of bytes.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
const_iterator end() const noexcept
std::pair< PublicKey, SecretKey > generateKeyPair(KeyType type, Seed const &seed)
Generate a key pair deterministically.
bool operator==(Manifest const &lhs, Manifest const &rhs)
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
Buffer signDigest(PublicKey const &pk, SecretKey const &sk, uint256 const &digest)
Generate a signature for a message digest.
PublicKey derivePublicKey(KeyType type, SecretKey const &sk)
Derive the public key from a secret key.
bool operator!=(Manifest const &lhs, Manifest const &rhs)
std::uint8_t const * data() const
SecretKey generateSecretKey(KeyType type, Seed const &seed)
Generate a new secret key deterministically.
const_iterator cend() const noexcept
std::pair< PublicKey, SecretKey > randomKeyPair(KeyType type)
Create a key pair using secure random numbers.
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.
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &m)
Generate a signature for a message.
std::uint8_t const * const_iterator
const_iterator begin() const noexcept
SecretKey & operator=(SecretKey const &)=default
std::optional< AccountID > parseBase58(std::string const &s)
Parse AccountID from checked, base58 string.
const_iterator cbegin() const noexcept
SecretKey randomSecretKey()
Create a secret key using secure random numbers.
std::string to_string() const
Convert the secret key to a hexadecimal string.