Skip to content

Commit

Permalink
Update all examples to use DataIntegrityProof.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Oct 9, 2022
1 parent 6bcc7f1 commit 8b456c4
Showing 1 changed file with 34 additions and 29 deletions.
63 changes: 34 additions & 29 deletions index.html
Expand Up @@ -509,7 +509,8 @@ <h3>Proofs</h3>
{
"title": "Hello world!",
"proof": {
"type": "JcsSignature2020",
"type": "DataIntegrityProof",
"cryptosuite": "json-signature-2022",
"created": "2020-11-05T19:23:24Z",
"verificationMethod": "https://di.example/issuer#z6MkjLrk3gKS2nnkeWcmcxi
ZPGskmesDpuwRBorgHxUXfxnG",
Expand All @@ -521,10 +522,10 @@ <h3>Proofs</h3>
</pre>

<p>
The proof example above uses the <code>JcsSignature2020</code>
<a>proof type</a> to produce a verifiable digital proof by canonicalizing the
input data using the JSON Canonicalization Scheme [[RFC8785]] and then
digitally signing it using an Ed25519 elliptic curve signature.
The proof example above suggests an exemplary <code>json-signature-2022</code>
cryptography suite that produces a verifiable digital proof by presumptively
transforming the input data using the JSON Canonicalization Scheme [[RFC8785]]
and then digitally signing it using an Ed25519 elliptic curve signature.
</p>

<p>
Expand All @@ -548,11 +549,12 @@ <h3>Proofs</h3>
{
"@context": [
{"title": "https://schema.org/title"},
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/suites/data-integrity/v1"
],
"title": "Hello world!",
"proof": {
"type": "Ed25519Signature2020",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-2022",
"created": "2020-11-05T19:23:24Z",
"verificationMethod": "https://ldi.example/issuer#z6MkjLrk3gKS2nnkeWcmcxi
ZPGskmesDpuwRBorgHxUXfxnG",
Expand Down Expand Up @@ -597,10 +599,10 @@ <h3>Proofs</h3>
ibsa-2022, and jws-2022.
</p>

<pre class="example" title="A DataIntegritySignature example using a NIST ECDSA 2022 Cryptosuite">
<pre class="example" title="A DataIntegrityProof example using a NIST ECDSA 2022 Cryptosuite">
{
"@context": ["https://w3id.org/security/data-integrity/v1"],
"type": "DataIntegritySignature",
"@context": ["https://w3id.org/security/suites/data-integrity/v1"],
"type": "DataIntegrityProof",
"cryptosuite": "ecdsa-2022",
"created": "2022-11-29T20:35:38Z",
"verificationMethod": "did:example:123456789abcdefghi#keys-1",
Expand Down Expand Up @@ -654,19 +656,21 @@ <h3>Proof Sets</h3>
{
"@context": [
{"title": "https://schema.org/title"},
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/suites/data-integrity/v1"
],
"title": "Hello world!",
"proof": [{
"type": "Ed25519Signature2020",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-2022",
"created": "2020-11-05T19:23:24Z",
"verificationMethod": "https://ldi.example/issuer/1#z6MkjLrk3gKS2nnkeWcmcxi
ZPGskmesDpuwRBorgHxUXfxnG",
"proofPurpose": "assertionMethod",
"proofValue": "z4oey5q2M3XKaxup3tmzN4DRFTLVqpLMweBrSxMY2xHX5XTYVQeVbY8nQA
VHMrXFkXJpmEcqdoDwLWxaqA3Q1geV6"
}, {
"type": "Ed25519Signature2020",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-2022",
"created": "2020-11-05T13:08:49Z",
"verificationMethod": "https://pfps.example/issuer/2#z6MkGskxnGjLrk3gKS2mes
DpuwRBokeWcmrgHxUXfnncxiZP",
Expand All @@ -693,19 +697,21 @@ <h3>Proof Chains</h3>
{
"@context": [
{"title": "https://schema.org/title"},
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/suites/data-integrity/v1"
],
"title": "Hello world!",
"proofChain": [{
"type": "Ed25519Signature2020",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-2022",
"created": "2020-11-05T19:23:42Z",
"verificationMethod": "https://ldi.example/issuer/1#z6MkjLrk3gKS2nnkeWcmcxi
ZPGskmesDpuwRBorgHxUXfxnG",
"proofPurpose": "assertionMethod",
"proofValue": "zVbY8nQAVHMrXFkXJpmEcqdoDwLWxaqA3Q1geV64oey5q2M3XKaxup3tmzN4
DRFTLVqpLMweBrSxMY2xHX5XTYVQe"
}, {
"type": "Ed25519Signature2020",
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-2022",
"created": "2020-11-05T21:28:14Z",
"verificationMethod": "https://pfps.example/issuer/2#z6MkGskxnGjLrk3gKS2mes
DpuwRBokeWcmrgHxUXfnncxiZP",
Expand Down Expand Up @@ -848,8 +854,7 @@ <h2>Verification Methods</h2>
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1"
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/suites/data-integrity/v1"
]
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand Down Expand Up @@ -982,7 +987,7 @@ <h3>Verification Material</h3>
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/multikey/v1"
]
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand All @@ -998,7 +1003,7 @@ <h3>Verification Material</h3>
}
}, {
"id": "did:example:123456789abcdefghi#keys-1",
"type": "Ed25519VerificationKey2020", <span class="comment">// external (property value)</span>
"type": "Multikey", <span class="comment">// external (property value)</span>
"controller": "did:example:pqrstuvwxyz0987654321",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}],
Expand Down Expand Up @@ -1096,7 +1101,7 @@ <h3>Referring to Verification Methods</h3>
<span class="comment">// this key is embedded and may *only* be used for authentication</span>
{
"id": "did:example:123456789abcdefghi#keys-2",
"type": "Ed25519VerificationKey2020", <span class="comment">// external (property value)</span>
"type": "Multikey", <span class="comment">// external (property value)</span>
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}
Expand Down Expand Up @@ -1172,7 +1177,7 @@ <h2>Authentication</h2>
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/multikey/v1"
],
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand All @@ -1184,7 +1189,7 @@ <h2>Authentication</h2>
<span class="comment">// embedded here rather than using only a reference</span>
{
"id": "did:example:123456789abcdefghi#keys-2",
"type": "Ed25519VerificationKey2020",
"type": "Multikey",
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}
Expand Down Expand Up @@ -1251,7 +1256,7 @@ <h2>Assertion</h2>
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/multikey/v1"
],
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand All @@ -1263,7 +1268,7 @@ <h2>Assertion</h2>
<span class="comment">// embedded here rather than using a reference</span>
{
"id": "did:example:123456789abcdefghi#keys-2",
"type": "Ed25519VerificationKey2020", <span class="comment">// external (property value)</span>
"type": "Multikey", <span class="comment">// external (property value)</span>
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}
Expand Down Expand Up @@ -1369,7 +1374,7 @@ <h2>Capability Invocation</h2>
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/multikey/v1"
],
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand All @@ -1381,7 +1386,7 @@ <h2>Capability Invocation</h2>
<span class="comment">// embedded here rather than using only a reference</span>
{
"id": "did:example:123456789abcdefghi#keys-2",
"type": "Ed25519VerificationKey2020", <span class="comment">// external (property value)</span>
"type": "Multikey", <span class="comment">// external (property value)</span>
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}
Expand Down Expand Up @@ -1427,7 +1432,7 @@ <h2>Capability Delegation</h2>
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
"https://w3id.org/security/multikey/v1"
],
"id": "did:example:123456789abcdefghi",
<span class="comment">...</span>
Expand All @@ -1439,7 +1444,7 @@ <h2>Capability Delegation</h2>
<span class="comment">// embedded here rather than using only a reference</span>
{
"id": "did:example:123456789abcdefghi#keys-2",
"type": "Ed25519VerificationKey2020", <span class="comment">// external (property value)</span>
"type": "Multikey", <span class="comment">// external (property value)</span>
"controller": "did:example:123456789abcdefghi",
"publicKeyMultibase": "z6MkmM42vxfqZQsv4ehtTjFFxQ4sQKS2w6WR7emozFAn5cxu"
}
Expand Down

0 comments on commit 8b456c4

Please sign in to comment.