From 43d259d2d76fa061bef646ab7d083c6fe80b9c70 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Jun 2020 22:37:10 +0100 Subject: [PATCH] Comment --- jsonldsig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jsonldsig.py b/jsonldsig.py index 99611cff..3e376196 100644 --- a/jsonldsig.py +++ b/jsonldsig.py @@ -43,6 +43,9 @@ def b64safeDecode(payload: {}) -> str: def normalizeJson(payload: {}) -> str: + """ + Normalize with URDNA2015 + """ return json.dumps(payload, separators=(',', ':'), sort_keys=True).encode('utf-8') @@ -141,7 +144,8 @@ def jsonldVerify(signedJldDocument: {}, publicKeyPem: str) -> bool: def testSignJsonld(jldDocument: {}, privateKeyPem: str) -> {}: - """Creates a test signature + """ + Creates a test signature """ signedJldDocument = jsonldSign(jldDocument, privateKeyPem)