This PR updates the existing credentials schema in the Beckn Protocol specification to align with the Verifiable Credentials (VC) standard. The changes introduce features that improve data trust, portability, and interoperability by incorporating elements from the W3C Verifiable Credentials Data Model 2.0.
Changes Introduced
New VC Schema
The new VC schema defines the structure for verifiable credentials with the following fields:
id: Unique identifier for the credential.
type: Type of credential (can be an array for multiple types).
description: Human-readable summary of the credential.
issuer: Entity that issues the credential.
issueDate: Date the credential was issued.
validFrom: Start date from which the credential is valid.
validUntil: End date or expiration of the credential.
credentialSubject: Entity about which the credential asserts claims.
claim: Specific claims made in the credential.
proof: Cryptographic proof ensuring the credential’s authenticity.
termsofuse: Terms governing the use of the credential.
status: Current status of the credential (e.g., valid, revoked).
Updated Credential Schema
The existing credential schema is modified to wrap the new VC schema.
This design ensures the VC schema becomes the core component of the credential while maintaining flexibility for future extensions.
Summary
This PR updates the existing credentials schema in the Beckn Protocol specification to align with the Verifiable Credentials (VC) standard. The changes introduce features that improve data trust, portability, and interoperability by incorporating elements from the W3C Verifiable Credentials Data Model 2.0.
Changes Introduced
New VC Schema The new VC schema defines the structure for verifiable credentials with the following fields:
Updated Credential Schema