[][src]Trait signatory::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> { ... } }

Common trait for all signatures

Required methods

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

Create a signature from a serialized byte representation

Loading content...

Provided methods

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

Borrow a signature as a byte slice

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

Convert signature into owned byte array

Loading content...

Implementors

impl Signature for Signature[src]

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

Create an Ed25519 signature from its serialized byte representation

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

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

impl<C> Signature for Asn1Signature<C> where
    C: WeierstrassCurve
[src]

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

Decode an ASN.1 DER-serialized ECDSA signature

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

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

impl<C> Signature for FixedSignature<C> where
    C: WeierstrassCurve
[src]

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

Create an ECDSA signature from its serialized byte representation

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

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

Loading content...