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

#include <secp256k1_provider.hpp>

Inheritance diagram for kagome::crypto::Secp256k1Provider:
Collaboration diagram for kagome::crypto::Secp256k1Provider:

Public Member Functions

virtual ~Secp256k1Provider ()=default
 
virtual outcome::result< secp256k1::UncompressedPublicKeyrecoverPublickeyUncompressed (const secp256k1::RSVSignature &signature, const secp256k1::MessageHash &message_hash) const =0
 recover public key in uncompressed form More...
 
virtual outcome::result< secp256k1::CompressedPublicKeyrecoverPublickeyCompressed (const secp256k1::RSVSignature &signature, const secp256k1::MessageHash &message_hash) const =0
 recover public key in compressed form More...
 

Detailed Description

key recovery functionality

Definition at line 17 of file secp256k1_provider.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<secp256k1::CompressedPublicKey> kagome::crypto::Secp256k1Provider::recoverPublickeyCompressed ( const secp256k1::RSVSignature signature,
const secp256k1::MessageHash message_hash 
) const
pure virtual

recover public key in compressed form

Parameters
signaturesignature
message_hashblake2s message hash
Returns
compressed public key or error

Implemented in kagome::crypto::Secp256k1ProviderImpl.

virtual outcome::result<secp256k1::UncompressedPublicKey> kagome::crypto::Secp256k1Provider::recoverPublickeyUncompressed ( const secp256k1::RSVSignature signature,
const secp256k1::MessageHash message_hash 
) const
pure virtual

recover public key in uncompressed form

Parameters
signaturesignature
message_hashblake2s message hash
Returns
uncompressed public key or error

Implemented in kagome::crypto::Secp256k1ProviderImpl.


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