Skip to content

Commit 9e382dc

Browse files
authored
Apply suggestions from code review
1 parent 815e6df commit 9e382dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pymdoccbor/mdoc/issuer.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def new(
8181
devicekeyinfo: dict | CoseKey | str | None = None,
8282
cert_path: str | None = None,
8383
revocation: dict | None = None,
84-
status: dict | None = None,
84+
status: dict | None = None
8585
) -> dict:
8686
"""
8787
create a new mdoc with signed mso
@@ -161,7 +161,7 @@ def new(
161161
-1: "Ed25519", # Curve identifier for Ed25519
162162
-2: public_key.public_bytes(
163163
encoding=serialization.Encoding.Raw,
164-
format=serialization.PublicFormat.Raw,
164+
format=serialization.PublicFormat.Raw
165165
),
166166
}
167167
elif isinstance(public_key, RSAPublicKey):
@@ -172,7 +172,7 @@ def new(
172172
),
173173
-2: public_key.public_numbers().e.to_bytes(
174174
(public_key.public_numbers().e.bit_length() + 7) // 8, "big"
175-
),
175+
)
176176
}
177177
else:
178178
raise TypeError("Loaded public key is not an EllipticCurvePublicKey")
@@ -190,7 +190,7 @@ def new(
190190
kid=self.kid,
191191
validity=validity,
192192
revocation=revocation,
193-
cert_info=self.cert_info,
193+
cert_info=self.cert_info
194194
)
195195

196196
else:
@@ -201,13 +201,13 @@ def new(
201201
cert_path=cert_path,
202202
validity=validity,
203203
revocation=revocation,
204-
cert_info=self.cert_info,
204+
cert_info=self.cert_info
205205
)
206206

207207
mso = msoi.sign(
208208
doctype=doctype,
209209
device_key=devicekeyinfo,
210-
valid_from=datetime.now(timezone.utc),
210+
valid_from=datetime.now(timezone.utc)
211211
)
212212

213213
mso_cbor = mso.encode(
@@ -229,7 +229,7 @@ def new(
229229
ns: [v for k, v in dgst.items()]
230230
for ns, dgst in msoi.disclosure_map.items()
231231
},
232-
"issuerAuth": cbor2.loads(mso_cbor),
232+
"issuerAuth": cbor2.loads(mso_cbor)
233233
},
234234
}
235235
],

0 commit comments

Comments
 (0)