|
CatapultServer
v0.5.0.1 (Elephant)
|
Represents a private key. More...

Public Member Functions | |
| PrivateKey ()=default | |
| Creates a private key. More... | |
| ~PrivateKey () | |
| Destroys the private key. More... | |
| PrivateKey (PrivateKey &&rhs) | |
| Move constructor. More... | |
| PrivateKey & | operator= (PrivateKey &&rhs) |
| Move assignment operator. More... | |
| auto | begin () const |
| Returns a const iterator to the beginning of the raw key. More... | |
| auto | end () const |
| Returns a const iterator to the end of the raw key. More... | |
| auto | size () const |
| Returns the size of the key. More... | |
| auto | data () const |
| Returns a const pointer to the raw key. More... | |
| bool | operator== (const PrivateKey &rhs) const |
Returns true if this key and rhs are equal. More... | |
| bool | operator!= (const PrivateKey &rhs) const |
Returns true if this key and rhs are not equal. More... | |
Static Public Member Functions | |
| static PrivateKey | FromString (const std::string &str) |
| Creates a private key from str. More... | |
| static PrivateKey | FromStringSecure (char *pRawKey, size_t keySize) |
| Creates a private key from pRawKey with size keySize and securely erases pRawKey. More... | |
| static PrivateKey | Generate (const supplier< uint8_t > &generator) |
| Generates a new private key using the specified byte generator. More... | |
Static Private Member Functions | |
| static PrivateKey | FromString (const char *const pRawKey, size_t keySize) |
Private Attributes | |
| Key | m_key |
Represents a private key.
|
default |
Creates a private key.
| catapult::crypto::PrivateKey::~PrivateKey | ( | ) |
Destroys the private key.

| catapult::crypto::PrivateKey::PrivateKey | ( | PrivateKey && | rhs | ) |
Move constructor.
|
inline |
Returns a const iterator to the beginning of the raw key.


|
inline |
Returns a const pointer to the raw key.


|
inline |
Returns a const iterator to the end of the raw key.


|
staticprivate |

|
static |
Creates a private key from str.

|
static |
Creates a private key from pRawKey with size keySize and securely erases pRawKey.

|
static |
Generates a new private key using the specified byte generator.


| bool catapult::crypto::PrivateKey::operator!= | ( | const PrivateKey & | rhs | ) | const |
Returns true if this key and rhs are not equal.
| PrivateKey & catapult::crypto::PrivateKey::operator= | ( | PrivateKey && | rhs | ) |
Move assignment operator.
| bool catapult::crypto::PrivateKey::operator== | ( | const PrivateKey & | rhs | ) | const |
Returns true if this key and rhs are equal.
|
inline |
Returns the size of the key.


|
private |