Skip to content

Commit

Permalink
remove precompile suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Dec 12, 2024
1 parent 908b9f0 commit b571d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions constantine/ethereum_evm_precompiles.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1233,9 +1233,9 @@ proc kzg_to_versioned_hash(r: var array[32, byte], commitment_bytes: array[48, b
s.finish(r)
r[0] = VERSIONED_HASH_VERSION_KZG

func eth_evm_kzg_point_evaluation_precompile*(ctx: ptr EthereumKZGContext,
r: var openArray[byte],
input: openArray[byte]): CttEVMStatus {.libPrefix: prefix_ffi, meter.} =
func eth_evm_kzg_point_evaluation*(ctx: ptr EthereumKZGContext,
r: var openArray[byte],
input: openArray[byte]): CttEVMStatus {.libPrefix: prefix_ffi, meter.} =
## Verify `p(z) = y` given commitment that corresponds to the polynomial `p(x)` and a KZG proof.
## Also verify that the provided commitment matches the provided versioned_hash.
## Returns `FIELD_ELEMENTS_PER_BLOB` and the BSL12-381 modulus as padded 32 byte big endian values,
Expand Down
2 changes: 1 addition & 1 deletion tests/t_ethereum_evm_precompiles.nim
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ runPrecompileTests("eip-2537/fail-map_fp_to_G1_bls.json", eth_evm_bls12381_map_f
runPrecompileTests("eip-2537/map_fp2_to_G2_bls.json", eth_evm_bls12381_map_fp2_to_g2, 256)
runPrecompileTests("eip-2537/fail-map_fp2_to_G2_bls.json", eth_evm_bls12381_map_fp2_to_g2, 256)

runPrecompileTests("eip-4844/pointEvaluation.json", eth_evm_kzg_point_evaluation_precompile, 64, true)
runPrecompileTests("eip-4844/pointEvaluation.json", eth_evm_kzg_point_evaluation, 64, true)

0 comments on commit b571d5e

Please sign in to comment.