Skip to content

Commit

Permalink
Update plugin to use respec-vc (#280)
Browse files Browse the repository at this point in the history
* not working yet

* some progress

* plugin needs to be updated

* update latest

* update to new version

* one more update
  • Loading branch information
decentralgabe authored Jul 5, 2024
1 parent 46c4e0e commit f083eaa
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16,345 deletions.
28 changes: 13 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
<title>Securing Verifiable Credentials using JOSE and COSE</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
<script class="remove"
src="https://cdn.jsdelivr.net/gh/w3c/vc-jose-cose@e7f73ef0060c2c8e4c1319ed6f3024eb8b622cf2/plugin/dist/main.js"></script>
<script class="remove" src="https://cdn.jsdelivr.net/gh/digitalbazaar/[email protected]/dist/main.js"></script>
<script class="remove">
// See https://github.com/w3c/respec/wiki/ for how to configure
// ReSpec
Expand Down Expand Up @@ -81,7 +80,7 @@

maxTocLevel: 3,
inlineCSS: true,
postProcess: [window.respecVcJoseCose.processVcJoseCose],
postProcess: [window.respecVc.createVcExamples],
license: "w3c-software-doc",
xref: true,
otherLinks: [{
Expand Down Expand Up @@ -264,7 +263,7 @@ <h2 id="securing-with-jose">Securing JSON-LD Verifiable Credentials with JOSE</h
A [=conforming JWS verifier implementation=] MUST use [[RFC7515]] to verify [=conforming JWS documents=]
that use this media type.
</p>
<pre class="example vc-jose-cose-jwt" title="A simple example of a verifiable credential secured with JOSE">
<pre class="example nohighlight vc" data-vc-tabs="jose" title="A simple example of a verifiable credential secured with JOSE">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand Down Expand Up @@ -329,7 +328,7 @@ <h2 id="securing-vps-with-jose">Securing JSON-LD Verifiable Presentations with J
These credentials are secured using JWS in this case.
<p>

<pre class="example vc-jose-cose-jwt"
<pre class="example nohighlight vc" data-vc-tabs="jose"
title="A simple example of a verifiable presentation secured with JOSE">
{
"@context": [
Expand Down Expand Up @@ -449,7 +448,7 @@ <h2 id="securing-with-sd-jwt">Securing JSON-LD Verifiable Credentials with SD-JW
documents=] that use this media type.
</p>

<pre class="example vc-jose-cose-sd-jwt"
<pre class="example nohighlight vc" data-vc-tabs="sd-jwt"
title="A simple example of a verifiable credential secured with SD-JWT">
{
"@context": [
Expand Down Expand Up @@ -514,7 +513,7 @@ <h2 id="securing-vps-sd-jwt">Securing JSON-LD Verifiable Presentations with SD-J
Credentials in verifiable presentations MUST be secured.
These credentials are secured using SD-JWT in this case.
<p>
<pre class="example vc-jose-cose-sd-jwt"
<pre class="example nohighlight vc" data-vc-tabs="sd-jwt"
title="A simple example of a verifiable presentation secured with SD-JWT">
{
"@context": [
Expand Down Expand Up @@ -573,7 +572,7 @@ <h2 id="securing-vcs-with-cose">Securing JSON-LD Verifiable Credentials with COS
A [=conforming COSE verifier implementation=] MUST use COSE_Sign1 as specified in [[RFC9052]] to verify
[=conforming COSE documents=] that use this media type.
</p>
<pre class="example vc-jose-cose-cose"
<pre class="example nohighlight vc" data-vc-tabs="cose"
title="A simple example of a verifiable credential secured with COSE">
{
"@context": [
Expand Down Expand Up @@ -636,7 +635,7 @@ <h2 id="securing-vps-with-cose">Securing JSON-LD Verifiable Presentations with C
Credentials in verifiable presentations MUST be secured.
These credentials are secured using COSE in this case.
<p>
<pre class="example vc-jose-cose-cose"
<pre class="example nohighlight vc" data-vc-tabs="cose"
title="A simple example of a verifiable presentation secured with COSE">
{
"@context": [
Expand Down Expand Up @@ -1693,7 +1692,7 @@ <h2 id="vc-ld-json-cose"><code>application/vc-ld+cose</code></h2>
<td>Security considerations:</td>
<td>
<p>As defined in this specification. See also the security
considerations in [[RFC9052]]</a>.</p>
considerations in [[RFC9052]].</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1739,7 +1738,7 @@ <h2 id="vp-ld-json-cose"><code>application/vp-ld+cose</code></h2>
<td>Security considerations:</td>
<td>
<p>As defined in this specification. See also the security
considerations in [[RFC9052]]</a>.</p>
considerations in [[RFC9052]].</p>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -2008,7 +2007,7 @@ <h2 id="controllers">Controllers</h2>
</section>
<section>
<h3 id="credentials">Credentials</h3>
<pre class="example vc-jose-cose" title="A revocable credential with multiple subjects">
<pre class="example nohighlight vc" data-vc-tabs="jose sd-jwt cose" title="A revocable credential with multiple subjects">
{
"@context": ["https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
Expand Down Expand Up @@ -2036,7 +2035,7 @@ <h3 id="credentials">Credentials</h3>
}
</pre>

<pre class="example vc-jose-cose" title="A credential with a schema">
<pre class="example nohighlight vc" data-vc-tabs="jose sd-jwt cose" title="A credential with a schema">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -2062,7 +2061,7 @@ <h3 id="credentials">Credentials</h3>
<section>
<h2 id="presentations">Presentations</h2>

<pre class="example vc-jose-cose" title="Presentation">
<pre class="example nohighlight vc" data-vc-tabs="jose sd-jwt cose" title="Presentation">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand Down Expand Up @@ -2357,7 +2356,6 @@ <h3 id="alg-cose">Algorithm for Verifying a Credential or Presentation Secured w
</li>
</ol>
</li>
</li>
</ol>
</section>

Expand Down
38 changes: 0 additions & 38 deletions plugin/README.md

This file was deleted.

Loading

0 comments on commit f083eaa

Please sign in to comment.