[][src]Struct solana_libra_crypto::ed25519::Ed25519PrivateKey

pub struct Ed25519PrivateKey(_);

An Ed25519 private key

Methods

impl Ed25519PrivateKey[src]

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

Serialize an Ed25519PrivateKey.

Trait Implementations

impl Debug for Ed25519PrivateKey[src]

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

impl Display for Ed25519PrivateKey[src]

impl Eq for Ed25519PrivateKey[src]

impl<'_> From<&'_ Ed25519PrivateKey> for Ed25519PublicKey[src]

impl Genesis for Ed25519PrivateKey[src]

impl PartialEq<Ed25519PrivateKey> for Ed25519PrivateKey[src]

impl PrivateKey for Ed25519PrivateKey[src]

type PublicKeyMaterial = Ed25519PublicKey

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

impl Serialize for Ed25519PrivateKey[src]

impl SigningKey for Ed25519PrivateKey[src]

type VerifyingKeyMaterial = Ed25519PublicKey

The associated verifying key type for this signing key.

type SignatureMaterial = Ed25519Signature

The associated signature type for this signing key.

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

type Error = CryptoMaterialError

The type returned in the event of a conversion error.

fn try_from(bytes: &[u8]) -> Result<Ed25519PrivateKey, CryptoMaterialError>[src]

Deserialize an Ed25519PrivateKey. This method will also check for key validity.

impl Uniform for Ed25519PrivateKey[src]

impl ValidKey for Ed25519PrivateKey[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> TestOnlyHash for T where
    T: Serialize + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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