Open PascalSprenger opened 6 months ago
Do you have any idea what this could be? I have now tried several different schemas and always get this error.
We do not yet support fetching context files at runtime (which has significant security implications). All the context files that are currently supported (like https://www.w3.org/2018/credentials/v1) are actually hardcoded. In Rust there is a way to pass additional context files but this functionality is not currently exposed in bindings.
If I pass a custom context directly via:
Yes, but here you are defining a term directly. The URI doesn't actually have to resolve to anything.
Thanks for the answer! Would it be possible to add some kind of whitelist where you can explicitly allow external context? (Maybe just localhost) This would at least limit the security concerns somewhat.
Otherwise: Can you perhaps tell me where Context is hardcoded? Then I can play around with it locally,
Would it be possible to add some kind of whitelist where you can explicitly allow external context?
Potentially after https://github.com/spruceid/ssi/pull/508 is merged but I cannot commit to anything at this time.
Otherwise: Can you perhaps tell me where Context is hardcoded? Then I can play around with it locally,
Here's an example PR that adds support for a new context: https://github.com/spruceid/ssi/pull/548.
Hello, I am absolutely unsure if this is a bug or if I am using it incorrectly.
I would like to create verifiable credentials via didkit-cli. If I use an official context as a source, everything works. Here is my working examples from the tutorial:
However, if I now try to host the identical context (copy/paste) from https://www.w3.org/2018/credentials/v1 myself via Xampp local, I always get the following error:
Do you have any idea what this could be? I have now tried several different schemas and always get this error.
If I pass a custom context directly via:
so without hosting it, it seems to work.