Skip to content

Commit c89524a

Browse files
authored
EIP-3026 (#16)
* Update shell.nix * G1Add and G1Mul * G1MultiExp * G2Add * G2Mul and G2MultiExp * Bw6Pairing * EIP-3026 tests * EIP-3026 failure tests * Fix lint * Lint * Lint and test * Comment * Deps order
1 parent c3b3783 commit c89524a

20 files changed

Lines changed: 675 additions & 4 deletions

Cargo.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ members = [
1212
"frame/evm/precompile/ed25519",
1313
"frame/evm/precompile/bn128",
1414
"frame/evm/precompile/blake2",
15+
"frame/evm/precompile/bw6761",
1516
"frame/evm/precompile/bls12377",
1617
"frame/evm/precompile/dispatch",
1718
"frame/evm/precompile/curve25519",
@@ -145,3 +146,9 @@ pallet-evm-test-vector-support = { version = "1.0.0-dev", path = "frame/evm/test
145146
pallet-hotfix-sufficients = { version = "1.0.0", path = "frame/hotfix-sufficients", default-features = false }
146147
# Frontier Template
147148
frontier-template-runtime = { path = "template/runtime", default-features = false }
149+
# Arkworks
150+
ark-bls12-377 = { version = "0.4.0", default-features = false, features = ["curve"] }
151+
ark-bw6-761 = { version = "0.4.0", default-features = false }
152+
ark-std = { version = "0.4.0", default-features = false }
153+
ark-ec = { version = "0.4.0", default-features = false }
154+
ark-ff = { version = "0.4.0", default-features = false }

frame/evm/precompile/bls12377/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ repository = { workspace = true }
77

88
[dependencies]
99
# Arkworks
10-
ark-bls12-377 = { version = "0.4.0", default-features = false, features = ["curve"] }
11-
ark-ec = { version = "0.4.2", default-features = false }
12-
ark-ff = { version = "0.4.2", default-features = false }
13-
ark-std = { version = "0.4.0", default-features = false }
10+
ark-bls12-377 = { workspace = true }
11+
ark-ec = { workspace = true }
12+
ark-ff = { workspace = true }
13+
ark-std = { workspace = true }
1414

1515
# Frontier
1616
fp-evm = { workspace = true }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[package]
2+
name = "pallet-evm-precompile-bw6761"
3+
version = "1.0.0-dev"
4+
authors = { workspace = true }
5+
edition = { workspace = true }
6+
repository = { workspace = true }
7+
8+
[dependencies]
9+
# Arkworks
10+
ark-bw6-761 = { workspace = true }
11+
ark-ec = { workspace = true }
12+
ark-ff = { workspace = true }
13+
ark-std = { workspace = true }
14+
15+
# Frontier
16+
fp-evm = { workspace = true }
17+
18+
[dev-dependencies]
19+
# Frontier
20+
pallet-evm-test-vector-support = { workspace = true }
21+
22+
[features]
23+
default = ["std"]
24+
std = [
25+
# Arkworks
26+
"ark-bw6-761/std",
27+
"ark-ec/std",
28+
"ark-ff/std",
29+
"ark-std/std",
30+
31+
# Frontier
32+
"fp-evm/std"
33+
]

0 commit comments

Comments
 (0)