[][src]Trait pqcrypto_traits::sign::DetachedSignature

pub trait DetachedSignature {
    fn as_bytes(&self) -> &[u8];
fn from_bytes(bytes: &[u8]) -> Result<Self>
    where
        Self: Sized
; }

A detached signature

This signature does not include the message it certifies; this means that to verify it you also need the message.

If you can get away with it, use the SignedMessage API, which ensures you won't use the message before having authenticated it.

Required methods

fn as_bytes(&self) -> &[u8]

fn from_bytes(bytes: &[u8]) -> Result<Self> where
    Self: Sized

Loading content...

Implementors

Loading content...