We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db054d commit e368dceCopy full SHA for e368dce
eth/precompiles/bls.py
@@ -208,7 +208,8 @@ def _parse_fp2_element(data: bytes) -> bls12_381.FQ2:
208
209
def _map_fp2_to_g2(field_element: bls12_381.FQ2) -> G2Point:
210
point = bls.hash_to_curve.map_to_curve_G2(field_element)
211
- return bls12_381.normalize(point)
+ group_element = bls.hash_to_curve.clear_cofactor_G2(point)
212
+ return bls12_381.normalize(group_element)
213
214
215
def map_fp2_to_g2(computation: BaseComputation,
0 commit comments