Trait private_tx::Signer[][src]

pub trait Signer: Send + Sync {
    fn decrypt(
        &self,
        account: Address,
        shared_mac: &[u8],
        payload: &[u8]
    ) -> Result<Vec<u8>, Error>;
fn sign(&self, account: Address, hash: Message) -> Result<Signature, Error>; }

Payload signing and decrypting capabilities.

Required methods

fn decrypt(
    &self,
    account: Address,
    shared_mac: &[u8],
    payload: &[u8]
) -> Result<Vec<u8>, Error>
[src]

Decrypt payload using private key of given address.

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

Sign given hash using provided account.

Loading content...

Implementors

impl Signer for DummySigner[src]

impl Signer for KeyPairSigner[src]

Loading content...