Skip to content

[Feature]: Implement Ethereum Precompiles in Tests #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 9 tasks
0xNeshi opened this issue Mar 24, 2025 · 2 comments
Open
1 of 9 tasks

[Feature]: Implement Ethereum Precompiles in Tests #85

0xNeshi opened this issue Mar 24, 2025 · 2 comments
Labels
blocked Waiting for an external dependency to resolve enhancement New feature or request

Comments

@0xNeshi
Copy link
Collaborator

0xNeshi commented Mar 24, 2025

What is the feature you would like to see?

There are 9 precompiles in Ethereum:
https://www.rareskills.io/post/solidity-precompiles

All of these are supported in Stylus:
https://docs.arbitrum.io/build-decentralized-apps/precompiles/overview

The problem we're facing with running motsu without an underlying node (like nitro-testnode) is that it's difficult to get a 1-to-1 precompile implementation, as Stylus nodes are written in Go (see nitro) and our precompile implementations are in Rust.

  • Address 0x02: SHA-256
  • Address 0x03: RIPEMD-160
  • Address 0x04: Identity
  • Address 0x05: Modexp
  • Address 0x06: ecAdd (EIP-196)
  • Address 0x07: ecMul (EIP-196)
  • Address 0x08: ecPairing (EIP-197)
  • Address 0x09: Blake2 (EIP-152)

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
@0xNeshi 0xNeshi added the enhancement New feature or request label Mar 24, 2025
@0xNeshi 0xNeshi changed the title [Feature]: Include Ethereum Precompiles in Tests [Feature]: Implement Ethereum Precompiles in Tests Mar 24, 2025
@0xNeshi
Copy link
Collaborator Author

0xNeshi commented Mar 24, 2025

@0xNeshi 0xNeshi self-assigned this Mar 24, 2025
@0xNeshi 0xNeshi added the blocked Waiting for an external dependency to resolve label Mar 24, 2025
@0xNeshi
Copy link
Collaborator Author

0xNeshi commented Mar 24, 2025

Blocked by #87

@0xNeshi 0xNeshi removed their assignment Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Waiting for an external dependency to resolve enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant