mirror of
https://github.com/arnaucube/testudo.git
synced 2026-01-12 16:51:28 +01:00
Fold panics in the enclosing Error case (#27)
This commit is contained in:
committed by
GitHub
parent
9e4c166edb
commit
075ada9c29
@@ -530,11 +530,10 @@ impl DotProductProofLog {
|
|||||||
|
|
||||||
let Gamma = Cx.unpack()? + Cy.unpack()?;
|
let Gamma = Cx.unpack()? + Cy.unpack()?;
|
||||||
|
|
||||||
let (g_hat, Gamma_hat, a_hat) = self
|
let (g_hat, Gamma_hat, a_hat) =
|
||||||
|
self
|
||||||
.bullet_reduction_proof
|
.bullet_reduction_proof
|
||||||
.verify(n, a, transcript, &Gamma, &gens.gens_n.G)
|
.verify(n, a, transcript, &Gamma, &gens.gens_n.G)?;
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
self.delta.append_to_transcript(b"delta", transcript);
|
self.delta.append_to_transcript(b"delta", transcript);
|
||||||
self.beta.append_to_transcript(b"beta", transcript);
|
self.beta.append_to_transcript(b"beta", transcript);
|
||||||
|
|
||||||
|
|||||||
@@ -437,17 +437,14 @@ impl R1CSProof {
|
|||||||
.compress();
|
.compress();
|
||||||
|
|
||||||
// verify the joint claim with a sum-check protocol
|
// verify the joint claim with a sum-check protocol
|
||||||
let (comm_claim_post_phase2, ry) = self
|
let (comm_claim_post_phase2, ry) = self.sc_proof_phase2.verify(
|
||||||
.sc_proof_phase2
|
|
||||||
.verify(
|
|
||||||
&comm_claim_phase2,
|
&comm_claim_phase2,
|
||||||
num_rounds_y,
|
num_rounds_y,
|
||||||
2,
|
2,
|
||||||
&gens.gens_sc.gens_1,
|
&gens.gens_sc.gens_1,
|
||||||
&gens.gens_sc.gens_3,
|
&gens.gens_sc.gens_3,
|
||||||
transcript,
|
transcript,
|
||||||
)
|
)?;
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
// verify Z(ry) proof against the initial commitment
|
// verify Z(ry) proof against the initial commitment
|
||||||
assert!(self
|
assert!(self
|
||||||
|
|||||||
Reference in New Issue
Block a user