From 80178947de95ba5bf1ec6660c3c1fffb7a6728a4 Mon Sep 17 00:00:00 2001 From: Albin Antony Date: Tue, 19 Nov 2024 17:29:03 +0530 Subject: [PATCH] Fix L3-iGrant/api#726: Include cnf claim in 'all' credentials issued to Wallet Unit possessing WUA --- sdjwt/sdjwt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdjwt/sdjwt.py b/sdjwt/sdjwt.py index 14e0a25..0048c28 100644 --- a/sdjwt/sdjwt.py +++ b/sdjwt/sdjwt.py @@ -562,6 +562,7 @@ def create_w3c_vc_jwt_with_disclosure_mapping_v2( expiry_in_seconds: typing.Optional[int] = None, credential_metadata: typing.Optional[dict] = None, status: typing.Optional[dict] = None, + cnf: typing.Optional[dict] = None, ) -> str: if not expiry_in_seconds: expiry_in_seconds = 2592000 @@ -655,6 +656,7 @@ def iterate_mapping(obj, path): iat=issuance_epoch, exp=expiration_epoch, status=status, + cnf=cnf if cnf else None, ) sd_disclosures = "" if disclosure_mapping: