hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::Signable< Model, HashProvider >::SignatureSetTypeOps Class Reference

#include "signable.hpp"

Collaboration diagram for shared_model::interface::Signable< Model, HashProvider >::SignatureSetTypeOps:
Collaboration graph

Public Member Functions

template<typename T >
size_t operator() (const T &sig) const
 
template<typename T >
bool operator() (const T &lhs, const T &rhs) const
 

Detailed Description

template<typename Model, typename HashProvider = shared_model::crypto::Sha3_256>
class shared_model::interface::Signable< Model, HashProvider >::SignatureSetTypeOps

Type of set of signatures

Note: we can't use const SignatureType due to unordered_set limitations: it requires to have write access for elements for some internal operations.

Member Function Documentation

template<typename Model, typename HashProvider = shared_model::crypto::Sha3_256>
template<typename T >
size_t shared_model::interface::Signable< Model, HashProvider >::SignatureSetTypeOps::operator() ( const T &  sig) const
inline
Parameters
sigis item to find hash from
Returns
calculated hash of public key
template<typename Model, typename HashProvider = shared_model::crypto::Sha3_256>
template<typename T >
bool shared_model::interface::Signable< Model, HashProvider >::SignatureSetTypeOps::operator() ( const T &  lhs,
const T &  rhs 
) const
inline

Function for set elements uniqueness by public key

Parameters
lhs
rhs
Returns
true, if public keys are the same

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