-
Notifications
You must be signed in to change notification settings - Fork 198
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
Safe-mode breaks DID-Core spec #526
Comments
Maybe leaving the choice in jsonld-signatures to use or not safe mode when using the API? |
So safe mode should not be disabled, and it's helpful here as it has pointed out that some values in that document would not be signed in the generated proof. Instead, if you want those values signed, they should ideally be absolute URLs. Short of that, the base URI option passed to the JSON-LD processor could be set to the DID (the value of To maximize interoperability, the base URI should generally be set to Note: Relative URLs have a habit of creating trouble (read: vulnerabilities) for people and their use is sometimes discouraged on this basis. That doesn't mean relative URLs aren't legal in DID documents (as you noted), it just means some trouble can be avoided by not using that particular feature. |
Hi @dlongley, I'm back at it and I'm not sure I do understand entirely this:
When I set to Does that mean that if I sign the document with the |
My point was that a verifier will not know what base URL to use -- and should always be using
You don't have to put |
I'm trying to update JSONLD to the latest version in https://github.com/hellobloom/ssi-sdk/tree/main/packages/ecdsa-secp256k1-signature-2019.
However this test: https://github.com/hellobloom/ssi-sdk/blob/main/packages/ecdsa-secp256k1-signature-2019/src/__tests__/index.test.ts#L319 fails with version 8.2.0 and the following error:
This is the fixture DID document: https://github.com/hellobloom/ssi-sdk/blob/main/packages/ecdsa-secp256k1-signature-2019/src/__tests__/__fixtures__/didDocument.json
As per the DID spec: https://www.w3.org/TR/did-core/#relative-did-urls, relative ids are valid references in a DID document.
Also see this conversation from last year: decentralized-identity/ion#285 (comment)
The text was updated successfully, but these errors were encountered: