[][src]Trait tink_core::Signer

pub trait Signer: SignerBoxClone {
    fn sign(&self, data: &[u8]) -> Result<Vec<u8>, TinkError>;
}

Signer is the signing interface for digital signature.

Implementations of this trait are secure against adaptive chosen-message attacks. Signing data ensures authenticity and integrity of that data, but not its secrecy.

Required methods

fn sign(&self, data: &[u8]) -> Result<Vec<u8>, TinkError>

Computes the digital signature for data.

Loading content...

Implementors

Loading content...