Trait tink_core::Signer

source ·
pub trait Signer: SignerBoxClone {
    // Required method
    fn sign(&self, data: &[u8]) -> Result<Vec<u8>, TinkError>;
}
Expand description

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§

source

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

Computes the digital signature for data.

Trait Implementations§

source§

impl From<Primitive> for Box<dyn Signer>

source§

fn from(p: Primitive) -> Box<dyn Signer>

Converts to this type from the input type.

Implementors§