More signature tests

main
Bob Mottram 2020-06-15 14:35:33 +01:00
parent 8af75436b6
commit bbb767ae45
1 changed files with 5 additions and 0 deletions

View File

@ -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))