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

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§

source

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

source

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

Implementors§