Test Bls12 Variable Length Input Contracts¶
Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_variable_length_input_contracts.py@a86d4327
.
Generate fixtures for these test cases for Prague with:
Prague only:
fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_variable_length_input_contracts.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_variable_length_input_contracts.py --until=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 | Description |
---|---|---|---|
test_valid_gas_g1msm |
state_test | 4 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to succeed for |
test_invalid_gas_g1msm |
state_test | 4 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to fail for |
test_invalid_length_g1msm |
state_test | 6 | Test the BLS12_G1MSM discount gas table in full, by expecting the call to fail for |
test_valid_gas_g2msm |
state_test | 4 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to succeed for |
test_invalid_gas_g2msm |
state_test | 4 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to fail for |
test_invalid_length_g2msm |
state_test | 6 | Test the BLS12_G2MSM discount gas table in full, by expecting the call to fail for |
test_valid_gas_pairing |
state_test | 4 | Test the BLS12_PAIRING precompile, by expecting the call to succeed for all possible input |
test_invalid_gas_pairing |
state_test | 4 | Test the BLS12_PAIRING precompile, by expecting the call to fail for all possible input |
test_invalid_length_pairing |
state_test | 6 | Test the BLS12_PAIRING precompile, by expecting the call to fail for all possible input |