Failing test for json signature failure

main
Bob Mottram 2021-01-03 14:31:35 +00:00
parent e8290d99d5
commit 1a74ec6d53
1 changed files with 3 additions and 0 deletions

View File

@ -2030,6 +2030,9 @@ def testJsonld():
assert(len(signedDocument['signature']['signatureValue']) > 50)
assert(signedDocument['signature']['type'] == 'RsaSignatureSuite2017')
assert(jsonldVerify(signedDocument, publicKeyPem))
# alter the signed document
# signedDocument['object']['content'] = 'forged content'
# assert(not jsonldVerify(signedDocument, publicKeyPem))
def testSiteIsActive():