113class InvalidState :
public std::runtime_error
117 : runtime_error(
"invalid state") {};
119class CryptoException :
public std::runtime_error
122 CryptoException(
const char* err)
123 : runtime_error(err) {};
This file defined Address alias for FixedHash of 160 bits and some special Address constants.
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
Simple class that represents a "key pair".
bool operator==(KeyPair const &_c) const
Secret const & secret() const
Create from an encrypted seed.
bool operator!=(KeyPair const &_c) const
Public const & pub() const
Retrieve the public key.
Address const & address() const
Retrieve the associated address of the public key.
h520 Signature
A signature: 65 bytes: r: [0, 32), s: [32, 64), v: 64.
Address toAddress(Public const &_public)
Convert a public key to address.
Public toPublic(Secret const &_secret)
Convert a secret key into the public key equivalent.
std::vector< Secret > Secrets
A vector of secrets.
SignatureStruct(Signature const &_s)
bool isValid() const noexcept
SignatureStruct()=default
SignatureStruct(h256 const &_r, h256 const &_s, uint8_t _v)