#include <vrf_provider_impl.hpp>
|
| VRFProviderImpl (std::shared_ptr< CSPRNG > generator) |
|
| ~VRFProviderImpl () override=default |
|
Sr25519Keypair | generateKeypair () const override |
|
std::optional< VRFOutput > | sign (const common::Buffer &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const override |
|
VRFVerifyOutput | verify (const common::Buffer &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const override |
|
std::optional< VRFOutput > | signTranscript (const primitives::Transcript &msg, const Sr25519Keypair &keypair, const VRFThreshold &threshold) const override |
|
VRFVerifyOutput | verifyTranscript (const primitives::Transcript &msg, const VRFOutput &output, const Sr25519PublicKey &public_key, const VRFThreshold &threshold) const override |
|
std::optional< VRFOutput > | signTranscript (const primitives::Transcript &msg, const Sr25519Keypair &keypair) const override |
|
virtual | ~VRFProvider ()=default |
|
Definition at line 18 of file vrf_provider_impl.hpp.
kagome::crypto::VRFProviderImpl::VRFProviderImpl |
( |
std::shared_ptr< CSPRNG > |
generator | ) |
|
|
explicit |
kagome::crypto::VRFProviderImpl::~VRFProviderImpl |
( |
| ) |
|
|
overridedefault |
Sr25519Keypair kagome::crypto::VRFProviderImpl::generateKeypair |
( |
| ) |
const |
|
overridevirtual |
Sign message
- Parameters
-
msg | using |
keypair. | If computed value is less than |
threshold | then return optional containing this value and proof. Otherwise none returned |
Implements kagome::crypto::VRFProvider.
Definition at line 98 of file vrf_provider_impl.cpp.
Sign transcript message
- Parameters
-
msg | using |
keypair. | If computed value is less than |
threshold | then return optional containing this value and proof. Otherwise none returned |
Implements kagome::crypto::VRFProvider.
Definition at line 35 of file vrf_provider_impl.cpp.
std::shared_ptr<CSPRNG> kagome::crypto::VRFProviderImpl::generator_ |
|
private |
constexpr VRFThreshold kagome::crypto::VRFProviderImpl::kMaxThreshold |
|
staticprivate |
The documentation for this class was generated from the following files: