Trait fuel_crypto::Signer
source · [−]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
Required methods
Provided methods
Sign a given message with the secret key identified by id