Call iso_map in map_to_curve_simple_swu

This commit is contained in:
Taylor Hornby 2021-04-26 18:34:31 -06:00
parent 027b362773
commit 0c6c988e2e
1 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ def map_to_curve_simple_swu(u):
y = y if e3 else -y #y = CMOV(-y, y, e3)
return orchard_iso_pallas.Point(x, y)
return orchard_iso_pallas.Point(x, y).iso_map()
def group_hash(d, m):
dst = d + b"-" + b"pallas" + b"_XMD:BLAKE2b_SSWU_RO_"
@ -129,6 +129,6 @@ def group_hash(d, m):
elems = hash_to_field(m, dst)
assert len(elems) == 2
q = [map_to_curve_simple_swu(elems[0]), map_to_curve_simple_swu(elems[1]) ]
q = [map_to_curve_simple_swu(elems[0]), map_to_curve_simple_swu(elems[1])]
return (q[0] + q[1]).iso_map()
return q[0] + q[1]