hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::crypto::Keypair Class Reference

#include "keypair.hpp"

Inheritance diagram for shared_model::crypto::Keypair:
Inheritance graph
Collaboration diagram for shared_model::crypto::Keypair:
Collaboration graph

Public Types

using PrivateKeyType = PrivateKey
 Type of private key. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Keypair >
using ModelType = Keypair
 

Public Member Functions

 Keypair (shared_model::interface::types::PublicKeyHexStringView public_key_hex, const PrivateKeyType &private_key)
 
std::string const & publicKey () const
 
const PrivateKeyTypeprivateKey () const
 
bool operator== (const Keypair &keypair) const override
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Keypair >
virtual bool operator== (const ModelType &rhs) const=0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Detailed Description

Class for holding a keypair: public key and private key

Member Typedef Documentation

◆ PrivateKeyType

Constructor & Destructor Documentation

◆ Keypair()

shared_model::crypto::Keypair::Keypair ( shared_model::interface::types::PublicKeyHexStringView  public_key_hex,
const PrivateKeyType private_key 
)
explicit

Member Function Documentation

◆ operator==()

bool shared_model::crypto::Keypair::operator== ( const Keypair keypair) const
override
Here is the call graph for this function:

◆ privateKey()

const Keypair::PrivateKeyType & shared_model::crypto::Keypair::privateKey ( ) const
Returns
private key
Here is the caller graph for this function:

◆ publicKey()

std::string const & shared_model::crypto::Keypair::publicKey ( ) const
Returns
public key
Here is the caller graph for this function:

◆ toString()

std::string shared_model::crypto::Keypair::toString ( ) const
overridevirtual

Make string developer representation of object

Returns
string with internal state of object

Reimplemented from shared_model::interface::ModelPrimitive< Keypair >.

Here is the call graph for this function:

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