From c5f97ef1e4dacc2b27c6847afbadd93bf14f7294 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 21 Jun 2024 15:00:03 +0200 Subject: [PATCH] fix revocation_service not a list --- idhub/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idhub/views.py b/idhub/views.py index bc03300..5eb32fa 100644 --- a/idhub/views.py +++ b/idhub/views.py @@ -110,11 +110,11 @@ def ServeDidView(request, did_id): revocation_bitmap.serialize() ) ).decode('utf-8') - revocation_service = [{ # This is an object within a list. + revocation_service = { # This is an object within a list. "id": f"{id_did}#revocation", "type": "RevocationBitmap2022", "serviceEndpoint": f"data:application/octet-stream;base64,{encoded_revocation_bitmap}" - }] + } document["service"][0] = revocation_service # Serialize the DID + Revocation list in preparation for sending document = json.dumps(document)