Skip to content

Managing Verifiable Presentations with Mixed W3C Verifiable Credentials Data Models (1.1 and 2.0) #664

@KiruthikaJeyashankar

Description

@KiruthikaJeyashankar

Hello,

We need assistance understanding how to manage Verifiable Presentations (credential format - ldp_vp) that include VCs with both W3C Verifiable Credentials Data Model 1.1 and W3C Verifiable Credentials Data Model 2.0.

Usecase

  • A wallet holder can download W3C Verifiable Credentials Data Model 1.1 and 2.0 credentials.
  • They are required to present both sets of credentials to the Verifier.
  • Given this use case, how should the Wallet construct the Verifiable Presentation’s “@context” property?

Issue

  • We are currently creating a Verifiable Presentation with its “@context” property value set only to the W3C Verifiable Credentials Data Model 1.1 context, and we are encountering canonicalization issues.

More details are attached below:

'Canonization failed:', { [jsonld.SyntaxError: Invalid JSON-LD syntax; tried to redefine "VerifiableCredential" which is a protected term.]
  name: 'jsonld.SyntaxError',
  details: 
   { code: 'protected term redefinition'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions