Skip to content

Commit 378d945

Browse files
authored
Merge pull request #17 from kevaundray/patch-3
chore: Add static point at infinity test case
2 parents 317b7a1 + 15d6a9e commit 378d945

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,11 +1134,11 @@ def discount_table_lookup(count):
11341134
+ int_to_hex(int(G1[1]), 64)
11351135
# scalar
11361136
+ int_to_hex(int(2), 32)
1137-
# G1 point
1138-
+ int_to_hex(int(G1[0]), 64)
1139-
+ int_to_hex(int(G1[1]), 64)
1140-
# zero
1141-
+ int_to_hex(int(0), 32),
1137+
# point at infinity
1138+
+ int_to_hex(0, 64)
1139+
+ int_to_hex(0, 64)
1140+
# scalar
1141+
+ int_to_hex(int(2), 32),
11421142
"Name": "bls_g1msm_(2g1+inf)",
11431143
"Expected": int_to_hex(int(result_doubling_G1[0]), 64) + (int_to_hex(int(result_doubling_G1[1]), 64)),
11441144
"Gas": int((2 * BLS12_G1MUL_GAS * BLS12_G1_MULTIEXP_DISCOUNT_TABLE[1][1]) / 1000),

0 commit comments

Comments
 (0)