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

#include "private_key.hpp"

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

Public Member Functions

 PrivateKey (const std::string &private_key)
 
 PrivateKey (const Blob &blob)
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::crypto::Blob
 Blob ()=default
 
 Blob (const std::string &blob)
 
 Blob (const Bytes &blob)
 
 Blob (Bytes &&blob) noexcept
 
virtual const Bytesblob () const
 
virtual const std::string & hex () const
 
virtual size_t size () const
 
bool operator== (const Blob &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Blob >
virtual bool operator== (const ModelType &rhs) const =0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< Blob > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::crypto::Blob
using Bytes = std::vector< uint8_t >
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Blob >
using ModelType = Blob
 
- Public Types inherited from Cloneable< ModelPrimitive< Blob > >
using base_type = ModelPrimitive< Blob >
 
- Static Public Member Functions inherited from shared_model::crypto::Blob
static Blob fromHexString (const std::string &hex)
 
- Protected Member Functions inherited from shared_model::crypto::Blob
Blobclone () const override
 

Detailed Description

A special class for storing private keys.

Constructor & Destructor Documentation

shared_model::crypto::PrivateKey::PrivateKey ( const std::string &  private_key)
explicit
shared_model::crypto::PrivateKey::PrivateKey ( const Blob blob)
explicit

Member Function Documentation

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

Make string developer representation of object

Returns
string with internal state of object

Reimplemented from shared_model::crypto::Blob.

Here is the call graph for this function:


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