[][src]Struct dup_crypto::keys::ed25519::KeyPair

pub struct KeyPair {
    pub pubkey: PublicKey,
    pub privkey: PrivateKey,
}

Store a ed25519 cryptographic key pair (PublicKey + PrivateKey)

Fields

pubkey: PublicKey

Store a Ed25519 public key.

privkey: PrivateKey

Store a Ed25519 private key.

Trait Implementations

impl KeyPair for KeyPair[src]

type Signature = Signature

Signature type of associated cryptosystem.

type PublicKey = PublicKey

PublicKey type of associated cryptosystem.

type PrivateKey = PrivateKey

PrivateKey type of associated cryptosystem.

impl Clone for KeyPair[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for KeyPair[src]

impl Copy for KeyPair[src]

impl PartialEq<KeyPair> for KeyPair[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Display for KeyPair[src]

impl Debug for KeyPair[src]

Auto Trait Implementations

impl Send for KeyPair

impl Sync for KeyPair

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.