Skip to content

Test BLS12_MAP_FP_TO_G1

Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp_to_g1.py@49a16fac.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp_to_g1.py --fork Prague
Tests BLS12_MAP_FP_TO_G1 precompile of EIP-2537: Precompile for BLS12-381 curve operations

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

Test Functions Overview

Name Type Cases (Prague) Description
test_valid state_test 7 Test the BLS12_MAP_FP_TO_G1 precompile.
test_invalid state_test 12 Negative tests for the BLS12_MAP_FP_TO_G1 precompile.
test_gas state_test 2 Test the BLS12_MAP_FP_TO_G1 precompile gas requirements.
test_call_types state_test 3 Test the BLS12_MAP_FP_TO_G1 precompile using different call types.