Struct akd::ecvrf::HardCodedAkdVRF
source · pub struct HardCodedAkdVRF;
Expand description
This is a version of VRFKeyStorage for testing purposes, which uses the example from the VRF crate.
const KEY_MATERIAL: &str = “c9afa9d845ba75166b5c215767b1d6934e50c3db36e89b127b8a622b120f6721”;
Trait Implementations§
source§impl Clone for HardCodedAkdVRF
impl Clone for HardCodedAkdVRF
source§fn clone(&self) -> HardCodedAkdVRF
fn clone(&self) -> HardCodedAkdVRF
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl VRFKeyStorage for HardCodedAkdVRF
impl VRFKeyStorage for HardCodedAkdVRF
source§fn retrieve<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, VrfError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
HardCodedAkdVRF: 'async_trait,
fn retrieve<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, VrfError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, HardCodedAkdVRF: 'async_trait,
Retrieve the VRF Private key as a vector of bytes
source§fn get_vrf_private_key<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<VRFPrivateKey, VrfError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_vrf_private_key<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<VRFPrivateKey, VrfError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,
Retrieve the properly constructed VRF Private key
source§fn get_vrf_public_key<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<VRFPublicKey, VrfError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_vrf_public_key<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<VRFPublicKey, VrfError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,
Retrieve the VRF public key
source§fn get_node_label<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64
) -> Pin<Box<dyn Future<Output = Result<NodeLabel, VrfError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_node_label<'life0, 'life1, 'async_trait>( &'life0 self, label: &'life1 AkdLabel, freshness: VersionFreshness, version: u64 ) -> Pin<Box<dyn Future<Output = Result<NodeLabel, VrfError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,
source§fn get_node_label_with_expanded_key(
expanded_private_key: &VRFExpandedPrivateKey,
pk: &VRFPublicKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64
) -> NodeLabel
fn get_node_label_with_expanded_key( expanded_private_key: &VRFExpandedPrivateKey, pk: &VRFPublicKey, label: &AkdLabel, freshness: VersionFreshness, version: u64 ) -> NodeLabel
source§fn get_node_label_from_vrf_proof<'life0, 'async_trait>(
&'life0 self,
proof: Proof
) -> Pin<Box<dyn Future<Output = NodeLabel> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_node_label_from_vrf_proof<'life0, 'async_trait>( &'life0 self, proof: Proof ) -> Pin<Box<dyn Future<Output = NodeLabel> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,
Returns the tree nodelabel that corresponds to a vrf proof.
source§fn get_label_proof<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64
) -> Pin<Box<dyn Future<Output = Result<Proof, VrfError>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_label_proof<'life0, 'life1, 'async_trait>( &'life0 self, label: &'life1 AkdLabel, freshness: VersionFreshness, version: u64 ) -> Pin<Box<dyn Future<Output = Result<Proof, VrfError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,
Retrieve the proof for a specific label
source§fn get_label_proof_with_key(
key: &VRFPrivateKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64
) -> Proof
fn get_label_proof_with_key( key: &VRFPrivateKey, label: &AkdLabel, freshness: VersionFreshness, version: u64 ) -> Proof
Retrieve the proof for a specific label, with a supplied private key
source§fn get_label_with_key_helper(
expanded_private_key: &VRFExpandedPrivateKey,
pk: &VRFPublicKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64
) -> Output
fn get_label_with_key_helper( expanded_private_key: &VRFExpandedPrivateKey, pk: &VRFPublicKey, label: &AkdLabel, freshness: VersionFreshness, version: u64 ) -> Output
Retrieve the output for a specific label, with a supplied private key