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

Method get_saver_proof

proof_system/src/prover.rs:107–111  ·  view source on GitHub ↗

Get SAVER randomness, ciphertext and proof to reuse for the given statement id

(&mut self, statement_id: &usize)

Source from the content-addressed store, hash-verified

105impl<E: Pairing> ProverConfig<E> {
106 /// Get SAVER randomness, ciphertext and proof to reuse for the given statement id
107 fn get_saver_proof(&mut self, statement_id: &usize) -> Option<OldSaverProof<E>> {
108 self.reuse_saver_proofs
109 .as_mut()
110 .and_then(|p| p.remove(statement_id))
111 }
112
113 /// Get LegoGroth16 randomness and proof to reuse for the given statement id
114 fn get_legogroth16_proof(&mut self, statement_id: &usize) -> Option<OldLegoGroth16Proof<E>> {

Callers 1

newMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected