merge-requests/8/head
Bob Mottram 2021-01-03 18:40:26 +00:00
parent bc575dc6c0
commit edf0c8880e
2 changed files with 1 additions and 1 deletions

View File

@ -2710,6 +2710,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
queueJson['original'].get('signature'):
# use the original json message received, not one which may have
# been modified along the way
print('inbox signature: ' + str(queueJson['original']))
if not jsonldVerify(queueJson['original'], pubKey):
print('WARN: jsonld inbox signature check failed ' +
keyId + ' ' + pubKey + ' ' +

View File

@ -93,7 +93,6 @@ 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])