From edf0c8880e8d9b52a5ab8e44e01a7207cfab82ba Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jan 2021 18:40:26 +0000 Subject: [PATCH] Debug --- inbox.py | 1 + jsonldsig.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 7159b8b4..5c2f0e2f 100644 --- a/inbox.py +++ b/inbox.py @@ -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 + ' ' + diff --git a/jsonldsig.py b/jsonldsig.py index a9e14ecb..df7e93a5 100644 --- a/jsonldsig.py +++ b/jsonldsig.py @@ -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])