Trait TryToBytes

Source
pub trait TryToBytes {
    // Required method
    fn to_bytes_vec(&self) -> StdResult<Vec<u8>>;

    // Provided method
    fn to_bytes_hex(&self) -> StdResult<String> { ... }
}
Expand description

Traits for serializing to bytes

Required Methods§

Source

fn to_bytes_vec(&self) -> StdResult<Vec<u8>>

Try to convert to a bytes vector.

Provided Methods§

Source

fn to_bytes_hex(&self) -> StdResult<String>

Try to convert to hex bytes representation

Implementations on Foreign Types§

Source§

impl TryToBytes for AggregateVerificationKey<Blake2b<U32>>

Source§

impl TryToBytes for AggregateSignature<Blake2b<U32>>

Source§

impl TryToBytes for Parameters

Source§

impl TryToBytes for Initializer

Source§

impl TryToBytes for SingleSignature

Source§

impl TryToBytes for SingleSignatureWithRegisteredParty

Source§

impl TryToBytes for VerificationKeyProofOfPossession

Source§

impl TryToBytes for VerificationKey

Source§

impl TryToBytes for Signature

Source§

impl TryToBytes for SigningKey

Source§

impl TryToBytes for Sum6KesSig

Source§

impl TryToBytes for VerifyingKey

Implementors§