hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::ModelCryptoProvider Class Referenceabstract

#include "model_crypto_provider.hpp"

Inheritance diagram for iroha::model::ModelCryptoProvider:
Inheritance graph
Collaboration diagram for iroha::model::ModelCryptoProvider:
Collaboration graph

Public Member Functions

virtual ~ModelCryptoProvider ()=default
 
virtual bool verify (const Transaction &tx) const =0
 
virtual bool verify (const Query &query) const =0
 
virtual bool verify (const Block &block) const =0
 
virtual void sign (Block &block) const =0
 
virtual void sign (Transaction &transaction) const =0
 
virtual void sign (Query &query) const =0
 

Detailed Description

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Crypto provider is an abstract service for making cryptography operations for business logic objects (Model).

Constructor & Destructor Documentation

virtual iroha::model::ModelCryptoProvider::~ModelCryptoProvider ( )
virtualdefault

Member Function Documentation

virtual void iroha::model::ModelCryptoProvider::sign ( Block block) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signing a block with stored keypair

Parameters
block- block for signing

Implemented in iroha::model::ModelCryptoProviderImpl.

virtual void iroha::model::ModelCryptoProvider::sign ( Transaction transaction) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signing a transaction with stored keypair

Parameters
transaction- transaction for signing

Implemented in iroha::model::ModelCryptoProviderImpl.

virtual void iroha::model::ModelCryptoProvider::sign ( Query query) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signing a query with stored keypair

Parameters
query- query to sign

Implemented in iroha::model::ModelCryptoProviderImpl.

virtual bool iroha::model::ModelCryptoProvider::verify ( const Transaction tx) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signature verification of a transaction.

Parameters
tx- transaction for verification
Returns
true if transaction signature is valid, otherwise false

Implemented in iroha::model::ModelCryptoProviderImpl.

virtual bool iroha::model::ModelCryptoProvider::verify ( const Query query) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signature verification of a query.

Parameters
query- query for verification
Returns
true if query signature is valid, otherwise false

Implemented in iroha::model::ModelCryptoProviderImpl.

virtual bool iroha::model::ModelCryptoProvider::verify ( const Block block) const
pure virtual

[[deprecated]] Use irohad/crypto_provider with shared_model instead this class. It is for compatibility with cli. Method for signature verification of a block.

Parameters
block- block for verification
Returns
true if block signature is valid, otherwise false

Implemented in iroha::model::ModelCryptoProviderImpl.


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