pub trait CommitEncode {
type CommitmentId: CommitmentId;
// Required method
fn commit_encode(&self, e: &mut CommitEngine);
}Expand description
A trait for types supporting commit-encode procedure.
The procedure is used to generate a cryptographic deterministic commitment to data encoded in a binary form.
Later the commitment can be used to produce CommitmentId (which does a
tagged hash of the commitment).
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