Apply PR feedback

This commit is contained in:
NIC619
2019-08-06 12:32:18 +08:00
parent b96ef0e6c7
commit 47643a67c6
2 changed files with 19 additions and 13 deletions

View File

@ -1,5 +1,5 @@
# FIXME: Replace the type of `pubkey` with a custom type `Pubkey`
def signature_validator(pubkey: bytes, msg: bytes) -> bool:
def signature_validator(pubkey: bytes, msg: bytes, sig: bytes) -> bool:
"""
Verify the message against the given public key.
:param pubkey: the public key which signs the message.