(
min: u64,
max: u64,
params: BppSetupParams<G>,
)
| 29 | |
| 30 | impl<G: AffineRepr> BoundCheckBpp<G> { |
| 31 | pub fn new_statement_from_params<E: Pairing<G1Affine = G>>( |
| 32 | min: u64, |
| 33 | max: u64, |
| 34 | params: BppSetupParams<G>, |
| 35 | ) -> Result<Statement<E>, ProofSystemError> { |
| 36 | validate_bounds(min, max)?; |
| 37 | Ok(Statement::BoundCheckBpp(Self { |
| 38 | min, |
| 39 | max, |
| 40 | params: Some(params), |
| 41 | params_ref: None, |
| 42 | })) |
| 43 | } |
| 44 | |
| 45 | pub fn new_statement_from_params_ref<E: Pairing<G1Affine = G>>( |
| 46 | min: u64, |
nothing calls this directly
no test coverage detected