[][src]Struct solana_libra_nextgen_crypto::vrf::ecvrf::Proof

pub struct Proof { /* fields omitted */ }

A VRF proof that can be used to validate an input with a public key

Methods

impl Proof[src]

pub fn new(gamma: EdwardsPoint, c: ed25519_Scalar, s: ed25519_Scalar) -> Proof[src]

Produces a new Proof struct from its fields

pub fn to_bytes(&self) -> [u8; 80][src]

Converts a Proof into bytes

Trait Implementations

impl<'a> From<&'a Proof> for Output[src]

impl<'_> TryFrom<&'_ [u8]> for Proof[src]

type Error = CryptoMaterialError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Sync for Proof

impl Send for Proof

impl Unpin for Proof

impl RefUnwindSafe for Proof

impl UnwindSafe for Proof

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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