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

#include "crypto_verifier.hpp"

Collaboration diagram for shared_model::crypto::CryptoVerifier:
Collaboration graph

Public Types

enum  { kMaxPublicKeySize = 68 }
 
enum  { kMaxSignatureSize = 68 }
 

Public Member Functions

 CryptoVerifier ()=delete
 close constructor for forbidding instantiation More...
 

Static Public Member Functions

static iroha::expected::Result< void, const char * > verify (shared_model::interface::types::SignedHexStringView signature, const Blob &source, shared_model::interface::types::PublicKeyHexStringView public_key)
 

Detailed Description

CryptoVerifier - adapter for generalization verification of cryptographic signatures

Template Parameters
Algorithm- cryptographic algorithm for verification

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kMaxPublicKeySize 

◆ anonymous enum

anonymous enum
Enumerator
kMaxSignatureSize 

Constructor & Destructor Documentation

◆ CryptoVerifier()

shared_model::crypto::CryptoVerifier::CryptoVerifier ( )
delete

close constructor for forbidding instantiation

Member Function Documentation

◆ verify()

Result< void, const char * > CryptoVerifier::verify ( shared_model::interface::types::SignedHexStringView  signature,
const Blob source,
shared_model::interface::types::PublicKeyHexStringView  public_key 
)
static

Verify signature attached to source data

Parameters
signedData- cryptographic signature
source- data that was signed
pubKey- public key of signatory
Returns
a result of void if signature is correct or error message otherwise or if verification could not be completed
Here is the call graph for this function:
Here is the caller graph for this function:

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