6 #ifndef KAGOME_CRYPTO_ECDSA_PROVIDER_IMPL_H 7 #define KAGOME_CRYPTO_ECDSA_PROVIDER_IMPL_H 11 #include "libp2p/crypto/ecdsa_provider/ecdsa_provider_impl.hpp" 26 outcome::result<EcdsaKeypairAndSeed>
generate()
const override;
28 outcome::result<EcdsaPublicKey>
derive(
31 outcome::result<EcdsaSignature>
sign(
32 gsl::span<const uint8_t> message,
33 const EcdsaPrivateKey &key)
const override;
37 const EcdsaPrivateKey &key)
const override;
39 outcome::result<bool>
verify(
40 gsl::span<const uint8_t> message,
42 const EcdsaPublicKey &publicKey)
const override;
47 const EcdsaPublicKey &publicKey)
const override;
58 #endif // KAGOME_CRYPTO_ECDSA_PROVIDER_IMPL_H
outcome::result< EcdsaPublicKey > derive(const EcdsaSeed &seed) const override
outcome::result< EcdsaSignature > signPrehashed(const EcdsaPrehashedMessage &message, const EcdsaPrivateKey &key) const override
outcome::result< EcdsaKeypairAndSeed > generate() const override
libp2p::crypto::ecdsa::EcdsaProviderImpl Libp2pEcdsaProviderImpl
std::vector< uint8_t > EcdsaSignature
OUTCOME_HPP_DECLARE_ERROR(kagome::crypto, EcdsaProviderImpl::Error)
outcome::result< bool > verify(gsl::span< const uint8_t > message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const override
libp2p::crypto::ecdsa::PrehashedMessage EcdsaPrehashedMessage
std::shared_ptr< soralog::Logger > Logger
libp2p::crypto::ecdsa::EcdsaProvider Libp2pEcdsaProvider
outcome::result< bool > verifyPrehashed(const EcdsaPrehashedMessage &message, const EcdsaSignature &signature, const EcdsaPublicKey &publicKey) const override
outcome::result< EcdsaSignature > sign(gsl::span< const uint8_t > message, const EcdsaPrivateKey &key) const override
std::shared_ptr< Libp2pEcdsaProvider > provider_