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§
Sourcetype CommitmentId: CommitmentId
type CommitmentId: CommitmentId
Type of the resulting commitment.
Required Methods§
Sourcefn commit_encode(&self, e: &mut CommitEngine)
fn commit_encode(&self, e: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write
writer instance