docs: add comments explaining DID verification relationships and key purposes - #604
Conversation
elribonazo
left a comment
There was a problem hiding this comment.
Please follow the contribution guidelines, and always provide DCO and valid signatures on all your commits.
Please respect the pull request default template, and explicitly select the items that apply to your PR
Can you also take a look at the other signing keys of DID's and make sure we add them into the FindDIDSigningKeys Args? I'd try adding each signing key possible and what is the purpose of that key the link to ref docs w3c if perfect
1805b98 to
af7ef79
Compare
| * @returns {SigningKeyData[]} Array of matched signing keys with their public key info and key IDs | ||
| * | ||
| * Example usage: | ||
| * - CreateJWT defaults to ISSUING_KEY for credential issuance |
There was a problem hiding this comment.
SDJWT should too right? can you confirm that
af7ef79 to
7b27a7b
Compare
…key types - Add documentation for future verification relationships (keyAgreement, capabilityInvocation, capabilityDelegation) - Explain where each key type appears in DID document - Confirm that SD-JWT also defaults to ISSUING_KEY like CreateJWT - Provide complete DID document structure example with all verification relationships - Clarify that SDK currently supports ISSUING_KEY and AUTHENTICATION_KEY Addresses reviewer feedback on PR hyperledger-identus#604
cdddbf1 to
c057c89
Compare
|
Thanks for the feedback! I've updated the PR to address both comments:
The updated commit includes all these improvements and is ready for review! |
|
Thanks for the detailed feedback! I understand now - you want me to actually add support for the other signing keys (keyAgreement, capabilityInvocation, capabilityDelegation) into the FindDIDSigningKeys Args interface, not just document them as future possibilities. I'll work on:
Will have the updated implementation ready shortly! |
|
Correct. Looks a lot better, this is related to #596. |
Thanks for the suggestion @elribonazo ! Almost done with the implementation work! The Args interface extension for all DID verification relationships (keyAgreement, capabilityInvocation, capabilityDelegation) and the logic to handle each key type with proper W3C documentation references is nearly complete. I've already raised a PR for #596 , should I address these changes in that PR ? |
elribonazo
left a comment
There was a problem hiding this comment.
fix the signature please
7221466 to
b7b4244
Compare
…purposes - Add module-level documentation to FindDIDSigningKeys explaining: * DID verification relationships concept * ISSUING_KEY ↔ assertionMethod mapping (for credential issuance) * AUTHENTICATION_KEY ↔ authentication mapping (for DID ownership proofs) * Why multiple keys exist (key rotation, security, scalability) * Reference to W3C DID Core Specification * Other verification relationships: keyAgreement, capabilityInvocation, capabilityDelegation - Enhance CreateJwt documentation: * Explain SSI JWT use cases * Clarify why ISSUING_KEY is default for credential issuance * Document when to use AUTHENTICATION_KEY for authentication flows * Add complete JSDoc parameter descriptions - Add CreateSDJWT documentation: * Explain Selective Disclosure JWT (SD-JWT) concept * Document privacy-preserving credential sharing use case * Reference RFC 9052 specification * Explain verification process * Confirm SD-JWT also defaults to ISSUING_KEY - Add matchKeys() documentation: * Explain key matching algorithm * Clarify multibase and JWK encoding support * Ensure keys are authorized for requested purpose - Provide complete DID document structure example with all verification relationships - Clarify that SDK currently supports ISSUING_KEY and AUTHENTICATION_KEY Addresses issue hyperledger-identus#598: Makes it easier for new contributors to understand DID verification relationships, key purposes, and SSI concepts. Signed-off-by: A-Chronicle <chaubeyanshika319@gmail.com>
b7b4244 to
09ac600
Compare
|



Summary
Resolves #598 by adding comprehensive inline documentation explaining DID verification relationships and key purposes to help new contributors understand Self-Sovereign Identity (SSI) concepts.
Changes
FindDIDSigningKeys.ts
Added 37-line module-level documentation explaining:
Enhanced class JSDoc with workflow details and example usage
Added comment in
run()method explaining verification method mappingAdded documentation for
matchKeys()method explaining key matching algorithm and encoding formatsCreateJwt.ts
Added comprehensive documentation explaining:
Added comment in
run()method clarifying default key selectionCreateSDJWT.ts
Added 23-line documentation explaining:
Added comment in
run()method explaining verification processKey Concepts Documented
References Added
Testing
Signed-off-by: Anshika Chaubey aajmarketa@gmail.com