Trait commit_verify::commit_encode::CommitEncode
source · [−]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
fn commit_encode<E: Write>(&self, e: E) -> usize
fn commit_encode<E: Write>(&self, e: E) -> usize
Encodes the data for the commitment by writing them directly into a
io::Write
writer instance
Provided Methods
fn commit_serialize(&self) -> Vec<u8>
fn commit_serialize(&self) -> Vec<u8>
Serializes data for the commitment in-memory into a newly allocated array