Skip to content
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

LoadDocumentCallback isn't passed into the algorithms that use it #580

Open
jyasskin opened this issue Nov 20, 2023 · 2 comments
Open

LoadDocumentCallback isn't passed into the algorithms that use it #580

jyasskin opened this issue Nov 20, 2023 · 2 comments

Comments

@jyasskin
Copy link
Member

https://www.w3.org/TR/json-ld-api/#algorithm uses a LoadDocumentCallback in two places, but its interface doesn't say any such callback should be passed in.

@gkellogg
Copy link
Member

The document loader is provided as an API option, and the API options are considered to be generally accessible to the algorithms. This is described in terms of the LoadDocumentCallback which is considered a global for the algorithms, but it either uses a default implementation, or that specified from the documentLoader API option.

@jyasskin
Copy link
Member Author

So if another specification, like https://www.w3.org/TR/vc-data-integrity/#verify-proof, wants to parse JSON-LD, should it go through the API rather than the algorithms?

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

No branches or pull requests

2 participants