MCPcopy Create free account
hub / github.com/docknetwork/crypto / new_statement_from_params

Method new_statement_from_params

proof_system/src/statement/bound_check_bpp.rs:31–43  ·  view source on GitHub ↗
(
        min: u64,
        max: u64,
        params: BppSetupParams<G>,
    )

Source from the content-addressed store, hash-verified

29
30impl<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,

Callers

nothing calls this directly

Calls 2

validate_boundsFunction · 0.85
BoundCheckBppClass · 0.85

Tested by

no test coverage detected