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§

source

type Id: From<[u8; 32]>

Type of the resulting commitment.

Required Associated Constants§

source

const TAG: [u8; 32]

Provided Methods§

source

fn commitment_id(&self) -> Self::Id

Performs commitment to client-side-validated data

Object Safety§

This trait is not object safe.

Implementors§