Trait CommitEncode

Source
pub trait CommitEncode {
    type CommitmentId: CommitmentId;

    // Required method
    fn commit_encode(&self, e: &mut CommitEngine);
}
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 Associated Types§

Source

type CommitmentId: CommitmentId

Type of the resulting commitment.

Required Methods§

Source

fn commit_encode(&self, e: &mut CommitEngine)

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

Implementors§