[][src]Trait signature::Signature

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> { ... } }

Trait impl'd by concrete types that represent digital signatures

Required methods

fn from_bytes<B: AsRef<[u8]>>(bytes: B) -> Result<Self, Error>

Parse a signature from its byte representation

Loading content...

Provided methods

Important traits for &'_ [u8]
fn as_slice(&self) -> &[u8]

Borrow this signature as serialized bytes

Important traits for Vec<u8>
fn into_vec(self) -> Vec<u8>

Convert this signature into a byte vector

Loading content...

Implementors

Loading content...