6 #ifndef KAGOME_CORE_CRYPTO_ED25519_PROVIDER_HPP 7 #define KAGOME_CORE_CRYPTO_ED25519_PROVIDER_HPP 40 virtual outcome::result<Ed25519Signature>
sign(
42 gsl::span<const uint8_t> message)
const = 0;
48 virtual outcome::result<bool>
verify(
49 const Ed25519Signature &signature,
50 gsl::span<const uint8_t> message,
51 const Ed25519PublicKey &public_key)
const = 0;
55 #endif // KAGOME_CORE_CRYPTO_ED25519_PROVIDER_HPP
virtual outcome::result< bool > verify(const Ed25519Signature &signature, gsl::span< const uint8_t > message, const Ed25519PublicKey &public_key) const =0
virtual ~Ed25519Provider()=default
virtual Ed25519KeypairAndSeed generateKeypair() const =0
virtual outcome::result< Ed25519Signature > sign(const Ed25519Keypair &keypair, gsl::span< const uint8_t > message) const =0