Skip to main content

SecurityLevel

Trait SecurityLevel 

Source
pub trait SecurityLevel:
    Clone
    + Sync
    + Send
    + 'static {
    type KappaBytes: AsRef<[u8]> + AsMut<[u8]> + Default + Clone + FromHex<Error = FromHexError> + Send + Sync + Unpin + 'static;

    const KAPPA_BITS: u32;
    const KAPPA_BYTES: usize;
}
Expand description

Security level of the DKG protocol

You should not implement this trait manually. Use define_security_level macro instead.

Required Associated Constants§

Source

const KAPPA_BITS: u32

$\kappa$ bits

Source

const KAPPA_BYTES: usize

$\kappa/8$ bytes

Required Associated Types§

Source

type KappaBytes: AsRef<[u8]> + AsMut<[u8]> + Default + Clone + FromHex<Error = FromHexError> + Send + Sync + Unpin + 'static

Byte array of KAPPA_BYTES bytes

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§