beckn / protocol-specifications

Core protocol specification for peer-to-peer consumer-provider interaction
Other
375 stars 101 forks source link

Update Credentials Schema to Support Verifiable Credentials #459

Closed rajaneeshk90 closed 1 week ago

rajaneeshk90 commented 1 week ago

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:

  1. id: Unique identifier for the credential.
  2. type: Type of credential (can be an array for multiple types).
  3. description: Human-readable summary of the credential.
  4. issuer: Entity that issues the credential.
  5. issueDate: Date the credential was issued.
  6. validFrom: Start date from which the credential is valid.
  7. validUntil: End date or expiration of the credential.
  8. credentialSubject: Entity about which the credential asserts claims.
  9. claim: Specific claims made in the credential.
  10. proof: Cryptographic proof ensuring the credential’s authenticity.
  11. termsofuse: Terms governing the use of the credential.
  12. status: Current status of the credential (e.g., valid, revoked).

Updated Credential Schema

  1. The existing credential schema is modified to wrap the new VC schema.
  2. This design ensures the VC schema becomes the core component of the credential while maintaining flexibility for future extensions.