[][src]Struct solana_libra_nextgen_crypto::bls12381::BLS12381PrivateKey

pub struct BLS12381PrivateKey(_);

A BLS12-381 private key

Methods from Deref<Target = SerdeSecret<SecretKey>>

pub fn inner(&self) -> &T[src]

Returns a reference to the actual secret contained in the wrapper

Trait Implementations

impl ValidKey for BLS12381PrivateKey[src]

fn validate(&self) -> Result<(), CryptoMaterialError>[src]

TryFrom is the source of truth on whether we can build a valid key. => we can use it once we've built, to validate! Read more

impl PrivateKey for BLS12381PrivateKey[src]

type PublicKeyMaterial = BLS12381PublicKey

We require public / private types to be coupled, i.e. their associated type is each other. Read more

fn public_key(&self) -> Self::PublicKeyMaterial[src]

Returns the associated public key

impl SigningKey for BLS12381PrivateKey[src]

type VerifyingKeyMaterial = BLS12381PublicKey

The associated verifying key type for this signing key.

type SignatureMaterial = BLS12381Signature

The associated signature type for this signing key.

fn verifying_key(&self) -> Self::VerifyingKeyMaterial[src]

Returns the associated verifying key

impl Uniform for BLS12381PrivateKey[src]

impl Genesis for BLS12381PrivateKey[src]

impl<'_> From<&'_ BLS12381PrivateKey> for BLS12381PublicKey[src]

impl PartialEq<BLS12381PrivateKey> for BLS12381PrivateKey[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for BLS12381PrivateKey[src]

impl Display for BLS12381PrivateKey[src]

impl Debug for BLS12381PrivateKey[src]

impl Deref for BLS12381PrivateKey[src]

type Target = SerdeSecret<SecretKey>

The resulting type after dereferencing.

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

type Error = CryptoMaterialError

The type returned in the event of a conversion error.

impl Serialize for BLS12381PrivateKey[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> ValidKeyStringExt for T where
    T: ValidKey
[src]

fn from_encoded_string(encoded_str: &str) -> Result<Self, CryptoMaterialError>[src]

When trying to convert from bytes, we simply decode the string into bytes before checking if we can convert. Read more

fn to_encoded_string(&self) -> Result<String>[src]

A function to encode into hex-string after serializing.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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>,