6#ifndef BITCOIN_KEY_IO_H
7#define BITCOIN_KEY_IO_H
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
An encapsulated secp256k1 private key.
std::string EncodeDestination(const CTxDestination &dest, const Config &config)
bool IsValidDestinationString(const std::string &str, const CChainParams ¶ms)
CExtPubKey DecodeExtPubKey(const std::string &str)
std::string EncodeExtPubKey(const CExtPubKey &extpubkey)
std::string EncodeSecret(const CKey &key)
std::string EncodeExtKey(const CExtKey &extkey)
CKey DecodeSecret(const std::string &str)
CTxDestination DecodeDestination(const std::string &addr, const CChainParams &)
CTxDestination DecodeLegacyAddr(const std::string &str, const CChainParams ¶ms)
std::string EncodeLegacyAddr(const CTxDestination &dest, const CChainParams ¶ms)
CExtKey DecodeExtKey(const std::string &str)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
std::variant< CNoDestination, PKHash, ScriptHash > CTxDestination
A txout script template with a specific destination.