Struct ed25519_dalek::Keypair [] [src]

pub struct Keypair {
    pub public: PublicKey,
    pub secret: SecretKey,
}

An ed25519 keypair.

Fields

The public half of this keypair.

The secret half of this keypair.

Methods

impl Keypair
[src]

Generate an ed25519 keypair.

Input

A CSPRING with a fill_bytes() method, e.g. the one returned from rand::OsRng::new() (in the rand crate).

Sign a message with this keypair's secret key.

Verify a signature on a message with this keypair's public key.

Trait Implementations

impl Debug for Keypair
[src]

Formats the value using the given formatter.