Trait mina_signer::Signer
source · pub trait Signer<H: Hashable> {
// Required methods
fn sign(&mut self, kp: &Keypair, input: &H) -> Signature;
fn verify(&mut self, sig: &Signature, pub_key: &PubKey, input: &H) -> bool;
}
Expand description
Interface for signed objects
Signer interface for signing [Hashable
] inputs and verifying Signatures
using Keypairs
and PubKeys