5#include <chainparams.h>
32 std::string signature;
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
An encapsulated private key.
RAII class initializing and deinitializing global state for elliptic curve support.
std::string ConsumeRandomLengthString(size_t max_length)
T PickValueInArray(const T(&array)[size])
uint256 MessageHash(const std::string &message)
Hashes a message for signing and verification in a manner that prevents inadvertently signing a trans...
bool MessageSign(const CKey &privkey, const std::string &message, std::string &signature)
Sign a message.
std::string SigningResultString(const SigningResult res)
MessageVerificationResult MessageVerify(const std::string &address, const std::string &signature, const std::string &message)
Verify a signed message.
std::string EncodeDestination(const CTxDestination &dest)
void initialize_message()
FUZZ_TARGET(message,.init=initialize_message)
@ PRIVATE_KEY_NOT_AVAILABLE
MessageVerificationResult
The result of a signed message verification.
@ OK
The message verification was successful.
CKey ConsumePrivateKey(FuzzedDataProvider &fuzzed_data_provider, std::optional< bool > compressed) noexcept