jolocom / jolocom-lib

Library for interacting with the identity solution provided by Jolocom.
MIT License
24 stars 18 forks source link

Improve how the @context is handled, cached, and populated. #367

Open Exulansis opened 5 years ago

Exulansis commented 5 years ago

Description

All Did Documents and Verifiable Credentials created by the library should include @context entries mandated by the spec, (e.g. "https://www.w3.org/2019/did/v1" for Did Documents). Furthermore, we need to ensure we are using up to date definitions for our terms, and that no errors occur during normalization (e.g. triples being omitted).

Note: This issue was already addressed as part of issue #337 (pr #338) and eventually merged into 4.0-beta1 through #340. In order to simplify the review and feedback process, we decided it can be re-implemented (reusing existing code where possible) as a separate PR.

For reference purposes, please see the issues mentioned above, and this notion document