File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments