IdVersion

Trait IdVersion 

Source
pub trait IdVersion: Version {
    // Required method
    fn hash_key(key_header: &'static str, key_data: &[u8]) -> [u8; 33];
}
Expand description

This PASETO implementation allows extracting key ids

Required Methods§

Source

fn hash_key(key_header: &'static str, key_data: &[u8]) -> [u8; 33]

How to hash some keydata for creating KeyId

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§