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

Improve capability delegation example and explanation #875

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,14 @@ <h2>Capability Delegation</h2>
{
"@context": "https://www.w3.org/ns/did/v1.1",
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
"verificationMethod": [
{
"id": "did:example:123456789abcdefghi#keys-1",
"type": "Ed25519VerificationKey2020",
wip-abramson marked this conversation as resolved.
Show resolved Hide resolved
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z4BWwfeqdp1obQptLLMvPNgBw48p7og1ie6Hf9p5nTpNN"
}
],
"capabilityDelegation": [
<span class="comment">// this method can be used to perform capability delegation as did:...fghi</span>
"did:example:123456789abcdefghi#keys-1",
Expand All @@ -2127,6 +2134,9 @@ <h2>Capability Delegation</h2>
<span class="comment">...</span>
}
</pre>

In the example above, the DID document for <code>did:example:123456789abcdefghi</code> defines two verificationMethods, <code>#keys-1</code> and <code>#keys-2</code>, that can be used for the purpose of capability delegation. This means that these verification methods can be used to produce and verify delegations of a capability issued to <code>did:example:123456789abcdefghi</code>.
wip-abramson marked this conversation as resolved.
Show resolved Hide resolved

wip-abramson marked this conversation as resolved.
Show resolved Hide resolved
</section>
</section>

Expand Down