Skip to content

Commit 6e96f17

Browse files
Fix PublicKey serialize method
1 parent d453c78 commit 6e96f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledgerblue/ecWrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def serialize(self, compressed=True):
6464
out += self.obj.W.x.to_bytes(32, "big")
6565
out += self.obj.W.y.to_bytes(32, "big")
6666
else:
67-
out = b"\x03" if ((self.obj.W.y & 1) != 0) else "\x02"
67+
out = b"\x03" if ((self.obj.W.y & 1) != 0) else b"\x02"
6868
out += self.obj.W.x.to_bytes(32, "big")
6969
return out
7070

0 commit comments

Comments
 (0)