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
impl Send for HardCodedAkdVRF
impl Sync for HardCodedAkdVRF
Source§impl VRFKeyStorage for HardCodedAkdVRF
impl VRFKeyStorage for HardCodedAkdVRF
Source§fn retrieve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, VrfError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, VrfError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_vrf_private_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<VRFPrivateKey, VrfError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_vrf_public_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<VRFPublicKey, VrfError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the VRF public key
Source§fn get_node_label<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Pin<Box<dyn Future<Output = Result<NodeLabel, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_node_label<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Pin<Box<dyn Future<Output = Result<NodeLabel, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_node_label_with_expanded_key<TC: Configuration>(
expanded_private_key: &VRFExpandedPrivateKey,
pk: &VRFPublicKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> NodeLabel
fn get_node_label_with_expanded_key<TC: Configuration>( 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>>where
Self: 'async_trait,
'life0: '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>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the tree nodelabel that corresponds to a vrf proof.
Source§fn get_label_proof<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Pin<Box<dyn Future<Output = Result<Proof, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_label_proof<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
label: &'life1 AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Pin<Box<dyn Future<Output = Result<Proof, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve the proof for a specific label
Source§fn get_label_proof_with_key<TC: Configuration>(
key: &VRFPrivateKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Proof
fn get_label_proof_with_key<TC: Configuration>( 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<TC: Configuration>(
expanded_private_key: &VRFExpandedPrivateKey,
pk: &VRFPublicKey,
label: &AkdLabel,
freshness: VersionFreshness,
version: u64,
) -> Output
fn get_label_with_key_helper<TC: Configuration>( 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
Source§fn get_node_labels<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
labels: &'life1 [(AkdLabel, VersionFreshness, u64, AkdValue)],
) -> Pin<Box<dyn Future<Output = Result<Vec<((AkdLabel, VersionFreshness, u64, AkdValue), NodeLabel)>, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_node_labels<'life0, 'life1, 'async_trait, TC>(
&'life0 self,
labels: &'life1 [(AkdLabel, VersionFreshness, u64, AkdValue)],
) -> Pin<Box<dyn Future<Output = Result<Vec<((AkdLabel, VersionFreshness, u64, AkdValue), NodeLabel)>, VrfError>> + Send + 'async_trait>>where
TC: 'async_trait + Configuration,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for HardCodedAkdVRF
impl RefUnwindSafe for HardCodedAkdVRF
impl Unpin for HardCodedAkdVRF
impl UnsafeUnpin for HardCodedAkdVRF
impl UnwindSafe for HardCodedAkdVRF
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more