Skip to content

Commit 5cda868

Browse files
committed
w.7 expects byte or bytearray
1 parent 5bf9585 commit 5cda868

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ecdsa/ecdsa.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def verifies(self, hash, signature):
195195
if s < 1 or s > n - 1:
196196
return False
197197
if not isinstance(r, int):
198-
point = ellipticcurve.AbstractPoint.from_bytes(self.generator.curve(), r)
198+
point = ellipticcurve.AbstractPoint.from_bytes(
199+
self.generator.curve(), bytearray(r))
199200
r = point[0] % n
200201
if r < 1 or r > n - 1:
201202
return False

0 commit comments

Comments
 (0)