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§

Byte representation of a signature.

Provided Methods§

Encode signature as its byte representation.

Available on crate feature alloc only.

Encode signature as a byte vector.

Implementors§