Skip to content

Commit 9cc32c3

Browse files
authored
feat(tests): add bls map to curve on identity cases (#1505)
1 parent c14bdb7 commit 9cc32c3

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

docs/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Users can expect that all tests currently living in [ethereum/tests](https://git
3434
### 🧪 Test Cases
3535

3636
-[EIP-7702](https://eips.ethereum.org/EIPS/eip-7702): Test that DELEGATECALL to a 7702 target works as intended ([#1485](https://github.com/ethereum/execution-spec-tests/pull/1485)).
37-
-[EIP-2573](https://eips.ethereum.org/EIPS/eip-2537): Includes a BLS12 point generator, alongside additional coverage many of the precompiles ([#1350](https://github.com/ethereum/execution-spec-tests/pull/1350)).
37+
-[EIP-2573](https://eips.ethereum.org/EIPS/eip-2537): Includes a BLS12 point generator, alongside additional coverage many of the precompiles ([#1350](https://github.com/ethereum/execution-spec-tests/pull/1350)), ([#1505](https://github.com/ethereum/execution-spec-tests/pull/1505)).
3838
- ✨ Add all [`GeneralStateTests` from `ethereum/tests`](https://github.com/ethereum/tests/tree/7dc757ec132e372b6178a016b91f4c639f366c02/src/GeneralStateTestsFiller) to `execution-spec-tests` located now at [tests/static/state_tests](https://github.com/ethereum/execution-spec-tests/tree/main/tests/static/state_tests) ([#1442](https://github.com/ethereum/execution-spec-tests/pull/1442)).
3939

4040
## [v4.3.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v4.3.0) - 2025-04-18

tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py

+11
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@
5858
None,
5959
id="fp_p_minus_1",
6060
),
61+
pytest.param(
62+
FP2(
63+
(
64+
3510328712861478240121438855244276237335901234329585006107499559909114695366216070652508985150831181717984778988906, # noqa: E501
65+
2924545590598115509050131525615277284817672420174395176262156166974132393611647670391999011900253695923948997972401, # noqa: E501
66+
)
67+
),
68+
Spec.INF_G2,
69+
None,
70+
id="fp_map_to_inf",
71+
),
6172
],
6273
)
6374
def test_valid(

tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp_to_g1.py

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
None,
4747
id="fp_p_minus_1",
4848
),
49+
pytest.param(
50+
FP(
51+
799950832265136997107648781861994410980648980263584507133499364313075404851459407870655748616451882783569609925573 # noqa: E501
52+
),
53+
Spec.INF_G1,
54+
None,
55+
id="fp_map_to_inf",
56+
),
4957
],
5058
)
5159
def test_valid(

0 commit comments

Comments
 (0)