Trait SerializeCommitment

Source
pub trait SerializeCommitment {
    const SERIALIZED_SIZE: usize;

    // Required method
    fn serialize_commitment(&self, buffer: &mut [u8]);
}
Expand description

Type that can be serialized for commitment.

Required Associated Constants§

Source

const SERIALIZED_SIZE: usize

Size of the structure in bytes.

Required Methods§

Source

fn serialize_commitment(&self, buffer: &mut [u8])

Serializes this struct into the provided buffer, which is guaranteed to have byte length Self::SERIALIZED_SIZE.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§