Enum world_id::Keypair [] [src]

pub enum Keypair {
    Ed25519(Vec<u8>),
}

The type of a keypair. Right now, only ED25519 is supported, but paranoia dictates that we allow room for expansion.

Variants

Methods

impl Keypair
[src]

[src]

Generates and returns a new public+private key pair.

[src]

Saves the keypair to the given Write stream as a PEM file encoded as a PKCS8 #2 document.. Contains both the public and private key? :/ Seems like you should be able to have them separate.

[src]

[src]

Signs the given message with the keypair's private key.

Trait Implementations

impl Clone for Keypair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Keypair
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Keypair
[src]

impl Debug for Keypair
[src]

Doesn't derive debug to avoid leaking the key to console quite as easily. XD Instead has a custom debug method that just prints out the keypair type.

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Keypair

impl Sync for Keypair