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

Method get_comm_key

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

Source from the content-addressed store, hash-verified

48 }
49
50 pub fn get_comm_key<'a, E: Pairing<G1Affine = G>>(
51 &'a self,
52 setup_params: &'a [SetupParams<E>],
53 st_idx: usize,
54 ) -> Result<&'a PedersenCommitmentKey<G>, ProofSystemError> {
55 extract_param!(
56 setup_params,
57 &self.comm_key,
58 self.comm_key_ref,
59 CommitmentKey,
60 IncompatibleBoundCheckSetupParamAtIndex,
61 st_idx
62 )
63 }
64}

Callers 5

_verifyMethod · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by 1