Trait CommitmentId

Source
pub trait CommitmentId:
    Copy
    + Ord
    + From<Sha256>
    + StrictType {
    const TAG: &'static str;
}
Expand description

A definition of a resulting commitment type, which represent a unique identifier of the underlying data.

Required Associated Constants§

Source

const TAG: &'static str

A tag string used in initializing SHA256 hasher.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CommitmentId for MerkleHash

Source§

const TAG: &'static str = "urn:ubideco:merkle:node#2024-01-31"

Source§

impl CommitmentId for Commitment

Source§

const TAG: &'static str = "urn:ubideco:mpc:commitment#2024-01-31"

Source§

impl CommitmentId for StrictHash

Source§

const TAG: &'static str = "urn:ubideco:strict-types:value-hash#2024-02-10"