Skip to content

Commit 4f63afc

Browse files
authored
fix: append e final terms (#8)
1 parent e774e7e commit 4f63afc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/evaluation_proof.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ where
223223
let gamma = transcript.challenge_scalar(b"gamma");
224224
let final_message = prover_state.compute_final_message::<M1, M2>(&gamma);
225225

226-
// We grab d challenge at the end (despite it being unused) to keep transcript states in-sync post proof.
226+
transcript.append_serde(b"final_e1", &final_message.e1);
227+
transcript.append_serde(b"final_e2", &final_message.e2);
228+
227229
let _d = transcript.challenge_scalar(b"d");
228230

229231
Ok(DoryProof {
@@ -362,6 +364,10 @@ where
362364
}
363365

364366
let gamma = transcript.challenge_scalar(b"gamma");
367+
368+
transcript.append_serde(b"final_e1", &proof.final_message.e1);
369+
transcript.append_serde(b"final_e2", &proof.final_message.e2);
370+
365371
let d = transcript.challenge_scalar(b"d");
366372

367373
verifier_state.verify_final(&proof.final_message, &gamma, &d)

0 commit comments

Comments
 (0)