pub trait EngineSigner: Send + Sync {
fn sign(&self, hash: H256) -> Result<Signature, Error>;
fn address(&self) -> Address;
fn decrypt(&self, auth_data: &[u8], cipher: &[u8]) -> Result<Vec<u8>, Error>;
fn public(&self) -> Option<Public>;
}
Expand description
Everything that an Engine needs to sign messages.
Required methods
Decrypt a message that was encrypted to this signer’s key.