6 #ifndef KAGOME_CRYPTO_ED25519_PROVIDER_IMPL_H 7 #define KAGOME_CRYPTO_ED25519_PROVIDER_IMPL_H 26 outcome::result<Ed25519Signature>
sign(
28 gsl::span<const uint8_t> message)
const override;
30 outcome::result<bool>
verify(
31 const Ed25519Signature &signature,
32 gsl::span<const uint8_t> message,
33 const Ed25519PublicKey &public_key)
const override;
44 #endif // KAGOME_CRYPTO_ED25519_PROVIDER_IMPL_H
outcome::result< bool > verify(const Ed25519Signature &signature, gsl::span< const uint8_t > message, const Ed25519PublicKey &public_key) const override
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< CSPRNG > generator_
Ed25519KeypairAndSeed generateKeypair() const override
Ed25519ProviderImpl(std::shared_ptr< CSPRNG > generator)
outcome::result< Ed25519Signature > sign(const Ed25519Keypair &keypair, gsl::span< const uint8_t > message) const override
OUTCOME_HPP_DECLARE_ERROR(kagome::crypto, Ed25519ProviderImpl::Error)