Skip to main content

DomainLabel

Trait DomainLabel 

Source
pub trait DomainLabel: Clone + 'static {
    // Required method
    fn domain_label() -> &'static [u8] ;
}
Expand description

Trait for specifying a domain separation label that should be specific to the application

Required Methods§

Source

fn domain_label() -> &'static [u8]

Returns a label, which is used as a domain separator when computing hashes

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§