fix revocation_service not a list

This commit is contained in:
Cayo Puigdefabregas 2024-06-21 15:00:03 +02:00
parent 23c081502e
commit c5f97ef1e4
1 changed files with 2 additions and 2 deletions

View File

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