ckb_pow

Trait PowEngine

Source
pub trait PowEngine:
    Send
    + Sync
    + AsAny {
    // Required method
    fn verify(&self, header: &Header) -> bool;
}
Expand description

A trait for PoW engine, which is used to verify PoW

Required Methods§

Source

fn verify(&self, header: &Header) -> bool

Verify header

Implementors§