SolverFn

Type Alias SolverFn 

Source
pub type SolverFn<Solution> = dyn Fn([u8; 32], u32) -> Result<Option<Solution>, Error> + Send + Sync;
Expand description

Generic solver function type for PoW backends.

Implementations take a derived challenge and difficulty parameter and either return a candidate solution or indicate that no suitable solution was found.