Test Bls12 Variable Length Input Contracts¶
Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_variable_length_input_contracts.py@49a16fac
.
Generate fixtures for these test cases for Prague with:
fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_variable_length_input_contracts.py --fork Prague
Tests minimum gas and input length for BLS12_G1MSM, BLS12_G2MSM, BLS12_PAIRING precompiles of EIP-2537: Precompile for BLS12-381 curve operations
Tests minimum gas and input length for BLS12_G1MSM, BLS12_G2MSM, BLS12_PAIRING precompiles of EIP-2537: Precompile for BLS12-381 curve operations.
Test Functions Overview¶
Name | Type | Cases (Prague) | Description |
---|---|---|---|
test_valid_gas_g1msm |
state_test | 2 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to succeed for |
test_invalid_gas_g1msm |
state_test | 2 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to fail for |
test_invalid_length_g1msm |
state_test | 3 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to fail for |
test_valid_gas_g2msm |
state_test | 2 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to succeed for |
test_invalid_gas_g2msm |
state_test | 2 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to fail for |
test_invalid_length_g2msm |
state_test | 3 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to fail for |
test_valid_gas_pairing |
state_test | 2 | Test the BLS12_PAIRING precompile, by expecting the call to succeed for all possible input |
test_invalid_gas_pairing |
state_test | 2 | Test the BLS12_PAIRING precompile, by expecting the call to fail for all possible input |
test_invalid_length_pairing |
state_test | 3 | Test the BLS12_PAIRING precompile, by expecting the call to fail for all possible input |