3 #include "crypto/Ripemd.h" 26 explicit Address(std::string
const & s);
32 Address(uint8_t
const * data,
size_t size);
45 std::array<uint8_t, SIZE>
value()
const {
return value_; }
48 bool valid()
const {
return valid_; }
51 std::string
toString(
unsigned network)
const;
55 std::array<uint8_t, SIZE> value_;
Definition: Configuration.cpp:3
size_t const RIPEMD160_HASH_SIZE
The sized of a RIPEMD-160 hash in bytes.
Definition: Ripemd.h:10
static size_t const SIZE
Number of bytes in the unencoded binary form.
Definition: Address.h:21
A Bitcoin address.
Definition: Address.h:16
std::string toString(unsigned network) const
Returns the address in Base58Check form.
Definition: Address.cpp:42
std::vector< uint8_t > PublicKey
An ECC public key.
Definition: Ecc.h:25
Address(std::string const &s)
Definition: Address.cpp:13
bool valid() const
Returns true if the address is valid.
Definition: Address.h:48
std::array< uint8_t, RIPEMD160_HASH_SIZE > Ripemd160Hash
A RIPEMD-160 hash.
Definition: Ripemd.h:11
std::array< uint8_t, SIZE > value() const
Returns the address in binary form.
Definition: Address.h:45
A Bitcoin public key.
Definition: PublicKey.h:17