mirror of https://github.com/nucypher/nucypher.git
Signature concat needs to be cummatative.
parent
fba93f9b07
commit
9cd7bc083c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue