Skip to content

Test Ecpairing

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

Generate fixtures for these test cases for Amsterdam with:

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

Test the ecpairing precompiled contract.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_fail state_test 5 Test valid inputs where the pairing check fails.
test_gas state_test 3 Test gas combinations to the ecpairing precompile.
test_invalid state_test 29 Test invalid inputs to the ecpairing precompile.
test_valid state_test 10 Test valid inputs where the pairing check succeeds.