[][src]Trait forest_crypto::Signer

pub trait Signer {
    fn sign_bytes(
        &self,
        data: Vec<u8>,
        address: &Address
    ) -> Result<Signature, Box<dyn Error>>; }

Signer is a trait which allows a key implementation to sign data for an address

Required methods

fn sign_bytes(
    &self,
    data: Vec<u8>,
    address: &Address
) -> Result<Signature, Box<dyn Error>>

Loading content...

Implementors

Loading content...