31
31
# Source: https://github.com/C2SP/wycheproof/blob/main/testvectors/ecdsa_secp256r1_sha256_test.json
32
32
)
33
33
@pytest .mark .parametrize ("precompile_address" , [Spec .P256VERIFY ], ids = ["" ])
34
- @pytest .mark .eip_checklist ("new_precompile /test/call_contexts/normal" )
35
- @pytest .mark .eip_checklist ("new_precompile /test/inputs/valid" )
34
+ @pytest .mark .eip_checklist ("precompile /test/call_contexts/normal" )
35
+ @pytest .mark .eip_checklist ("precompile /test/inputs/valid" )
36
36
def test_valid (state_test : StateTestFiller , pre : Alloc , post : dict , tx : Transaction ):
37
37
"""Test P256Verify precompile."""
38
38
state_test (env = Environment (), pre = pre , post = post , tx = tx )
@@ -94,13 +94,13 @@ def test_valid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transact
94
94
)
95
95
@pytest .mark .parametrize ("expected_output" , [Spec .INVALID_RETURN_VALUE ], ids = ["" ])
96
96
@pytest .mark .parametrize ("precompile_address" , [Spec .P256VERIFY ], ids = ["" ])
97
- @pytest .mark .eip_checklist ("new_precompile /test/inputs/all_zeros" )
98
- @pytest .mark .eip_checklist ("new_precompile /test/inputs/invalid" )
99
- @pytest .mark .eip_checklist ("new_precompile /test/inputs/invalid/crypto" )
100
- @pytest .mark .eip_checklist ("new_precompile /test/inputs/invalid/corrupted" )
101
- @pytest .mark .eip_checklist ("new_precompile /test/input_lengths/static/correct" )
102
- @pytest .mark .eip_checklist ("new_precompile /test/input_lengths/static/too_short" )
103
- @pytest .mark .eip_checklist ("new_precompile /test/input_lengths/static/too_long" )
97
+ @pytest .mark .eip_checklist ("precompile /test/inputs/all_zeros" )
98
+ @pytest .mark .eip_checklist ("precompile /test/inputs/invalid" )
99
+ @pytest .mark .eip_checklist ("precompile /test/inputs/invalid/crypto" )
100
+ @pytest .mark .eip_checklist ("precompile /test/inputs/invalid/corrupted" )
101
+ @pytest .mark .eip_checklist ("precompile /test/input_lengths/static/correct" )
102
+ @pytest .mark .eip_checklist ("precompile /test/input_lengths/static/too_short" )
103
+ @pytest .mark .eip_checklist ("precompile /test/input_lengths/static/too_long" )
104
104
def test_invalid (state_test : StateTestFiller , pre : Alloc , post : dict , tx : Transaction ):
105
105
"""Negative tests for the P256VERIFY precompile."""
106
106
state_test (env = Environment (), pre = pre , post = post , tx = tx )
@@ -126,8 +126,8 @@ def test_invalid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transa
126
126
],
127
127
)
128
128
@pytest .mark .parametrize ("precompile_address" , [Spec .P256VERIFY ], ids = ["" ])
129
- @pytest .mark .eip_checklist ("new_precompile /test/gas_usage/constant/exact" )
130
- @pytest .mark .eip_checklist ("new_precompile /test/gas_usage/constant/oog" )
129
+ @pytest .mark .eip_checklist ("precompile /test/gas_usage/constant/exact" )
130
+ @pytest .mark .eip_checklist ("precompile /test/gas_usage/constant/oog" )
131
131
def test_gas (state_test : StateTestFiller , pre : Alloc , post : dict , tx : Transaction ):
132
132
"""Test P256Verify precompile gas requirements."""
133
133
state_test (env = Environment (), pre = pre , post = post , tx = tx )
@@ -152,9 +152,9 @@ def test_gas(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transactio
152
152
],
153
153
)
154
154
@pytest .mark .parametrize ("precompile_address" , [Spec .P256VERIFY ], ids = ["" ])
155
- @pytest .mark .eip_checklist ("new_precompile /test/call_contexts/delegate" )
156
- @pytest .mark .eip_checklist ("new_precompile /test/call_contexts/static" )
157
- @pytest .mark .eip_checklist ("new_precompile /test/call_contexts/callcode" )
155
+ @pytest .mark .eip_checklist ("precompile /test/call_contexts/delegate" )
156
+ @pytest .mark .eip_checklist ("precompile /test/call_contexts/static" )
157
+ @pytest .mark .eip_checklist ("precompile /test/call_contexts/callcode" )
158
158
def test_call_types (
159
159
state_test : StateTestFiller ,
160
160
pre : Alloc ,
@@ -176,7 +176,7 @@ def test_call_types(
176
176
),
177
177
],
178
178
)
179
- @pytest .mark .eip_checklist ("new_precompile /test/call_contexts/tx_entry" )
179
+ @pytest .mark .eip_checklist ("precompile /test/call_contexts/tx_entry" )
180
180
def test_precompile_as_tx_entry_point (
181
181
state_test : StateTestFiller ,
182
182
pre : Alloc ,
0 commit comments