From c0bb2ffd9aacce325b1616d6eaf9fa8c8959edc3 Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Tue, 29 Oct 2024 16:54:13 -0400 Subject: [PATCH] fix: Remove unused commitment hash field from EigenDA preimage MSP --- arbitrator/prover/src/kzgbn254.rs | 13 ++++++------- contracts | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arbitrator/prover/src/kzgbn254.rs b/arbitrator/prover/src/kzgbn254.rs index 1036ea333..4d3909ce7 100644 --- a/arbitrator/prover/src/kzgbn254.rs +++ b/arbitrator/prover/src/kzgbn254.rs @@ -175,13 +175,12 @@ pub fn prove_kzg_preimage_bn254( let mut length_bytes = Vec::with_capacity(32); append_left_padded_biguint_be(&mut length_bytes, &BigUint::from(length_usize)); - out.write_all(&commitment_hash.to_vec())?; // hash [:32] - out.write_all(&*z)?; // evaluation point [32:64] - out.write_all(&*proven_y)?; // expected output [64:96] - out.write_all(&xminusz_encoded_bytes)?; // g2TauMinusG2z [96:224] - out.write_all(&*commitment_encoded_bytes)?; // kzg commitment [224:288] - out.write_all(&proof_encoded_bytes)?; // proof [288:352] - out.write_all(&*length_bytes)?; // length of preimage [352:384] + out.write_all(&*z)?; // evaluation point [:32] + out.write_all(&*proven_y)?; // expected output [32:64] + out.write_all(&xminusz_encoded_bytes)?; // g2TauMinusG2z [64:192] + out.write_all(&*commitment_encoded_bytes)?; // kzg commitment [192:256] + out.write_all(&proof_encoded_bytes)?; // proof [256:320] + out.write_all(&*length_bytes)?; // length of preimage [320:352] Ok(()) } diff --git a/contracts b/contracts index 2b40663ea..3ccca596f 160000 --- a/contracts +++ b/contracts @@ -1 +1 @@ -Subproject commit 2b40663ea26347dd034a756849802dae9c2f1e4d +Subproject commit 3ccca596fa23c625c5d5fabe322e945defb4af3b