Skip to content

Commit d46a5f7

Browse files
Merge pull request #3 from niscy-eudiw/branch-preprod
update preprod
2 parents 17723ee + 993a456 commit d46a5f7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pymdoccbor/mso/issuer.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ def __init__(
9898
v = cbor2.CBORTag(_value_cbortag, value=v)
9999
# print("\n-----\n K,V ", k, "\n", v)
100100

101-
if k == "driving_privileges":
101+
if isinstance(v, dict):
102+
for k2, v2 in v.items():
103+
_value_cbortag = settings.CBORTAGS_ATTR_MAP.get(k2, None)
104+
if _value_cbortag:
105+
v[k2] = cbor2.CBORTag(_value_cbortag, value=v2)
106+
107+
if isinstance(v, list) and k != "nationality":
102108
for item in v:
103109
for k2, v2 in item.items():
104110
_value_cbortag = settings.CBORTAGS_ATTR_MAP.get(k2, None)
@@ -170,7 +176,7 @@ def sign(
170176
}
171177

172178
if self.revocation is not None:
173-
payload.update({"status": {"StatusListInfo": self.revocation}})
179+
payload.update({"status": self.revocation})
174180

175181
if self.cert_path:
176182
# Load the DER certificate file

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def readme():
6262
install_requires=[
6363
"cbor2>=5.4.0,<5.5.0",
6464
"cwt>=2.3.0,<2.4",
65+
#'pycose>=1.0.1,<1.1.0'
6566
"pycose @ git+https://github.com/devisefutures/pycose.git@hsm",
6667
],
6768
)

0 commit comments

Comments
 (0)