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

pub struct VRFPrivateKey(_);

An ECVRF private key

Methods

impl VRFPrivateKey[src]

pub fn prove(&self, alpha: &[u8]) -> Proof[src]

Produces a proof for an input (using the private key)

Methods from Deref<Target = ed25519_PrivateKey>

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

Convert this secret key to a byte array.

pub fn as_bytes(&'a self) -> &'a [u8; 32][src]

View this secret key as a byte array.

Trait Implementations

impl Uniform for VRFPrivateKey[src]

impl<'a> From<&'a VRFPrivateKey> for VRFPublicKey[src]

impl<'a> From<&'a VRFPrivateKey> for VRFExpandedPrivateKey[src]

impl Debug for VRFPrivateKey[src]

impl Deref for VRFPrivateKey[src]

type Target = ed25519_PrivateKey

The resulting type after dereferencing.

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

type Error = CryptoMaterialError

The type returned in the event of a conversion error.

impl Serialize for VRFPrivateKey[src]

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

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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