transmute-industries / respec-vc-jwt

W3C Verifiable Credential Plugin

Home Page:https://transmute-industries.github.io/respec-vc-jwt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verifiable Credential Service Worker Plugin for ReSpec

But with support for v2, and no JSON-LD processing.

Usage

See index.html

To use this extension, add the respec-plugins directory to your spec, then configure respect to use the worker to post process like so:

<head>
  <title>Respec Service Worker Plugin Test</title>
  <meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
  <script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
  <script src='./respec-plugins/vc-jose-cose.js'></script>
  <link rel="stylesheet" href="./respec-plugins/vc-jose-cose.css">
  <script type="text/javascript" class="remove">
    var respecConfig = {
      // ...
      postProcess: [postProcessWithWorker]
    };
  </script>
</head>

Credits

Based on the original plugin here https://github.com/digitalbazaar/respec-vc

About

W3C Verifiable Credential Plugin

https://transmute-industries.github.io/respec-vc-jwt/

License:Apache License 2.0


Languages

Language:JavaScript 73.5%Language:HTML 26.5%