Skip to content

Test BLS12_G1ADD

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

Generate fixtures for these test cases for Amsterdam with:

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

Tests BLS12_G1ADD precompile.

Tests the BLS12_G1ADD precompile implementation from [EIP-2537: Precompile for BLS12-381 curve operations] (https://eips.ethereum.org/EIPS/eip-2537).

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_invalid state_test 46 Negative tests for the BLS12_G1ADD precompile.
test_call_types state_test 6 Test the BLS12_G1ADD precompile using different call types.
test_gas state_test 2 Test the BLS12_G1ADD precompile gas requirements.
test_valid state_test 34 Test the BLS12_G1ADD precompile.