Trait ibe::Derive

source ·
pub trait Derive: Sized {
    // Required method
    fn derive(b: &[u8]) -> Self;

    // Provided method
    fn derive_str(s: &str) -> Self { ... }
}
Expand description

Trait that is used to derive identities for schemes.

Required Methods§

source

fn derive(b: &[u8]) -> Self

Derive an identity for a scheme from a byte slice.

Provided Methods§

source

fn derive_str(s: &str) -> Self

Derive an identity for a schem from a string. Internally uses UTF-8 encoding as_bytes().

Implementors§

source§

impl Derive for ibe::ibe::waters::Identity

Available on crate feature waters only.
source§

impl Derive for ibe::ibe::waters_naccache::Identity

Available on crate feature waters_naccache only.