Skip to main content

Profile

Trait Profile 

Source
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§

Source

const ID: ProfileId

Stable profile identifier.

Source

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§

Source§

impl Profile for HashSigsSha256GenericV1

Source§

const ID: ProfileId = ProfileId::HashSigsSha256GenericV1

Source§

const NAME: &'static str

Source§

impl Profile for LegacyKeccak

Source§

const ID: ProfileId = ProfileId::LegacyKeccak

Source§

const NAME: &'static str