Skip to content

Commit

Permalink
map g22
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Mar 7, 2024
1 parent e535b74 commit 018f56e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,14 @@ def hex_to_int(x: str) -> int:
'00000000000000000000000000000000038af300ef34c7759a6caaa4e69363cafeed218a1f207e93b2c70d91a1263d375d6730bd6b6509dcac3ba5b567e85bf3',
'000000000000000000000000000000000da75be60fb6aa0e9e3143e40c42796edf15685cafe0279afd2a67c3dff1c82341f17effd402e4f1af240ea90f4b659b',
'0000000000000000000000000000000019b148cbdf163cf0894f29660d2e7bfb2b68e37d54cc83fd4e6e62c020eaa48709302ef8e746736c0e19342cc1ce3df4',
'000000000000000000000000000000000492f4fed741b073e5a82580f7c663f9b79e036b70ab3e51162359cec4e77c78086fe879b65ca7a47d34374c8315ac5e')
'000000000000000000000000000000000492f4fed741b073e5a82580f7c663f9b79e036b70ab3e51162359cec4e77c78086fe879b65ca7a47d34374c8315ac5e'),
(b'q128_qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq',
'0000000000000000000000000000000008d4a0997b9d52fecf99427abb721f0fa779479963315fe21c6445250de7183e3f63bfdf86570da8929489e421d4ee95',
'0000000000000000000000000000000016cb4ccad91ec95aab070f22043916cd6a59c4ca94097f7f510043d48515526dc8eaaea27e586f09151ae613688d5a89',
'000000000000000000000000000000000c5ae723be00e6c3f0efe184fdc0702b64588fe77dda152ab13099a3bacd3876767fa7bbad6d6fd90b3642e902b208f9',
'0000000000000000000000000000000012c8c05c1d5fc7bfa847f4d7d81e294e66b9a78bc9953990c358945e1f042eedafce608b67fdd3ab0cb2e6e263b9b1ad',
'0000000000000000000000000000000004e77ddb3ede41b5ec4396b7421dd916efc68a358a0d7425bddd253547f2fb4830522358491827265dfc5bcc1928a569',
'0000000000000000000000000000000011c624c56dbe154d759d021eec60fab3d8b852395a89de497e48504366feedd4662d023af447d66926a28076813dd646')
]


Expand Down Expand Up @@ -493,6 +500,13 @@ def case06_map_fp2_to_G2():
"Expected": HASH_G2_MESSAGES[2][3] + HASH_G2_MESSAGES[2][4] + HASH_G2_MESSAGES[2][5] + HASH_G2_MESSAGES[2][6],
"Gas": BLS12_MAP_FP2_TO_G2_GAS,
"NoBenchmark": False
},
{
"Input": HASH_G2_MESSAGES[3][1] + HASH_G2_MESSAGES[3][2],
"Name": "bls_g2map_" + encode_hex(HASH_G2_MESSAGES[3][0])[0:16],
"Expected": HASH_G2_MESSAGES[3][3] + HASH_G2_MESSAGES[3][4] + HASH_G2_MESSAGES[3][5] + HASH_G2_MESSAGES[3][6],
"Gas": BLS12_MAP_FP2_TO_G2_GAS,
"NoBenchmark": False
}
]

Expand Down

0 comments on commit 018f56e

Please sign in to comment.