main
Bob Mottram 2021-01-03 18:38:23 +00:00
parent 2449b57005
commit bc575dc6c0
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def _verifyJws(payload: {}, jwsSignature: str, publicKeyPem: str) -> bool:
"""
Verifies a signature using the given public key
"""
print('inbox signature: ' + str(jwsSignature))
encodedHeader, encodedSignature = jwsSignature.split(b'..')
signature = _b64safeDecode(encodedSignature)
payload = b'.'.join([encodedHeader, payload])