test_valid()
Documentation for tests/osaka/eip7951_p256verify_precompiles/test_eip_mainnet.py::test_valid@7b8124a7.
Generate fixtures for these test cases for Osaka with:
fill -v tests/osaka/eip7951_p256verify_precompiles/test_eip_mainnet.py::test_valid --fork Osaka
Positive mainnet test for the P256VERIFY precompile.
Source code in tests/osaka/eip7951_p256verify_precompiles/test_eip_mainnet.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 | @pytest.mark.parametrize(
"expected_output", [Spec.SUCCESS_RETURN_VALUE], ids=[""]
)
@pytest.mark.parametrize(
"input_data",
[
pytest.param(
H( # 'hello world' r1 signed with private key 0xd946578401d1980aba1fc85df2a1ddc0d2d618aadd37b213f7f7f91a553b1499 # noqa: E501
0xB94D27B9934D3E08A52E52D7DA7DABFAC484EFE37A5380EE9088F7ACE2EFCDE9
)
+ R(
0x434287FA699FF2BE2A4475CCD9C063D1A22A424B6AB357D9BB0B31F7A71307B9
)
+ S(
0xBE6AF716032D408183C53F6F76945363144555FAD2A5FF7854159166E52FC1D0
)
+ X(
0xDA3C553A4215893E6D95D5818DF2519E13233A1E0E56E0EA7B4817A92A6973F9
)
+ Y(
0xD8C8877A49383E20C3FDC21D4E8E280EF1FEEB72C333036770369A4387168D33
),
id="valid_r1_sig",
),
],
)
@pytest.mark.parametrize("precompile_address", [Spec.P256VERIFY], ids=[""])
def test_valid(
state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transaction
) -> None:
"""Positive mainnet test for the P256VERIFY precompile."""
state_test(pre=pre, post=post, tx=tx)
|
Parametrized Test Cases
This test generates 1 parametrized test case across 1 fork.