-
Notifications
You must be signed in to change notification settings - Fork 6
Support for Verifiable Credentials Data Model v2.0 #14
Description
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
ValueErrorexceptions when handling presentations adhering to the v2.0 standard.
Environment Details:
- Module:
didkit-python - DIDKit Version:
0.3.3 - Runtime Environment: Python 3.11