nimue_pow

Trait PoWChallenge

Source
pub trait PoWChallenge {
    // Required method
    fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>;
}

Required Methods§

Source

fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>

Extension trait for generating a proof-of-work challenge.

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.

Implementations on Foreign Types§

Source§

impl<'a, H, U> PoWChallenge for Arthur<'a, H, U>
where U: Unit, H: DuplexHash<U>, Arthur<'a, H, U>: ByteReader + ByteChallenges,

Source§

fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>

Source§

impl<H, U, R> PoWChallenge for Merlin<H, U, R>
where U: Unit, H: DuplexHash<U>, R: CryptoRng + RngCore, Merlin<H, U, R>: ByteWriter + ByteChallenges,

Source§

fn challenge_pow<S: PowStrategy>(&mut self, bits: f64) -> ProofResult<()>

Implementors§