W3C home > Mailing lists > Public > public-credentials@w3.org > April 2020

Re: Performance question for JSON-LD with vc.js

From: Leonard Rosenthol <lrosenth@adobe.com>
Date: Thu, 2 Apr 2020 16:41:20 +0000
To: "dzagidulin@gmail.com" <dzagidulin@gmail.com>, Anil Lewis <anillewi@ca.ibm.com>, Credentials Community Group <public-credentials@w3.org>
Message-ID: <85C7B3B6-A221-451F-964C-D2C3B6D4F085@adobe.com>
Dmitri – that also forces all contexts to be (a) accessible and (b) machine readable…neither of which a mandatory requirement of either JSON-LD or VC itself.


From: Dmitri Zagidulin <dzagidulin@gmail.com>
Reply-To: "dzagidulin@gmail.com" <dzagidulin@gmail.com>
Date: Thursday, April 2, 2020 at 11:39 AM
To: Anil Lewis <anillewi@ca.ibm.com>, Credentials Community Group <public-credentials@w3.org>
Subject: Re: Performance question for JSON-LD with vc.js
Resent-From: <public-credentials@w3.org>
Resent-Date: Thursday, April 2, 2020 at 11:38 AM

Hi Anil,

> When using vc.js, I have observed that if the pre-configured contexts are not loaded, I am unable to even sign/verify the credential. I might have to come up with our own processing code to circumvent this issue.

For security reasons, the vc-js library /does not/ allow loading of arbitrary contexts from the web. You have to explicitly allow-list them, by providing a document loader function tailored to your usecase.
Absolutely happy to walk you through this, please feel free to open an issue on https://github.com/digitalbazaar/vc-js/issues<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdigitalbazaar%2Fvc-js%2Fissues&data=02%7C01%7Clrosenth%40adobe.com%7C56767c2b6869424a7ebf08d7d71c07b3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637214387714608325&sdata=IZ610%2FFVghWmn%2BhhVDiygL9jkBnzsC%2BSS%2FxUQHXh5wc%3D&reserved=0>!
Received on Thursday, 2 April 2020 16:41:36 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:24:58 UTC