Skip to content

Commit

Permalink
map g2
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Mar 7, 2024
1 parent e426bc4 commit 1616550
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,14 @@ def hex_to_int(x: str) -> int:
'0000000000000000000000000000000000e7f4568a82b4b7dc1f14c6aaa055edf51502319c723c4dc2688c7fe5944c213f510328082396515734b6612c4e7bb7',
'00000000000000000000000000000000126b855e9e69b1f691f816e48ac6977664d24d99f8724868a184186469ddfd4617367e94527d4b74fc86413483afb35b',
'000000000000000000000000000000000caead0fd7b6176c01436833c79d305c78be307da5f6af6c133c47311def6ff1e0babf57a0fb5539fce7ee12407b0a42',
'000000000000000000000000000000001498aadcf7ae2b345243e281ae076df6de84455d766ab6fcdaad71fab60abb2e8b980a440043cd305db09d283c895e3d')
'000000000000000000000000000000001498aadcf7ae2b345243e281ae076df6de84455d766ab6fcdaad71fab60abb2e8b980a440043cd305db09d283c895e3d'),
(b'abc',
'0000000000000000000000000000000x138879a9559e24cecee8697b8b4ad32cced053138ab913b99872772dc753a2967ed50aabc907937aefb2439ba06cc50c',
'000000000000000000000000000000000a1ae7999ea9bab1dcc9ef8887a6cb6e8f1e22566015428d220b7eec90ffa70ad1f624018a9ad11e78d588bd3617f9f2',
'00000000000000000000000000000000108ed59fd9fae381abfd1d6bce2fd2fa220990f0f837fa30e0f27914ed6e1454db0d1ee957b219f61da6ff8be0d6441f',
'000000000000000000000000000000000296238ea82c6d4adb3c838ee3cb2346049c90b96d602d7bb1b469b905c9228be25c627bffee872def773d5b2a2eb57d',
'00000000000000000000000000000000033f90f6057aadacae7963b0a0b379dd46750c1c94a6357c99b65f63b79e321ff50fe3053330911c56b6ceea08fee656',
'00000000000000000000000000000000153606c417e59fb331b7ae6bce4fbf7c5190c33ce9402b5ebe2b70e44fca614f3f1382a3625ed5493843d0b0a652fc3f')
]


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

]


Expand Down

0 comments on commit 1616550

Please sign in to comment.