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

Method get_setup_params

proof_system/src/statement/bound_check_bpp.rs:58–71  ·  view source on GitHub ↗
(
        &'a self,
        setup_params: &'a [SetupParams<E>],
        st_idx: usize,
    )

Source from the content-addressed store, hash-verified

56 }
57
58 pub fn get_setup_params<'a, E: Pairing<G1Affine = G>>(
59 &'a self,
60 setup_params: &'a [SetupParams<E>],
61 st_idx: usize,
62 ) -> Result<&'a BppSetupParams<G>, ProofSystemError> {
63 extract_param!(
64 setup_params,
65 &self.params,
66 self.params_ref,
67 BppSetupParams,
68 IncompatibleBoundCheckSetupParamAtIndex,
69 st_idx
70 )
71 }
72}
73
74/// Public values for proving knowledge of bound check using Bulletproofs++.

Callers 3

_verifyMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by 1