Trait signatory::Signature [−][src]
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
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<C> Signature for Asn1Signature<C> where
C: WeierstrassCurve,impl<C> Signature for FixedSignature<C> where
C: WeierstrassCurve,impl SignatureTrait for Signature