Skip to content

Commit

Permalink
Update examples in specification to use proper @context values.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Nov 24, 2024
1 parent d0a218d commit f27fbb7
Showing 1 changed file with 13 additions and 33 deletions.
46 changes: 13 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,13 @@
<h2>Introduction</h2>

<p>
[=Controller documents=] enable the verification of [=proofs=] created by the
controller of an identifier. They provide [=verification methods=] that express
public cryptographic material, such as public keys, for verifying [=proofs=] created
by the controller of the identifier for specific purposes, such as
authentication, attestation, key agreement (for encryption), and capability
invocation and delegation. [=Controller documents=] also list
[=service=] endpoints related to the [=identifier=]; for example, from which
to request additional information for verification.
[=Controller documents=] identify a [=subject=] and provide [=verification
methods=] that express public cryptographic material, such as [=public keys=],
for verifying [=proofs=] created on behalf of the [=subject=] for specific
purposes, such as authentication, attestation, key agreement (for encryption),
and capability invocation and delegation. [=Controller documents=] also list
[=service=] endpoints related to an [=identifier=]; for example, from which to
request additional information for verification.
</p>

<p>
Expand Down Expand Up @@ -1226,12 +1225,7 @@ <h2>Verification Methods</h2>
<pre class="example nohighlight"
title="Example verification method structure">
{
"@context": [
"https://www.w3.org/ns/controller/v1",
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/security/jwk/v1",
"https://w3id.org/security/data-integrity/v2"
]
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi",
<span class="comment">...</span>
"verificationMethod": [{
Expand Down Expand Up @@ -1381,7 +1375,7 @@ <h3>Multikey</h3>
<pre class="example nohighlight"
title="Multikey encoding of a Ed25519 public key">
{
"@context": ["https://w3id.org/security/multikey/v1"],
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi#keys-1",
"type": "Multikey",
"controller": "https://controller.example/123456789abcdefghi",
Expand Down Expand Up @@ -1749,11 +1743,7 @@ <h2>Authentication</h2>
<pre class="example nohighlight" title="Authentication property
containing three verification methods">
{
"@context": [
"https://www.w3.org/ns/controller/v1",
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/security/multikey/v1"
],
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi",
<span class="comment">...</span>
"authentication": [
Expand Down Expand Up @@ -1835,11 +1825,7 @@ <h2>Assertion</h2>
<pre class="example nohighlight" title="Assertion method property
containing two verification methods">
{
"@context": [
"https://www.w3.org/ns/controller/v1",
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/security/multikey/v1"
],
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi",
<span class="comment">...</span>
"assertionMethod": [
Expand Down Expand Up @@ -1963,10 +1949,7 @@ <h2>Capability Invocation</h2>
<pre class="example nohighlight" title="Capability invocation property
containing two verification methods">
{
"@context": [
"https://www.w3.org/ns/controller/v1",
"https://w3id.org/security/multikey/v1"
],
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi",
<span class="comment">...</span>
"capabilityInvocation": [
Expand Down Expand Up @@ -2024,10 +2007,7 @@ <h2>Capability Delegation</h2>
<pre class="example nohighlight" title="Capability Delegation property
containing two verification methods">
{
"@context": [
"https://www.w3.org/ns/controller/v1",
"https://w3id.org/security/multikey/v1"
],
"@context": "https://www.w3.org/ns/controller/v1",
"id": "https://controller.example/123456789abcdefghi",
<span class="comment">...</span>
"capabilityDelegation": [
Expand Down

0 comments on commit f27fbb7

Please sign in to comment.