Skip to main content

stwo_gpu/core/
proof_of_work.rs

1use crate::core::channel::Channel;
2
3pub trait GrindOps<C: Channel> {
4    /// Searches for a nonce s.t. mixing it to the channel makes the digest have `pow_bits` leading
5    /// zero bits.
6    fn grind(channel: &C, pow_bits: u32) -> u64;
7}