[−][src]Trait signatory::Signature
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
Provided methods
fn as_slice(&self) -> &[u8]
Borrow a signature as a byte slice
fn into_vec(self) -> Vec<u8>
Convert signature into owned byte array
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,