diff --git a/arbitrator/prover/src/mainnet-files/g1.point.65536 b/arbitrator/prover/src/mainnet-files/g1.point.65536 new file mode 100644 index 000000000..4922cd06f Binary files /dev/null and b/arbitrator/prover/src/mainnet-files/g1.point.65536 differ diff --git a/arbitrator/prover/src/mainnet-files/g2.point.65536 b/arbitrator/prover/src/mainnet-files/g2.point.65536 new file mode 100644 index 000000000..b1cf1872b Binary files /dev/null and b/arbitrator/prover/src/mainnet-files/g2.point.65536 differ diff --git a/arbitrator/prover/src/mainnet-files/g2.point.powerOf2 b/arbitrator/prover/src/mainnet-files/g2.point.powerOf2 new file mode 100644 index 000000000..58e349b6e Binary files /dev/null and b/arbitrator/prover/src/mainnet-files/g2.point.powerOf2 differ diff --git a/arbitrator/prover/src/utils.rs b/arbitrator/prover/src/utils.rs index 3dfef9096..96675a4d8 100644 --- a/arbitrator/prover/src/utils.rs +++ b/arbitrator/prover/src/utils.rs @@ -207,12 +207,13 @@ pub fn hash_preimage(preimage: &[u8], ty: PreimageType) -> Result<[u8; 32]> { Ok(commitment_hash) } PreimageType::EigenDAHash => { + let kzg_bn254: KzgBN254 = KzgBN254::setup( - "./arbitrator/prover/src/test-files/g1.point", - "./arbitrator/prover/src/test-files/g2.point", - "./arbitrator/prover/src/test-files/g2.point.powerOf2", - 3000, - 3000, + "./arbitrator/prover/src/mainnet-files/g1.point.65536", + "./arbitrator/prover/src/mainnet-files/g2.point.65536", + "./arbitrator/prover/src/mainnet-files/g2.point.powerOf2", + 268435456, + 65536, ) .unwrap(); diff --git a/arbitrator/prover/test-cases/go/main.go b/arbitrator/prover/test-cases/go/main.go index d8be4945f..c708744ca 100644 --- a/arbitrator/prover/test-cases/go/main.go +++ b/arbitrator/prover/test-cases/go/main.go @@ -211,7 +211,7 @@ func main() { } } // EIGENDA COMMIT HASH - _, err = wavmio.ResolveTypedPreimage(arbutil.EigenDaPreimageType, common.HexToHash("011e229d75b13559dcb2d757ecae9b66fa579268e28e196789503322115c06e1")) + _, err = wavmio.ResolveTypedPreimage(arbutil.EigenDaPreimageType, common.HexToHash("01605220b6928163676612ca50bbe5e0c595052876796dbedeae8ef597c9fdcf")) if err != nil { panic(fmt.Sprintf("failed to resolve eigenda preimage: %v", err)) } diff --git a/arbitrator/prover/test-cases/rust/src/bin/host-io.rs b/arbitrator/prover/test-cases/rust/src/bin/host-io.rs index abbb74aca..7c28174f4 100644 --- a/arbitrator/prover/test-cases/rust/src/bin/host-io.rs +++ b/arbitrator/prover/test-cases/rust/src/bin/host-io.rs @@ -109,7 +109,9 @@ fn main() { let expected_len = 0; for i in 0..5{ - let eigen_hash = hex!("011e229d75b13559dcb2d757ecae9b66fa579268e28e196789503322115c06e1"); + // test-files srs 011e229d75b13559dcb2d757ecae9b66fa579268e28e196789503322115c06e1 + // mainnet srs 01605220b6928163676612ca50bbe5e0c595052876796dbedeae8ef597c9fdcf + let eigen_hash = hex!("01605220b6928163676612ca50bbe5e0c595052876796dbedeae8ef597c9fdcf"); bytebuffer = Bytes32(eigen_hash); let actual_len = wavm_read_eigen_da_hash_preimage(bytebuffer.0.as_mut_ptr(), i * 32);