Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Support for Verifiable Credentials Data Model v2.0 #14

@NiedielnitsevIvan

Description

@NiedielnitsevIvan

Request:

We kindly request the inclusion of full support for the Verifiable Credentials Data Model v2.0 in didkit-python to facilitate interoperability with contemporary digital credential solutions.

Description:

When using the didkit.verify_presentation method within the didkit-python library to validate Verifiable Presentations, an error occurs if the new Verifiable Credentials Data Model v2.0 standard is employed. Specifically, when the presentation’s @context includes:

"@context": [
  "https://www.w3.org/ns/credentials/v2",
  "https://w3id.org/security/suites/ed25519-2020/v1"
]

instead of the older format:

"@context": [
  "https://www.w3.org/2018/credentials/v1",
  "https://w3id.org/security/suites/ed25519-2020/v1"
]

the didkit.verify_presentation method throws the following exception:

ValueError: Invalid context at line 1 column <num>

This issue currently prevents the proper processing and validation of presentations that adopt the emerging v2.0 standard. As digital credential wallets (e.g., the Learner Credentials Wallet) gradually migrate to the new Verifiable Credentials Data Model v2.0, the lack of support in didkit-python is causing compatibility problems and hindering interoperability with modern wallet solutions.

Expected Behavior:

  • Support the "Verifiable Credentials Data Model v2.0" @context.
  • Successfully validate presentations containing "https://www.w3.org/ns/credentials/v2".
  • Avoid ValueError exceptions when handling presentations adhering to the v2.0 standard.

Environment Details:

  • Module: didkit-python
  • DIDKit Version: 0.3.3
  • Runtime Environment: Python 3.11

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