pub trait Keystore {
    type Error: From<Error>;
    type KeyId;

    fn secret(
        &self,
        id: &Self::KeyId
    ) -> Result<Option<Borrown<'_, SecretKey>>, Self::Error>; fn public(
        &self,
        id: &Self::KeyId
    ) -> Result<Option<Borrown<'_, PublicKey>>, Self::Error> { ... } }
Expand description

Keys container

Required Associated Types

Keystore error implementation

Identifier for the keypair

Required Methods

Secret key for a given id

Provided Methods

Available on crate feature std only.

Public key for a given id

Implementors