Skip to content

How to provide context file for a @context value that is a DID #854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jandrieu opened this issue Mar 4, 2025 · 1 comment
Open

How to provide context file for a @context value that is a DID #854

jandrieu opened this issue Mar 4, 2025 · 1 comment

Comments

@jandrieu
Copy link

jandrieu commented Mar 4, 2025

The btc1 work plans on using a DID for its context value, which I'm convinced will cause the playground to fail.

Is there a way to "pre-load" a context file for a DID? Since we are expecting that getting the playground to support dereferencing an arbitrary DID to be a bit more challenging.

@davidlehn
Copy link
Member

The playground is not that smart yet. I've had such a feature in mind for years, but haven't gotten around to it. The document loader should chain through some steps and both map from URL to URL, and URL to static data, then fallback to regular browser network load. The sharing UI for that might get awkward though. Perhaps need to fix/improve the gist (or similar) support since serializing static docs into a URL to pass around might not work so well.

Hacking on the site right now is difficult so I'm not sure anyone wants to tackle this sort of feature until we update the site and change playground to use modern tooling of some sort. But if someone wants to try, go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants