Test Bls12 G2mul - Test Cases¶
Test cases generated from tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g2mul.py
Parametrized test cases generated from the test module tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g2mul.py
:
test_valid[fork_Prague-blockchain_test-bls_g2mul_(g2+g2=2*g2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(p2+p2=2*p2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(1*g2=g2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(1*p2=p2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(0*g2=inf)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(0*p2=inf)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(x*inf=inf)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_random*g2-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_random*p2-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_random*g2_unnormalized_scalar-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_random*p2_unnormalized_scalar-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(0*inf=inf)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(2**256-1*inf=inf)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(2**256-1*P2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(q-1*P2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(q*P2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(q*G2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(q+1*P2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(2q*P2)-]
test_valid[fork_Prague-blockchain_test-bls_g2mul_(Nq*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(g2+g2=2*g2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(p2+p2=2*p2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(1*g2=g2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(1*p2=p2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(0*g2=inf)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(0*p2=inf)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(x*inf=inf)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_random*g2-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_random*p2-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_random*g2_unnormalized_scalar-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_random*p2_unnormalized_scalar-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(0*inf=inf)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(2**256-1*inf=inf)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(2**256-1*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(q-1*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(q*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(q*G2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(q+1*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(2q*P2)-]
test_valid[fork_Prague-blockchain_test_engine-bls_g2mul_(Nq*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(g2+g2=2*g2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(p2+p2=2*p2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(1*g2=g2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(1*p2=p2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(0*g2=inf)-]
test_valid[fork_Prague-state_test-bls_g2mul_(0*p2=inf)-]
test_valid[fork_Prague-state_test-bls_g2mul_(x*inf=inf)-]
test_valid[fork_Prague-state_test-bls_g2mul_random*g2-]
test_valid[fork_Prague-state_test-bls_g2mul_random*p2-]
test_valid[fork_Prague-state_test-bls_g2mul_random*g2_unnormalized_scalar-]
test_valid[fork_Prague-state_test-bls_g2mul_random*p2_unnormalized_scalar-]
test_valid[fork_Prague-state_test-bls_g2mul_(0*inf=inf)-]
test_valid[fork_Prague-state_test-bls_g2mul_(2**256-1*inf=inf)-]
test_valid[fork_Prague-state_test-bls_g2mul_(2**256-1*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(q-1*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(q*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(q*G2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(q+1*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(2q*P2)-]
test_valid[fork_Prague-state_test-bls_g2mul_(Nq*P2)-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_empty_input-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_short_input-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_large_input-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_invalid_field_element-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_point_not_on_curve-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_violate_top_bytes-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_g2_not_in_correct_subgroup-]
test_invalid[fork_Prague-blockchain_test--invalid_point_a_1-]
test_invalid[fork_Prague-blockchain_test--invalid_point_a_2-]
test_invalid[fork_Prague-blockchain_test--invalid_point_a_3-]
test_invalid[fork_Prague-blockchain_test--invalid_point_a_4-]
test_invalid[fork_Prague-blockchain_test--x_1_equal_to_p-]
test_invalid[fork_Prague-blockchain_test--x_2_equal_to_p-]
test_invalid[fork_Prague-blockchain_test--y_1_equal_to_p-]
test_invalid[fork_Prague-blockchain_test--y_2_equal_to_p-]
test_invalid[fork_Prague-blockchain_test--invalid_encoding-]
test_invalid[fork_Prague-blockchain_test--input_too_short-]
test_invalid[fork_Prague-blockchain_test--input_too_long-]
test_invalid[fork_Prague-blockchain_test--zero_length_input-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_not_in_subgroup-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_not_in_subgroup_times_2-]
test_invalid[fork_Prague-blockchain_test--bls_g2mul_not_in_subgroup_times_q-]
test_invalid[fork_Prague-blockchain_test--bls_g1_add_input_invalid_length-]
test_invalid[fork_Prague-blockchain_test--bls_g2_add_input_invalid_length-]
test_invalid[fork_Prague-blockchain_test--bls_g2_truncated_input-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_empty_input-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_short_input-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_large_input-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_invalid_field_element-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_point_not_on_curve-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_violate_top_bytes-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_g2_not_in_correct_subgroup-]
test_invalid[fork_Prague-blockchain_test_engine--invalid_point_a_1-]
test_invalid[fork_Prague-blockchain_test_engine--invalid_point_a_2-]
test_invalid[fork_Prague-blockchain_test_engine--invalid_point_a_3-]
test_invalid[fork_Prague-blockchain_test_engine--invalid_point_a_4-]
test_invalid[fork_Prague-blockchain_test_engine--x_1_equal_to_p-]
test_invalid[fork_Prague-blockchain_test_engine--x_2_equal_to_p-]
test_invalid[fork_Prague-blockchain_test_engine--y_1_equal_to_p-]
test_invalid[fork_Prague-blockchain_test_engine--y_2_equal_to_p-]
test_invalid[fork_Prague-blockchain_test_engine--invalid_encoding-]
test_invalid[fork_Prague-blockchain_test_engine--input_too_short-]
test_invalid[fork_Prague-blockchain_test_engine--input_too_long-]
test_invalid[fork_Prague-blockchain_test_engine--zero_length_input-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_not_in_subgroup-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_not_in_subgroup_times_2-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2mul_not_in_subgroup_times_q-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g1_add_input_invalid_length-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2_add_input_invalid_length-]
test_invalid[fork_Prague-blockchain_test_engine--bls_g2_truncated_input-]
test_invalid[fork_Prague-state_test--bls_g2mul_empty_input-]
test_invalid[fork_Prague-state_test--bls_g2mul_short_input-]
test_invalid[fork_Prague-state_test--bls_g2mul_large_input-]
test_invalid[fork_Prague-state_test--bls_g2mul_invalid_field_element-]
test_invalid[fork_Prague-state_test--bls_g2mul_point_not_on_curve-]
test_invalid[fork_Prague-state_test--bls_g2mul_violate_top_bytes-]
test_invalid[fork_Prague-state_test--bls_g2mul_g2_not_in_correct_subgroup-]
test_invalid[fork_Prague-state_test--invalid_point_a_1-]
test_invalid[fork_Prague-state_test--invalid_point_a_2-]
test_invalid[fork_Prague-state_test--invalid_point_a_3-]
test_invalid[fork_Prague-state_test--invalid_point_a_4-]
test_invalid[fork_Prague-state_test--x_1_equal_to_p-]
test_invalid[fork_Prague-state_test--x_2_equal_to_p-]
test_invalid[fork_Prague-state_test--y_1_equal_to_p-]
test_invalid[fork_Prague-state_test--y_2_equal_to_p-]
test_invalid[fork_Prague-state_test--invalid_encoding-]
test_invalid[fork_Prague-state_test--input_too_short-]
test_invalid[fork_Prague-state_test--input_too_long-]
test_invalid[fork_Prague-state_test--zero_length_input-]
test_invalid[fork_Prague-state_test--bls_g2mul_not_in_subgroup-]
test_invalid[fork_Prague-state_test--bls_g2mul_not_in_subgroup_times_2-]
test_invalid[fork_Prague-state_test--bls_g2mul_not_in_subgroup_times_q-]
test_invalid[fork_Prague-state_test--bls_g1_add_input_invalid_length-]
test_invalid[fork_Prague-state_test--bls_g2_add_input_invalid_length-]
test_invalid[fork_Prague-state_test--bls_g2_truncated_input-]
test_gas[fork_Prague-blockchain_test-extra_gas-]
test_gas[fork_Prague-blockchain_test-insufficient_gas-]
test_gas[fork_Prague-blockchain_test_engine-extra_gas-]
test_gas[fork_Prague-blockchain_test_engine-insufficient_gas-]
test_gas[fork_Prague-state_test-extra_gas-]
test_gas[fork_Prague-state_test-insufficient_gas-]
test_call_types[fork_Prague-blockchain_test-bls_g2mul_(0*inf=inf)-call_opcode_STATICCALL-]
test_call_types[fork_Prague-blockchain_test-bls_g2mul_(0*inf=inf)-call_opcode_DELEGATECALL-]
test_call_types[fork_Prague-blockchain_test-bls_g2mul_(0*inf=inf)-call_opcode_CALLCODE-]
test_call_types[fork_Prague-blockchain_test_engine-bls_g2mul_(0*inf=inf)-call_opcode_STATICCALL-]
test_call_types[fork_Prague-blockchain_test_engine-bls_g2mul_(0*inf=inf)-call_opcode_DELEGATECALL-]
test_call_types[fork_Prague-blockchain_test_engine-bls_g2mul_(0*inf=inf)-call_opcode_CALLCODE-]
test_call_types[fork_Prague-state_test-bls_g2mul_(0*inf=inf)-call_opcode_STATICCALL-]
test_call_types[fork_Prague-state_test-bls_g2mul_(0*inf=inf)-call_opcode_DELEGATECALL-]
test_call_types[fork_Prague-state_test-bls_g2mul_(0*inf=inf)-call_opcode_CALLCODE-]
This output was extracted from the result of:
fill -p pytest_plugins.filler.pre_alloc -p pytest_plugins.filler.filler -p pytest_plugins.forks.forks -p pytest_plugins.spec_version_checker.spec_version_checker -p pytest_plugins.help.help -m not eip_version_check --tb short --dist loadscope --ignore tests/cancun/eip4844_blobs/point_evaluation_vectors/ --collect-only -q --until Prague tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g2mul.py