Skip to main content

Profile

Trait Profile 

pub trait Profile: Sealed + 'static {
    const ID: ProfileId;
    const NAME: &'static str;
}
Expand description

Marker implemented by supported, compile-time-separated hash profiles.

The trait is sealed so downstream crates cannot accidentally assign an unsupported hash function to a recognized profile identifier.

Required Associated Constants§

const ID: ProfileId

Stable profile identifier.

const NAME: &'static str

Canonical profile text used in diagnostics, evidence, and protocols.

Implementations derive this from ProfileId::as_str so the marker type and runtime identifier cannot acquire different spellings.

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§

§

impl Profile for HashSigsSha256GenericV1

§

const ID: ProfileId = ProfileId::HashSigsSha256GenericV1

§

const NAME: &'static str

§

impl Profile for LegacyKeccak

§

const ID: ProfileId = ProfileId::LegacyKeccak

§

const NAME: &'static str