Trait ring::signature::KeyPair[][src]

pub trait KeyPair: Debug + Send + Sized + Sync {
    type PublicKey: AsRef<[u8]> + Debug + Clone + Send + Sized + Sync;
    fn public_key(&self) -> &Self::PublicKey;
}

Key pairs for signing messages (private key and public key).

Associated Types

type PublicKey: AsRef<[u8]> + Debug + Clone + Send + Sized + Sync[src]

The type of the public key.

Loading content...

Required methods

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

The public key for the key pair.

Loading content...

Implementors

impl KeyPair for EcdsaKeyPair[src]

type PublicKey = PublicKey

impl KeyPair for Ed25519KeyPair[src]

type PublicKey = PublicKey

impl KeyPair for RsaKeyPair[src]

Loading content...