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 StmAggrVerificationKey<Blake2b<U32>>

Source§

impl TryToBytes for StmAggrSig<Blake2b<U32>>

Source§

impl TryToBytes for StmParameters

Source§

impl TryToBytes for StmInitializer

Source§

impl TryToBytes for StmSig

Source§

impl TryToBytes for StmSigRegParty

Source§

impl TryToBytes for StmVerificationKeyPoP

Source§

impl TryToBytes for StmVerificationKey

Source§

impl TryToBytes for Signature

Source§

impl TryToBytes for SigningKey

Source§

impl TryToBytes for Sum6KesSig

Source§

impl TryToBytes for VerifyingKey

Implementors§