pub trait Signer {
    type Keystore: Keystore;
    fn keystore(&self) -> &Self::Keystore;

    fn sign(
        &self,
        id: <Self::Keystore as Keystore>::KeyId,
        message: &Message
    ) -> Result<Signature, <Self::Keystore as Keystore>::Error> { ... }
fn verify(
        &self,
        id: <Self::Keystore as Keystore>::KeyId,
        signature: Signature,
        message: &Message
    ) -> Result<(), <Self::Keystore as Keystore>::Error> { ... } }
Expand description

Signature provider based on a keystore

Associated Types

Concrete keystore implementation

Required methods

Accessor to the keystore

Provided methods

Sign a given message with the secret key identified by id

Verify a given message with the public key identified by id

Implementors