Skip to content

feat(core/vm): adds eip-7212 precompile#13

Merged
leeren merged 2 commits intomainfrom
feat/add-p256-verify
Oct 16, 2024
Merged

feat(core/vm): adds eip-7212 precompile#13
leeren merged 2 commits intomainfrom
feat/add-p256-verify

Conversation

@leeren
Copy link
Contributor

@leeren leeren commented Sep 16, 2024

Adds genesis precompile support for EIP-7212 precompiles.

To test, run go test ./core/vm -run TestPrecompiledP256Verify.

@leeren leeren self-assigned this Sep 16, 2024
@limengformal
Copy link
Contributor

@leeren Did you refer to any existing implementation from zkSync or others? If yes, can you paste the link here?

@Ramarti
Copy link
Contributor

Ramarti commented Sep 17, 2024

As @limengformal mentioned, we need to be able to verify how much the precompile is modified if we are forking it from other client @leeren . Thanks!

@leeren
Copy link
Contributor Author

leeren commented Sep 17, 2024

@leeren Did you refer to any existing implementation from zkSync or others? If yes, can you paste the link here?

Yes, we mainly referenced op-geth

Here is the main PR referenced:

The only diff is that we include the precompile in all forks as this is intended to be included on genesis. For iliad, this will be modified.

Copy link
Member

@LeoHChen LeoHChen left a comment

Choose a reason for hiding this comment

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

LGTM, I would like to see how can we test it e2e. Any impact to the downstream stack?

@limengformal
Copy link
Contributor

@leeren LGTM. Let's pick it to iliad branch and test in devnet

@leeren leeren force-pushed the feat/add-p256-verify branch 2 times, most recently from 6e7d8a7 to ec6f9c1 Compare October 16, 2024 00:00
@github-actions
Copy link

github-actions bot commented Oct 16, 2024

Binary uploaded successfully 🎉

📦 Version Name: 0.10.0-unstable-201dd6a
📦 Download Source: AWS S3

@leeren leeren force-pushed the feat/add-p256-verify branch from ec6f9c1 to 7f3b1c3 Compare October 16, 2024 00:30
@leeren leeren merged commit 201dd6a into main Oct 16, 2024
@leeren leeren deleted the feat/add-p256-verify branch October 16, 2024 00:35
limengformal pushed a commit that referenced this pull request Jan 27, 2025
fix(ipgraph): ensure stable ordering results
stevemilk pushed a commit that referenced this pull request Mar 19, 2025
* feat(core/vm): adds eip-7212 precompile

* update to support all fork sets
stevemilk pushed a commit that referenced this pull request Apr 26, 2025
* feat(core/vm): adds eip-7212 precompile

* update to support all fork sets
stevemilk pushed a commit that referenced this pull request Apr 28, 2025
* feat(core/vm): adds eip-7212 precompile

* update to support all fork sets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants