Skip to content

Commit

Permalink
Merge pull request #45 from Layr-Labs/epociask--fix-rm-unused-hash-field
Browse files Browse the repository at this point in the history
fix: Remove unused commitment hash field from EigenDA preimage MSP
  • Loading branch information
epociask authored Oct 30, 2024
2 parents 9d416bc + c0bb2ff commit 49a3969
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions arbitrator/prover/src/kzgbn254.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
2 changes: 1 addition & 1 deletion contracts

0 comments on commit 49a3969

Please sign in to comment.