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

Method compute_commitment

bulletproofs_plus_plus/src/setup.rs:76–83  ·  view source on GitHub ↗

Returns `v*g + + `

(
        &self,
        v: &G::ScalarField,
        l: &[G::ScalarField],
        n: &[G::ScalarField],
    )

Source from the content-addressed store, hash-verified

74
75 /// Returns `v*g + <g_vec, n> + <h_vec, l>`
76 pub fn compute_commitment(
77 &self,
78 v: &G::ScalarField,
79 l: &[G::ScalarField],
80 n: &[G::ScalarField],
81 ) -> G {
82 Self::compute_commitment_given_bases(v, l, n, &self.G, &self.G_vec, &self.H_vec)
83 }
84
85 /// Returns `v*g + <g_vec, n> + <h_vec, l>`
86 pub fn compute_commitment_given_bases(

Callers 3

check_when_powers_of_2Function · 0.80
round_3Method · 0.80

Calls

no outgoing calls

Tested by 1

check_when_powers_of_2Function · 0.64