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 PublicKeyType = PublicKey
 Type of public key. More...
 
using PrivateKeyType = PrivateKey
 Type of private key. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Keypair >
using ModelType = Keypair
 

Public Member Functions

 Keypair (const PublicKeyType &public_key, const PrivateKeyType &private_key)
 
const PublicKeyTypepublicKey () 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

Constructor & Destructor Documentation

shared_model::crypto::Keypair::Keypair ( const PublicKeyType public_key,
const PrivateKeyType private_key 
)
explicit

Member Function Documentation

bool shared_model::crypto::Keypair::operator== ( const Keypair keypair) const
override

Here is the call graph for this function:

const Keypair::PrivateKeyType & shared_model::crypto::Keypair::privateKey ( ) const
Returns
private key

Here is the caller graph for this function:

const Keypair::PublicKeyType & shared_model::crypto::Keypair::publicKey ( ) const
Returns
public key

Here is the caller graph for this function:

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: