Fix bug where sign_message wasn't idempotent

This commit is contained in:
Kristóf Tóth 2019-07-04 15:19:48 +02:00
parent 459ae684de
commit 2c0aba2ffe

View File

@ -21,6 +21,7 @@ def message_checksum(message):
def sign_message(key, message): def sign_message(key, message):
message.pop('signature', None)
signature = message_signature(key, message) signature = message_signature(key, message)
message['signature'] = b64encode(signature).decode() message['signature'] = b64encode(signature).decode()