TARAXA
|
#include <Common.h>
Public Member Functions | |
KeyPair (Secret const &_sec) | |
Secret const & | secret () const |
Public const & | pub () const |
Retrieve the public key. | |
Address const & | address () const |
Retrieve the associated address of the public key. | |
bool | operator== (KeyPair const &_c) const |
bool | operator!= (KeyPair const &_c) const |
Static Public Member Functions | |
static KeyPair | create () |
Create a new, randomly generated object. | |
static KeyPair | fromEncryptedSeed (bytesConstRef _seed, std::string const &_password) |
Create from an encrypted seed. | |
Private Attributes | |
Secret | m_secret |
Public | m_public |
Address | m_address |
Simple class that represents a "key pair". All of the data of the class can be regenerated from the secret key (m_secret) alone. Actually stores a tuplet of secret, public and address (the right 160-bits of the public).
Normal constructor - populates object from the given secret key. If the secret key is invalid the constructor succeeds, but public key and address stay "null".
Retrieve the associated address of the public key.
|
static |
Create a new, randomly generated object.
|
static |
Create from an encrypted seed.
|
private |
|
private |
|
private |