Trait commit_verify::CommitmentId
source · pub trait CommitmentId: CommitEncode {
type Id: From<[u8; 32]>;
const TAG: [u8; 32];
// Provided method
fn commitment_id(&self) -> Self::Id { ... }
}
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.
Required Associated Types§
Required Associated Constants§
Provided Methods§
sourcefn commitment_id(&self) -> Self::Id
fn commitment_id(&self) -> Self::Id
Performs commitment to client-side-validated data
Object Safety§
This trait is not object safe.