Kagome
Polkadot Runtime Engine in C++17
|
#include <ecdsa_provider_impl.hpp>
Public Types | |
enum | Error { Error::VERIFICATION_FAILED = 1, Error::SIGN_FAILED } |
using | Libp2pEcdsaProvider = libp2p::crypto::ecdsa::EcdsaProvider |
using | Libp2pEcdsaProviderImpl = libp2p::crypto::ecdsa::EcdsaProviderImpl |
Public Member Functions | |
EcdsaProviderImpl () | |
EcdsaProviderImpl (std::shared_ptr< Libp2pEcdsaProvider > provider) | |
outcome::result< EcdsaKeypairAndSeed > | generate () const override |
outcome::result< EcdsaPublicKey > | derive (const EcdsaSeed &seed) const override |
outcome::result< EcdsaSignature > | sign (gsl::span< const uint8_t > message, const EcdsaPrivateKey &key) const override |
outcome::result< EcdsaSignature > | signPrehashed (const EcdsaPrehashedMessage &message, const EcdsaPrivateKey &key) const override |
outcome::result< bool > | verify (gsl::span< const uint8_t > message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const override |
outcome::result< bool > | verifyPrehashed (const EcdsaPrehashedMessage &message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const override |
Public Member Functions inherited from kagome::crypto::EcdsaProvider | |
virtual | ~EcdsaProvider ()=default |
Private Attributes | |
std::shared_ptr< Libp2pEcdsaProvider > | provider_ |
log::Logger | logger_ |
Definition at line 16 of file ecdsa_provider_impl.hpp.
using kagome::crypto::EcdsaProviderImpl::Libp2pEcdsaProvider = libp2p::crypto::ecdsa::EcdsaProvider |
Definition at line 19 of file ecdsa_provider_impl.hpp.
using kagome::crypto::EcdsaProviderImpl::Libp2pEcdsaProviderImpl = libp2p::crypto::ecdsa::EcdsaProviderImpl |
Definition at line 20 of file ecdsa_provider_impl.hpp.
|
strong |
Enumerator | |
---|---|
VERIFICATION_FAILED | |
SIGN_FAILED |
Definition at line 18 of file ecdsa_provider_impl.hpp.
kagome::crypto::EcdsaProviderImpl::EcdsaProviderImpl | ( | ) |
Definition at line 10 of file ecdsa_provider_impl.cpp.
|
explicit |
Definition at line 13 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 31 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 20 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 40 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 45 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 50 of file ecdsa_provider_impl.cpp.
|
overridevirtual |
Implements kagome::crypto::EcdsaProvider.
Definition at line 57 of file ecdsa_provider_impl.cpp.
|
private |
Definition at line 51 of file ecdsa_provider_impl.hpp.
|
private |
Definition at line 50 of file ecdsa_provider_impl.hpp.