Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Oct 2, 2023
1 parent b118723 commit 38d515c
Show file tree
Hide file tree
Showing 72 changed files with 1,495 additions and 18,674 deletions.
64 changes: 3 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JSON Web Token Verifiable Credentials for ReSpec
# Verifiable Credential Service Worker Plugin for ReSpec

- [demo](https://transmute-industries.github.io/respec-vc-jwt/)

Expand All @@ -8,69 +8,11 @@ But with support for v2, and no JSON-LD processing.

# Usage

See [index.html](./index.html)

To use this extension, include the following line in your ReSpec file:

```html
<script class="remove" src="https://cdn.jsdelivr.net/gh/transmute-industries/[email protected]/dist/main.js"></script>
```

Note that there might be releases later than the one listed above.
Check this repository's [tags](https://github.com/transmute-industries/respec-vc-jwt/tags)
for all known releases.

# ReSpec Markup

To use this extension, you must add the `vc-jwt` class to your examples
and optionally provide a digital proof verification method (e.g.,
a URL to a public key) via the `data-vc-kid` attribute.

## Secured Verifiable Credential

```html
<pre class="example nohighlight vc-jwt" title="Usage of the id property"
data-vc-kid="https://example.edu/issuers/565049#key-1">
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
<span class="highlight">"id": "http://example.edu/credentials/3732"</span>,
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": "https://example.edu/issuers/565049",
"issuanceDate": "2010-01-01T00:00:00Z",
"credentialSubject": {
<span class="highlight">"id": "did:example:ebfeb1f712ebc6f1c276e12ec21"</span>,
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
}
</pre>
```

## Unsecured Verifiable Presentation

```html
<pre class="example nohighlight vc-jwt" title="unsecured example"
data-vp-alg="none">
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
<span class="highlight">"id": "http://example.edu/credentials/3732"</span>,
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": "https://example.edu/issuers/565049",
"issuanceDate": "2010-01-01T00:00:00Z",
"credentialSubject": {
<span class="highlight">"id": "did:example:ebfeb1f712ebc6f1c276e12ec21"</span>,
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
}
</pre>
```

112 changes: 0 additions & 112 deletions credentials.js

This file was deleted.

Loading

0 comments on commit 38d515c

Please sign in to comment.