Skip to content

Test Ecpairing Fuzzed

Documentation for tests/byzantium/eip197_ec_pairing/test_ecpairing_fuzzed.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/byzantium/eip197_ec_pairing/test_ecpairing_fuzzed.py --fork Amsterdam

Test the ecpairing precompiled contract using fuzzed inputs from ecpairing_inputsFiller.yml static test.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_invalid_g1_point state_test 13 Test invalid g1 point inputs to the ecpairing precompile.
test_invalid_g2_point state_test 14 Test invalid g2 point inputs to the ecpairing precompile.
test_invalid_g2_subgroup state_test 79 Test invalid g2 subgroup inputs to the ecpairing precompile.
test_negative state_test 5 Test valid inputs where the pairing check fails.
test_positive state_test 33 Test valid inputs where the pairing check succeeds.