Skip to content

Commit 54e6464

Browse files
committed
fix claim format designation in presentation submission
Signed-off-by: Roman Reinert <roman.reinert@gematik.de>
1 parent f857f8c commit 54e6464

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

aries_cloudagent/protocols/present_proof/dif/pres_exch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class Meta:
837837
fmt = fields.Str(
838838
description="Format",
839839
required=False,
840-
default="ldp_vp",
840+
default="ldp_vc",
841841
data_key="format",
842842
)
843843
path = fields.Str(

aries_cloudagent/protocols/present_proof/dif/pres_exch_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ async def merge(
13561356
if f"{cred_id}-{cred_id}" not in dict_of_descriptors:
13571357
descriptor_map = InputDescriptorMapping(
13581358
id=desc_id,
1359-
fmt="ldp_vp",
1359+
fmt="ldp_vc",
13601360
path=(f"$.verifiableCredential[{dict_of_creds[cred_id]}]"),
13611361
)
13621362
descriptors.append(descriptor_map)

aries_cloudagent/protocols/present_proof/dif/tests/test_pres_exch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def test_verifiable_presentation_wrapper(self):
363363
"descriptor_map": [
364364
{
365365
"id": "citizenship_input_1",
366-
"format": "ldp_vp",
366+
"format": "ldp_vc",
367367
"path": "$.verifiableCredential[0]",
368368
}
369369
],

aries_cloudagent/protocols/present_proof/v2_0/formats/dif/tests/test_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"descriptor_map": [
200200
{
201201
"id": "citizenship_input_1",
202-
"format": "ldp_vp",
202+
"format": "ldp_vc",
203203
"path": "$.verifiableCredential[0]",
204204
}
205205
],

0 commit comments

Comments
 (0)