pub trait CommitEncode {
    fn commit_encode<E: Write>(&self, e: E) -> usize;

    fn commit_serialize(&self) -> Vec<u8> { ... }
}
Expand description

Prepares the data to the consensus commit procedure by first running necessary conceal and merklization procedures, and them performing strict encoding for the resulted data.

Required Methods

Encodes the data for the commitment by writing them directly into a io::Write writer instance

Provided Methods

Serializes data for the commitment in-memory into a newly allocated array

Implementations on Foreign Types

Implementors