andrewwhitehead / anoncreds-w3c-mapping

Python scripts for mapping between Anoncreds presentations and W3C credentials
5 stars 3 forks source link

AnonCreds to W3C Format Verifiable Credential and Presentation Converter

This repository contains prototype Python scripts that:

These scripts are preliminary work in a possible transition of using the W3C Verifiable Credential Data Model Standard for AnonCreds verifiable credentials and presentations. As demonstrated by the back and forth nature of the conversion and the absence of any cryptography library dependencies, nothing is being done to change the AnonCreds signatures or to alter the semantics of the AnonCreds credentials and presentations. The same AnonCreds code that is currently used in issuing, holding, proving and verifying AnonCreds continues to be used. The only change is the representation (arrangement of the JSON) within the credential and presentation.

To run the generator with your own examples:

To run the scripts directly, use:

Notes

Feedback, issues and pull requests welcome!