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

Method challenge_contribution

bbs_plus/src/proof.rs:254–270  ·  view source on GitHub ↗

Get the contribution of this protocol towards the challenge, i.e. bytecode of items that will be hashed

(
        &self,
        revealed_msgs: &BTreeMap<usize, E::ScalarField>,
        params: &SignatureParamsG1<E>,
        writer: W,
    )

Source from the content-addressed store, hash-verified

252
253 /// Get the contribution of this protocol towards the challenge, i.e. bytecode of items that will be hashed
254 pub fn challenge_contribution<W: Write>(
255 &self,
256 revealed_msgs: &BTreeMap<usize, E::ScalarField>,
257 params: &SignatureParamsG1<E>,
258 writer: W,
259 ) -> Result<(), BBSPlusError> {
260 Self::compute_challenge_contribution(
261 &self.A_prime,
262 &self.A_bar,
263 &self.d,
264 &self.sc_comm_1.t,
265 &self.sc_comm_2.t,
266 revealed_msgs,
267 params,
268 writer,
269 )
270 }
271
272 /// Generate proof. Post-challenge phase of the protocol.
273 pub fn gen_proof(

Callers 2

pseudonymFunction · 0.45
new_verifiableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected