Trait radicle_crypto::Signer
source · pub trait Signer: Send + Sync {
// Required methods
fn public_key(&self) -> &PublicKey;
fn sign(&self, msg: &[u8]) -> Signature;
fn try_sign(&self, msg: &[u8]) -> Result<Signature, SignerError>;
}
Required Methods§
sourcefn public_key(&self) -> &PublicKey
fn public_key(&self) -> &PublicKey
Return this signer’s public/verification key.