Add validate_msg and test

This commit is contained in:
NIC619
2019-08-04 18:13:23 +08:00
parent ec2c566e5a
commit e1b86904e3
4 changed files with 87 additions and 13 deletions

View File

@ -0,0 +1,9 @@
# FIXME: Replace the type of `pubkey` with a custom type `Pubkey`
def signature_validator(pubkey: bytes, msg: bytes) -> bool:
"""
Verify the message against the given public key.
:param pubkey: the public key which signs the message.
:param msg: the message signed.
"""
# TODO: Implement the signature validation
return True