mirror of https://gitlab.com/bashrc2/epicyon
Show keyId for json signature check
parent
3837ee2536
commit
b8a698d887
6
inbox.py
6
inbox.py
|
@ -2720,16 +2720,20 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
# use the original json message received, not one which may have
|
# use the original json message received, not one which may have
|
||||||
# been modified along the way
|
# been modified along the way
|
||||||
if not verifyJsonSignature(queueJson['original'], pubKey):
|
if not verifyJsonSignature(queueJson['original'], pubKey):
|
||||||
|
if debug:
|
||||||
print('WARN: jsonld inbox signature check failed ' +
|
print('WARN: jsonld inbox signature check failed ' +
|
||||||
keyId + ' ' + pubKey + ' ' +
|
keyId + ' ' + pubKey + ' ' +
|
||||||
str(queueJson['original']))
|
str(queueJson['original']))
|
||||||
|
else:
|
||||||
|
print('WARN: jsonld inbox signature check failed ' +
|
||||||
|
keyId)
|
||||||
if os.path.isfile(queueFilename):
|
if os.path.isfile(queueFilename):
|
||||||
os.remove(queueFilename)
|
os.remove(queueFilename)
|
||||||
if len(queue) > 0:
|
if len(queue) > 0:
|
||||||
queue.pop(0)
|
queue.pop(0)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
print('jsonld inbox signature check success')
|
print('jsonld inbox signature check success ' + keyId)
|
||||||
|
|
||||||
# set the id to the same as the post filename
|
# set the id to the same as the post filename
|
||||||
# This makes the filename and the id consistent
|
# This makes the filename and the id consistent
|
||||||
|
|
Loading…
Reference in New Issue