forked from indymedia/epicyon
More signature tests
parent
8af75436b6
commit
bbb767ae45
5
tests.py
5
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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue