[−][src]Trait signatory::Signature
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]>,
B: AsRef<[u8]>,
Parse a signature from its byte representation
Provided methods
fn as_slice(&self) -> &[u8]
Borrow this signature as serialized bytes
fn into_vec(self) -> Vec<u8>
Convert this signature into a byte vector
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
fn as_slice(&self) -> &[u8]
[src]
fn into_vec(self) -> Vec<u8>
[src]
impl<C> Signature for Asn1Signature<C> where
C: WeierstrassCurve,
[src]
C: WeierstrassCurve,
fn from_bytes<B>(bytes: B) -> Result<Self, Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
Decode an ASN.1 DER-serialized ECDSA signature
fn as_slice(&self) -> &[u8]
[src]
fn into_vec(self) -> Vec<u8>
[src]
impl<C> Signature for FixedSignature<C> where
C: WeierstrassCurve,
[src]
C: WeierstrassCurve,