pub trait CommitId: CommitEncode {
// Required method
fn commit_id(&self) -> Self::CommitmentId;
}
Expand description
High-level API used in client-side validation for producing a single
commitment to the data, which includes running all necessary procedures like
concealment with crate::Conceal
, merklization, strict encoding,
wrapped into CommitEncode
, followed by the actual commitment to its
output.
The trait is separate from the CommitEncode
to prevent custom
implementation of its methods, since CommitId
can’t be manually
implemented for any type since it has a generic blanket implementation.
Required Methods§
Sourcefn commit_id(&self) -> Self::CommitmentId
fn commit_id(&self) -> Self::CommitmentId
Performs commitment to client-side-validated data