pub fn bad_polynomial_length<Signer: Signer, F: Fn(u32) -> u32>(func: F)
Check that bad polynomial lengths are properly caught as errors during DKG