Key

Trait Key 

Source
pub trait Key {
    const LEN: usize;
}
Expand description

Key trait.

The only usage of this trait is to indicate the key’s bytes length.

Required Associated Constants§

Source

const LEN: usize

Key’s bytes length.

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 Key for Ecdsa

Source§

const LEN: usize = 33usize

Source§

impl Key for Ed25519

Source§

const LEN: usize = 32usize

Source§

impl Key for Sr25519

Source§

const LEN: usize = 32usize