Update orchard_pallas.py

Replace 0 with Fp.ZERO in `extract`.

Co-authored-by: Taylor Hornby <taylor@defuse.ca>
This commit is contained in:
Daira Hopwood 2021-04-06 22:51:29 +01:00 committed by GitHub
parent 28370d5fe9
commit 57c2894522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Point(object):
def extract(self):
if self.is_identity:
return 0
return Fp.ZERO
return self.x
def __mul__(self, s):