Skip to content

Test BLS12_MAP_FP2_TO_G2

Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py@[email protected].

Generate fixtures for these test cases for Prague with:

Prague only:

fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py --fork=Prague --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Prague:

fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py --until=Prague

Tests BLS12_MAP_FP2_TO_G2 precompile of EIP-2537: Precompile for BLS12-381 curve operations

Tests BLS12_MAP_FP2_TO_G2 precompile of EIP-2537: Precompile for BLS12-381 curve operations.

Test Functions Overview

Name Type Cases Description
test_valid state_test 14 Test the BLS12_MAP_FP2_TO_G2 precompile.
test_invalid state_test 28 Negative tests for the BLS12_MAP_FP_TO_G2 precompile.
test_gas state_test 4 Test the BLS12_MAP_FP_TO_G2 precompile gas requirements.
test_call_types state_test 6 Test the BLS12_MAP_FP_TO_G2 precompile using different call types.