Skip to main content

Algorithm

Trait Algorithm 

Source
pub trait Algorithm {
    const ID: &'static str;
    const NAME: &'static str;
}
Expand description

Links a concrete implementation to its ontology entry.

ID is the stable ontology identifier (for example "sha2-256"), and is the join key between runtime types and the machine-readable catalog exposed by ic-ontology.

Required Associated Constants§

Source

const ID: &'static str

Stable ontology identifier for this algorithm.

Source

const NAME: &'static str

Human-facing display name (for example "SHA-256").

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§