Skip to content

Commit d97f71d

Browse files
authored
Merge pull request openwallet-foundation#2013 from rmnre/fix/dif-claim-format-designation
fix claim format designation in presentation submission
2 parents 5c9ce16 + a276ee7 commit d97f71d

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
@@ -1377,7 +1377,7 @@ async def merge(
13771377
if f"{cred_id}-{cred_id}" not in dict_of_descriptors:
13781378
descriptor_map = InputDescriptorMapping(
13791379
id=desc_id,
1380-
fmt="ldp_vp",
1380+
fmt="ldp_vc",
13811381
path=(f"$.verifiableCredential[{dict_of_creds[cred_id]}]"),
13821382
)
13831383
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
@@ -268,7 +268,7 @@
268268
"descriptor_map": [
269269
{
270270
"id": "citizenship_input_1",
271-
"format": "ldp_vp",
271+
"format": "ldp_vc",
272272
"path": "$.verifiableCredential[0]",
273273
}
274274
],

0 commit comments

Comments
 (0)