[][src]Struct forest_crypto::VRFProof

pub struct VRFProof(pub Vec<u8>);

The output from running a VRF

Implementations

impl VRFProof[src]

pub fn new(output: Vec<u8>) -> Self[src]

Creates a VRFProof from a raw vector

pub fn as_bytes(&self) -> &[u8][src]

Returns reference to underlying vector

pub fn digest(&self) -> [u8; 32][src]

Compute the blake2b256 digest of the proof

pub fn max_value() -> Self[src]

Returns max value based on BLS_SIG_LEN

Trait Implementations

impl Clone for VRFProof[src]

impl Debug for VRFProof[src]

impl Default for VRFProof[src]

impl<'de> Deserialize<'de> for VRFProof[src]

impl Eq for VRFProof[src]

impl Ord for VRFProof[src]

impl PartialEq<VRFProof> for VRFProof[src]

impl PartialOrd<VRFProof> for VRFProof[src]

impl Serialize for VRFProof[src]

impl StructuralEq for VRFProof[src]

impl StructuralPartialEq for VRFProof[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,