6 #ifndef KAGOME_CORE_CRYPTO_SR25519_PROVIDER_HPP 7 #define KAGOME_CORE_CRYPTO_SR25519_PROVIDER_HPP 37 virtual Sr25519Keypair generateKeypair(
const Sr25519Seed &seed)
const = 0;
47 virtual outcome::result<Sr25519Signature> sign(
49 gsl::span<const uint8_t> message)
const = 0;
55 virtual outcome::result<bool> verify(
56 const Sr25519Signature &signature,
57 gsl::span<const uint8_t> message,
58 const Sr25519PublicKey &public_key)
const = 0;
60 virtual outcome::result<bool> verify_deprecated(
61 const Sr25519Signature &signature,
62 gsl::span<const uint8_t> message,
63 const Sr25519PublicKey &public_key)
const = 0;
69 #endif // KAGOME_CORE_CRYPTO_SR25519_PROVIDER_HPP
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)