Skip to content

Test BLS12_PAIRING_CHECK

Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_pairing.py@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_pairing.py --fork Amsterdam

Tests BLS12_PAIRING precompile.

Tests the BLS12_PAIRING precompile implementation from EIP-2537: Precompile for BLS12-381 curve operations.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_invalid_multi_inf state_test 1 Test maximum input given the current environment gas limit for the
test_valid_multi_inf state_test 1 Test maximum input given the current environment gas limit for the
test_call_types state_test 3 Test the BLS12_PAIRING precompile using different call types.
test_gas state_test 2 Test the BLS12_PAIRING precompile gas requirements.
test_invalid state_test 54 Negative tests for the BLS12_PAIRING precompile.
test_valid state_test 26 Test the BLS12_PAIRING precompile.