[][src]Enum tendermint::private_key::PrivateKey

pub enum PrivateKey {
    Ed25519(Ed25519Keypair),
}

Private keys as parsed from configuration files

Variants

Ed25519 keys

Methods

impl PrivateKey[src]

pub fn public_key(&self) -> PublicKey[src]

Get the public key associated with this private key

pub fn ed25519_keypair(&self) -> Option<&Ed25519Keypair>[src]

If applicable, borrow the Ed25519 keypair

Trait Implementations

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

impl Serialize for PrivateKey[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: 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, 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.