-
Notifications
You must be signed in to change notification settings - Fork 87
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
Move DID Document proof outside metadata #728
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The IOTA DID Method specification in the Wiki needs to be updated with the change, including its examples (as per the issue). Also link the issue to be closed by this PR.
@cycraig yes, that's on my list, I opened this PR for review just to see if CI passes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only change required would be creating a DID Document with a real signature for the specification example.
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "#sign-0", | ||
"signatureValue": "4pzMWzn19oqibHXqEdLr4EEHygs7QF2mMdvEhSMPiCVejEZGL4Vi5BGnmrJjMqKyNr6c6sSd3EXKoYxAuC2YiZNF" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please regenerate the example DID Document with a real signature, implementers may use these example as test vectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, should we remove the WasmDocument.signDocument
function? Its only purpose was to enable signing other documents in Wasm since the proof location was different, it doesn't even perform any extra checks like signSelf
does.
Also please check that signing and verifying documents in Wasm works as expected (i.e. something like doc2Signed = doc1.sign(doc2); doc1.verifyDocument(doc2Signed);
).
It's still good to keep the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks for the changes.
Description of change
Move the
proof
section inIotaDocument
from inside itsmetadata
to the root level.Previous JSON:
This PR:
Links to any relevant issues
fixes issue #714.
Type of change
How the change has been tested
Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.