[][src]Trait signatory::Signature

pub trait Signature: AsRef<[u8]> + Debug {
    fn from_bytes<B>(bytes: B) -> Result<Self, Error>
    where
        B: AsRef<[u8]>
; 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>(bytes: B) -> Result<Self, Error> where
    B: AsRef<[u8]>, 

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

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