From 1a74ec6d53cd5f26a28de0975d131bcbe2ed4414 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jan 2021 14:31:35 +0000 Subject: [PATCH] Failing test for json signature failure --- tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests.py b/tests.py index b9bac2492..6c86c225e 100644 --- a/tests.py +++ b/tests.py @@ -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():