Skip to content

test(evm): add FEVM BLS12_381 precompile tests and contracts#13343

Merged
ZenGround0 merged 5 commits into
masterfrom
test/fevm-bls12-precompiles
Sep 16, 2025
Merged

test(evm): add FEVM BLS12_381 precompile tests and contracts#13343
ZenGround0 merged 5 commits into
masterfrom
test/fevm-bls12-precompiles

Conversation

@snissn
Copy link
Copy Markdown
Contributor

@snissn snissn commented Sep 15, 2025

Add Solidity test contracts and compiled artifacts for BLS12-381 operations:

  • G1AddTest, G1MsmTest

  • G2AddTest, G2MsmTest

  • MapFpToG1Test, MapFp2ToG2Test

  • PairingTest

Include corresponding .hex artifacts and a compile script (itests/contracts/bls12/compile.sh).

Update itests/fevm_test.go to run and validate these precompile tests.

Add Solidity test contracts and compiled artifacts for BLS12-381 operations:

- G1AddTest, G1MsmTest

- G2AddTest, G2MsmTest

- MapFpToG1Test, MapFp2ToG2Test

- PairingTest

Include corresponding .hex artifacts and a compile script (itests/contracts/bls12/compile.sh).

Update itests/fevm_test.go to run and validate these precompile tests.
Copilot AI review requested due to automatic review settings September 15, 2025 23:18
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FilOz Sep 15, 2025
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-project-automation github-project-automation Bot moved this from 📌 Triage to ⌨️ In Progress in FilOz Sep 15, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive test coverage for BLS12-381 precompiles in the FEVM (Filecoin Ethereum Virtual Machine) integration tests. It includes Solidity test contracts for all BLS12-381 cryptographic operations and integrates them into the test suite.

  • Adds 7 Solidity test contracts covering all BLS12-381 precompile operations (G1/G2 addition, MSM, field mapping, and pairing)
  • Includes compiled bytecode (.hex files) and compilation script for easy regeneration
  • Integrates BLS12-381 precompile testing into the existing FEVM test framework

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

File Description
itests/fevm_test.go Adds new test function to run all BLS12-381 precompile tests
itests/contracts/bls12/compile.sh Shell script to compile Solidity contracts to bytecode
itests/contracts/bls12/*.sol Seven Solidity test contracts for BLS12-381 operations
itests/contracts/bls12/*.hex Compiled bytecode artifacts for each test contract

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread itests/fevm_test.go Outdated
Comment thread itests/contracts/bls12/compile.sh
snissn and others added 2 commits September 15, 2025 13:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…as the first line to explicitly specify the shell interpreter.
@snissn snissn added the skip/changelog This change does not require CHANGELOG.md update label Sep 15, 2025
@snissn snissn changed the title itests: add FEVM BLS12-381 precompile tests and contracts itests(evm): add FEVM BLS12-381 precompile tests and contracts Sep 15, 2025
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snissn snissn mentioned this pull request Sep 16, 2025
@BigLep BigLep requested a review from ZenGround0 September 16, 2025 00:35
@rjan90 rjan90 moved this from 🐱 Todo to 🔎 Awaiting Review in nv27 Track Board Sep 16, 2025
@rjan90 rjan90 moved this from ⌨️ In Progress to 🔎 Awaiting Review in FilOz Sep 16, 2025
@snissn snissn changed the title itests(evm): add FEVM BLS12-381 precompile tests and contracts test(evm): add FEVM BLS12-381 precompile tests and contracts Sep 16, 2025
@github-actions github-actions Bot dismissed their stale review September 16, 2025 21:45

PR title now matches the required format.

@ZenGround0 ZenGround0 changed the title test(evm): add FEVM BLS12-381 precompile tests and contracts test(evm): add FEVM BLS12_381 precompile tests and contracts Sep 16, 2025
@github-actions github-actions Bot dismissed their stale review September 16, 2025 22:04

PR title now matches the required format.

@ZenGround0 ZenGround0 merged commit e90da4b into master Sep 16, 2025
102 checks passed
@ZenGround0 ZenGround0 deleted the test/fevm-bls12-precompiles branch September 16, 2025 22:07
@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting Review to 🎉 Done in nv27 Track Board Sep 16, 2025
@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting Review to 🎉 Done in FilOz Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does not require CHANGELOG.md update

Projects

Status: 🎉 Done
Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

5 participants