Trait signatory::Signature[][src]

pub trait Signature: AsRef<[u8]> + Debug + Sized {
    fn from_bytes<B: AsRef<[u8]>>(bytes: B) -> Result<Self, Error>;

    fn as_slice(&self) -> &[u8] { ... }
fn into_vec(self) -> Vec<u8> { ... } }

Common trait for all signatures

Required Methods

Create a signature from a serialized byte representation

Provided Methods

Important traits for &'a [u8]

Borrow a signature as a byte slice

Important traits for Vec<u8>

Convert signature into owned byte array

Implementors