Skip to content

Commit 670bd33

Browse files
committed
fix: restore code
1 parent c613407 commit 670bd33

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

pymdoccbor/mdoc/issuer.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,19 @@ def new(
143143
slot_id=self.slot_id,
144144
)
145145

146-
# TODO: for now just a single document, it would be trivial having
147-
# also multiple but for now I don't have use cases for this
148146
res = {
149-
# "version": self.version,
150-
# "documents": [
151-
# {
152-
# "docType": doctype, # 'org.iso.18013.5.1.mDL'
153-
# "issuerSigned": {
154-
"nameSpaces": {
155-
ns: [v for k, v in dgst.items()]
156-
for ns, dgst in msoi.disclosure_map.items()
157-
},
158-
"issuerAuth": cbor2.decoder.loads(mso_cbor),
159-
# },
160-
# }
161-
# ],
162-
# "status": self.status,
147+
"version": self.version,
148+
"documents": [{
149+
"docType": doctype, # 'org.iso.18013.5.1.mDL'
150+
"issuerSigned": {
151+
"nameSpaces": {
152+
ns: [v for k, v in dgst.items()]
153+
for ns, dgst in msoi.disclosure_map.items()
154+
},
155+
"issuerAuth": cbor2.decoder.loads(mso_cbor),
156+
},
157+
}],
158+
"status": self.status,
163159
}
164160

165161
# print("mso diganostic notation: \n", cbor2diag(mso_cbor))

0 commit comments

Comments
 (0)