Trait enjen::signer::EngineSigner[][src]

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>; }

Everything that an Engine needs to sign messages.

Required methods

fn sign(&self, hash: H256) -> Result<Signature, Error>[src]

Sign a consensus message hash.

fn address(&self) -> Address[src]

Signing address

fn decrypt(&self, auth_data: &[u8], cipher: &[u8]) -> Result<Vec<u8>, Error>[src]

Decrypt a message that was encrypted to this signer’s key.

fn public(&self) -> Option<Public>[src]

The signer’s public key, if available.

Loading content...

Implementors

Loading content...