pub trait Keystore {
    type Error: From<Error>;
    type KeyId;
    fn public(
        &self,
        id: Self::KeyId
    ) -> Result<Borrown<'_, PublicKey>, Self::Error>;
fn secret(
        &self,
        id: Self::KeyId
    ) -> Result<Borrown<'_, SecretKey>, Self::Error>; }
Expand description

Keys container

Associated Types

Keystore error implementation

Identifier for the keypair

Required methods

Public key for a given id

Secret key for a given id

Implementors