mirror of https://github.com/nucypher/pyUmbral.git
Raise ValueError if could not determine compressed or uncompressed point
parent
fe67072172
commit
9311c90b71
|
@ -133,6 +133,8 @@ class Point(object):
|
|||
affine_y = int.from_bytes(data[1+key_size:], 'big')
|
||||
|
||||
return Point.from_affine((affine_x, affine_y), curve)
|
||||
else:
|
||||
raise ValueError("Invalid point serialization.")
|
||||
|
||||
def to_bytes(self, is_compressed=True):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue