Skip to main content

ThreadSeeds

Trait ThreadSeeds 

Source
pub trait ThreadSeeds {
    // Required method
    fn get_seed_bytes(&self) -> Vec<Vec<u8>>;

    // Provided method
    fn sign<F, R>(&self, f: F) -> R
       where F: FnOnce(&[&[u8]]) -> R { ... }
}
Expand description

Trait for getting thread seeds for signing

Required Methods§

Provided Methods§

Source

fn sign<F, R>(&self, f: F) -> R
where F: FnOnce(&[&[u8]]) -> R,

Use seeds with a callback to avoid lifetime issues

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§