[−][src]Struct solana_libra_nextgen_crypto::vrf::ecvrf::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]
fn generate_for_testing<R>(rng: &mut R) -> Self where
R: SeedableRng + RngCore + CryptoRng,
[src]
R: SeedableRng + RngCore + CryptoRng,
impl<'a> From<&'a VRFPrivateKey> for VRFPublicKey
[src]
fn from(private_key: &'a VRFPrivateKey) -> Self
[src]
impl<'a> From<&'a VRFPrivateKey> for VRFExpandedPrivateKey
[src]
fn from(private_key: &'a VRFPrivateKey) -> Self
[src]
impl Debug for VRFPrivateKey
[src]
impl Deref for VRFPrivateKey
[src]
type Target = ed25519_PrivateKey
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'_> TryFrom<&'_ [u8]> for VRFPrivateKey
[src]
type Error = CryptoMaterialError
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<VRFPrivateKey, CryptoMaterialError>
[src]
impl Serialize for VRFPrivateKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for VRFPrivateKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for VRFPrivateKey
impl Send for VRFPrivateKey
impl Unpin for VRFPrivateKey
impl RefUnwindSafe for VRFPrivateKey
impl UnwindSafe for VRFPrivateKey
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,