6 #ifndef KAGOME_CORE_CONSENSUS_VRF_VRF_HPP 7 #define KAGOME_CORE_CONSENSUS_VRF_VRF_HPP 20 std::numeric_limits<VRFThreshold>::max()};
35 const Sr25519PublicKey &public_key,
46 const Sr25519PublicKey &public_key,
57 const std::optional<std::reference_wrapper<const VRFThreshold>>
64 #endif // KAGOME_CORE_CONSENSUS_VRF_VRF_HPP Class represents arbitrary (including empty) byte buffer.
std::optional< VRFOutput > signTranscript(const primitives::Transcript &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const override
std::optional< VRFOutput > signTranscriptImpl(const primitives::Transcript &msg, const Sr25519Keypair &keypair, const std::optional< std::reference_wrapper< const VRFThreshold >> threshold) const
VRFVerifyOutput verifyTranscript(const primitives::Transcript &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const override
boost::multiprecision::uint128_t VRFThreshold
Sr25519Keypair generateKeypair() const override
std::shared_ptr< CSPRNG > generator_
VRFVerifyOutput verify(const common::Buffer &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const override
std::optional< VRFOutput > sign(const common::Buffer &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const override
VRFProviderImpl(std::shared_ptr< CSPRNG > generator)
~VRFProviderImpl() override=default
static constexpr VRFThreshold kMaxThreshold