Trait ecdsa::SignatureEncoding
source · pub trait SignatureEncoding: Clone + Sized + for<'a> TryFrom<&'a [u8]> + TryInto<Self::Repr> {
type Repr: 'static + AsRef<[u8]> + Clone + Send + Sync;
fn to_bytes(&self) -> Self::Repr { ... }
fn to_vec(&self) -> Vec<u8, Global> { ... }
}
Expand description
Support for decoding/encoding signatures as bytes.
Required Associated Types§
Provided Methods§
Implementors§
source§impl<C> SignatureEncoding for ecdsa::der::Signature<C>where
C: PrimeCurve,
MaxSize<C>: ArrayLength<u8>,
<FieldSize<C> as Add>::Output: Add<MaxOverhead> + ArrayLength<u8>,
Available on crate features der
and alloc
only.
impl<C> SignatureEncoding for ecdsa::der::Signature<C>where
C: PrimeCurve,
MaxSize<C>: ArrayLength<u8>,
<FieldSize<C> as Add>::Output: Add<MaxOverhead> + ArrayLength<u8>,
Available on crate features
der
and alloc
only.