2019-08-04 18:13:23 +08:00
|
|
|
# FIXME: Replace the type of `pubkey` with a custom type `Pubkey`
|
2019-08-06 13:05:31 +08:00
|
|
|
def signature_validator(pubkey: bytes, msg: bytes) -> bool:
|
2019-10-24 14:41:10 +08:00
|
|
|
"""Verify the message against the given public key.
|
|
|
|
|
2019-08-04 18:13:23 +08:00
|
|
|
:param pubkey: the public key which signs the message.
|
|
|
|
:param msg: the message signed.
|
|
|
|
"""
|
|
|
|
# TODO: Implement the signature validation
|
|
|
|
return True
|