6 #ifndef KAGOME_CORE_CRYPTO_VRF_VRF_PROVIDER_HPP 7 #define KAGOME_CORE_CRYPTO_VRF_VRF_PROVIDER_HPP 34 virtual std::optional<VRFOutput>
sign(
45 const Sr25519PublicKey &public_key,
73 const Sr25519PublicKey &public_key,
78 #endif // KAGOME_CORE_CRYPTO_VRF_VRF_PROVIDER_HPP Class represents arbitrary (including empty) byte buffer.
virtual VRFVerifyOutput verify(const common::Buffer &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const =0
boost::multiprecision::uint128_t VRFThreshold
virtual std::optional< VRFOutput > sign(const common::Buffer &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const =0
virtual std::optional< VRFOutput > signTranscript(const primitives::Transcript &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const =0
virtual ~VRFProvider()=default
virtual VRFVerifyOutput verifyTranscript(const primitives::Transcript &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const =0
virtual Sr25519Keypair generateKeypair() const =0