Signature concat needs to be cummatative.

pull/157/head
jMyles 2018-02-11 01:00:39 -08:00
parent fba93f9b07
commit 9cd7bc083c
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class Signature(object):
def __repr__(self): def __repr__(self):
return "ECDSA Signature: {}".format(bytes(self).hex()[:15]) return "ECDSA Signature: {}".format(bytes(self).hex()[:15])
def verify(self, message: bytes, pubkey: UmbralPublicKey) -> bool: def verify(self, message: bytes, pubkey: UmbralPublicKey=None) -> bool:
""" """
Verifies that a message's signature was valid. Verifies that a message's signature was valid.
@ -53,4 +53,6 @@ class Signature(object):
def __add__(self, other): def __add__(self, other):
return bytes(self) + other return bytes(self) + other
__radd__ = __add__
def __radd__(self, other):
return other + bytes(self)