diff --git a/main.py b/main.py index 0bd462d..5b9b317 100644 --- a/main.py +++ b/main.py @@ -140,6 +140,20 @@ def case01_add_G1(): "NoBenchmark": False }, { + "Input": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64))+int_to_hex(0,64)+int_to_hex(0,64), + "Name": "bls_g1add_(g1+0=g1)", + "Expected": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64)) , + "Gas": BLS12_G1ADD_GAS, + "NoBenchmark": False + }, + { + "Input": int_to_hex(int(P1[0]),64)+(int_to_hex(int(P1[1]),64))+int_to_hex(0,64)+int_to_hex(0,64), + "Name": "bls_g1add_(p1+0=p1)", + "Expected": int_to_hex(int(P1[0]),64)+(int_to_hex(int(P1[1]),64)) , + "Gas": BLS12_G1ADD_GAS, + "NoBenchmark": False + }, + { "Input": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64))+int_to_hex(int(neg(G1)[0]),64)+(int_to_hex(int(neg(G1)[1]),64)), "Name": "bls_g1add_(g1-g1=0)", "Expected": int_to_hex(0,64)+int_to_hex(0,64),