Kagome
Polkadot Runtime Engine in C++17
|
#include <secp256k1_provider_impl.hpp>
Public Member Functions | |
~Secp256k1ProviderImpl () override=default | |
Secp256k1ProviderImpl () | |
outcome::result< secp256k1::UncompressedPublicKey > | recoverPublickeyUncompressed (const secp256k1::RSVSignature &signature, const secp256k1::MessageHash &message_hash) const override |
recover public key in uncompressed form More... | |
outcome::result< secp256k1::CompressedPublicKey > | recoverPublickeyCompressed (const secp256k1::RSVSignature &signature, const secp256k1::MessageHash &message_hash) const override |
recover public key in compressed form More... | |
Public Member Functions inherited from kagome::crypto::Secp256k1Provider | |
virtual | ~Secp256k1Provider ()=default |
Private Member Functions | |
outcome::result< secp256k1_pubkey > | recoverPublickey (const secp256k1::RSVSignature &signature, const secp256k1::MessageHash &message_hash) const |
Private Attributes | |
std::unique_ptr< secp256k1_context, void(*)(secp256k1_context *)> | context_ |
Definition at line 23 of file secp256k1_provider_impl.hpp.
|
overridedefault |
kagome::crypto::Secp256k1ProviderImpl::Secp256k1ProviderImpl | ( | ) |
Definition at line 12 of file secp256k1_provider_impl.cpp.
|
private |
Definition at line 79 of file secp256k1_provider_impl.cpp.
|
overridevirtual |
recover public key in compressed form
signature | signature |
message_hash | blake2s message hash |
Implements kagome::crypto::Secp256k1Provider.
Definition at line 38 of file secp256k1_provider_impl.cpp.
|
overridevirtual |
recover public key in uncompressed form
signature | signature |
message_hash | blake2s message hash |
Implements kagome::crypto::Secp256k1Provider.
Definition at line 18 of file secp256k1_provider_impl.cpp.
|
private |
Definition at line 43 of file secp256k1_provider_impl.hpp.