#include "crypto_verifier.hpp"
|
| static iroha::expected::Result< void, const char * > | verify (shared_model::interface::types::SignedHexStringView signature, const Blob &source, shared_model::interface::types::PublicKeyHexStringView public_key) |
| |
CryptoVerifier - adapter for generalization verification of cryptographic signatures
- Template Parameters
-
| Algorithm | - cryptographic algorithm for verification |
◆ anonymous enum
| Enumerator |
|---|
| kMaxPublicKeySize | |
◆ anonymous enum
| Enumerator |
|---|
| kMaxSignatureSize | |
◆ CryptoVerifier()
| shared_model::crypto::CryptoVerifier::CryptoVerifier |
( |
| ) |
|
|
delete |
close constructor for forbidding instantiation
◆ 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
The documentation for this class was generated from the following files: