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 

Member Function Documentation

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

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Make string developer representation of object

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: