Skip to main content

GrindOps

Trait GrindOps 

Source
pub trait GrindOps<C: Channel> {
    // Required method
    fn grind(channel: &C, pow_bits: u32) -> u64;
}

Required Methods§

Source

fn grind(channel: &C, pow_bits: u32) -> u64

Searches for a nonce s.t. mixing it to the channel makes the digest have pow_bits leading zero bits.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§