|
Equity
Bitcoin Protocol Library
|
A Bitcoin public key. More...
#include <PublicKey.h>
Public Member Functions | |
| PublicKey (std::vector< uint8_t > const &k) | |
| PublicKey (uint8_t const *data, size_t size) | |
| PublicKey (PrivateKey const &k) | |
| std::vector< uint8_t > | value () const |
| Returns the raw key bytes. | |
| bool | compressed () const |
| Returns true if the public key is compressed. | |
| bool | valid () const |
| Returns true if the key is valid. | |
| std::string | toHex () const |
| Returns the key as a hex string. | |
Static Public Attributes | |
| static size_t const | COMPRESSED_SIZE = 33 |
| Size of a compressed public key. | |
| static size_t const | UNCOMPRESSED_SIZE = 65 |
| Size of an uncompressed public key. | |
A Bitcoin public key.
Bitcoin public keys are assumed to be in the form specified by ANSI X9.62.
|
explicit |
| k | raw key bytes |
| PublicKey::PublicKey | ( | uint8_t const * | data, |
| size_t | size | ||
| ) |
| data | raw key bytes |
| size | size of the data |
|
explicit |
| k | private key |
1.8.11