[][src]Function grin_core::pow::cuckarood::new_cuckarood_ctx

pub fn new_cuckarood_ctx<T>(
    edge_bits: u8,
    proof_size: usize
) -> Result<Box<dyn PoWContext<T>>, Error> where
    T: EdgeType + 'static, 

Instantiate a new CuckaroodContext as a PowContext. Note that this can't be moved in the PoWContext trait as this particular trait needs to be convertible to an object trait.