CatapultServer  v0.5.0.1 (Elephant)
catapult::crypto::KeyPair Class Referencefinal

Represents a pair of private key with associated public key. More...

Collaboration diagram for catapult::crypto::KeyPair:

Public Member Functions

const auto & privateKey () const
 Returns a private key of a key pair. More...
 
const auto & publicKey () const
 Returns a public key of a key pair. More...
 

Static Public Member Functions

static auto FromPrivate (PrivateKey &&privateKey)
 Creates a key pair from privateKey. More...
 
static auto FromString (const std::string &privateKey)
 Creates a key pair from privateKey. More...
 

Private Member Functions

 KeyPair (PrivateKey &&privateKey)
 

Private Attributes

PrivateKey m_privateKey
 
Key m_publicKey
 

Detailed Description

Represents a pair of private key with associated public key.

Constructor & Destructor Documentation

◆ KeyPair()

catapult::crypto::KeyPair::KeyPair ( PrivateKey &&  privateKey)
inlineexplicitprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ FromPrivate()

static auto catapult::crypto::KeyPair::FromPrivate ( PrivateKey &&  privateKey)
inlinestatic

Creates a key pair from privateKey.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromString()

static auto catapult::crypto::KeyPair::FromString ( const std::string &  privateKey)
inlinestatic

Creates a key pair from privateKey.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ privateKey()

const auto& catapult::crypto::KeyPair::privateKey ( ) const
inline

Returns a private key of a key pair.

Here is the caller graph for this function:

◆ publicKey()

const auto& catapult::crypto::KeyPair::publicKey ( ) const
inline

Returns a public key of a key pair.

Here is the caller graph for this function:

Member Data Documentation

◆ m_privateKey

PrivateKey catapult::crypto::KeyPair::m_privateKey
private

◆ m_publicKey

Key catapult::crypto::KeyPair::m_publicKey
private

The documentation for this class was generated from the following file: