Skip to content
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

feat: add matter-labs based eip1962 precompile impls #1547

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 75 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ all = "warn"
[dependencies]
revm-primitives = { path = "../primitives", version = "4.0.0", default-features = false }
once_cell = { version = "1.19", default-features = false, features = ["alloc"] }
cfg-if = "1.0"

# ecRecover
k256 = { version = "0.13.3", default-features = false, features = ["ecdsa"] }
Expand All @@ -41,14 +42,17 @@ ripemd = { version = "0.1", default-features = false }
aurora-engine-modexp = { version = "1.1", default-features = false }

# ecAdd, ecMul, ecPairing
bn = { package = "substrate-bn", version = "0.6", default-features = false }
eth_pairings = { git = "https://github.com/matter-labs/eip1962", default-features = false, features = ["eip_196"] }

# KZG point evaluation precompile
c-kzg = { version = "1.0.2", default-features = false, optional = true }

# BLS12-381 precompiles
blst = { version = "0.3.12", optional = true }

# ecAdd, ecMul, ecPairing
bn = { package = "substrate-bn", version = "0.6", default-features = false, optional = true }

# p256verify precompile
p256 = { version = "0.13.2", optional = true, default-features = false, features = [
"ecdsa",
Expand Down Expand Up @@ -76,6 +80,7 @@ std = [
]
hashbrown = ["revm-primitives/hashbrown"]
asm-keccak = ["revm-primitives/asm-keccak"]
bn = ["dep:bn"]

optimism = ["revm-primitives/optimism", "secp256r1"]
# Optimism default handler enabled Optimism handler register by default in EvmBuilder.
Expand Down
Loading
Loading