From bbb767ae4555014ce619197cb46b71d1da94cf77 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Jun 2020 14:35:33 +0100 Subject: [PATCH] More signature tests --- tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests.py b/tests.py index b67ded78..8d9b4efa 100644 --- a/tests.py +++ b/tests.py @@ -1861,6 +1861,11 @@ def testJsonld(): signedDocument = testSignJsonld(jldDocument, privateKeyPem) assert(signedDocument) + assert(signedDocument.get('signature')) + assert(signedDocument['signature'].get('signatureValue')) + assert(signedDocument['signature'].get('type')) + assert(len(signedDocument['signature']['signatureValue']) > 50) + assert(signedDocument['signature']['type'] == 'RsaSignatureSuite2017') assert(jsonldVerify(signedDocument, publicKeyPem))