Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::EcdsaProvider Class Referenceabstract

#include <ecdsa_provider.hpp>

Inheritance diagram for kagome::crypto::EcdsaProvider:
Collaboration diagram for kagome::crypto::EcdsaProvider:

Public Member Functions

virtual ~EcdsaProvider ()=default
 
virtual outcome::result< EcdsaKeypairAndSeedgenerate () const =0
 
virtual outcome::result< EcdsaPublicKey > derive (const EcdsaSeed &seed) const =0
 
virtual outcome::result< EcdsaSignaturesign (gsl::span< const uint8_t > message, const EcdsaPrivateKey &key) const =0
 
virtual outcome::result< EcdsaSignaturesignPrehashed (const EcdsaPrehashedMessage &message, const EcdsaPrivateKey &key) const =0
 
virtual outcome::result< bool > verify (gsl::span< const uint8_t > message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const =0
 
virtual outcome::result< bool > verifyPrehashed (const EcdsaPrehashedMessage &message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const =0
 

Detailed Description

Definition at line 17 of file ecdsa_provider.hpp.

Constructor & Destructor Documentation

virtual kagome::crypto::EcdsaProvider::~EcdsaProvider ( )
virtualdefault

Member Function Documentation

virtual outcome::result<EcdsaPublicKey> kagome::crypto::EcdsaProvider::derive ( const EcdsaSeed seed) const
pure virtual
virtual outcome::result<EcdsaKeypairAndSeed> kagome::crypto::EcdsaProvider::generate ( ) const
pure virtual
virtual outcome::result<EcdsaSignature> kagome::crypto::EcdsaProvider::sign ( gsl::span< const uint8_t >  message,
const EcdsaPrivateKey &  key 
) const
pure virtual
virtual outcome::result<EcdsaSignature> kagome::crypto::EcdsaProvider::signPrehashed ( const EcdsaPrehashedMessage message,
const EcdsaPrivateKey &  key 
) const
pure virtual
virtual outcome::result<bool> kagome::crypto::EcdsaProvider::verify ( gsl::span< const uint8_t >  message,
const EcdsaSignature signature,
const EcdsaPublicKey &  publicKey 
) const
pure virtual
virtual outcome::result<bool> kagome::crypto::EcdsaProvider::verifyPrehashed ( const EcdsaPrehashedMessage message,
const EcdsaSignature signature,
const EcdsaPublicKey &  publicKey 
) const
pure virtual

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