diff --git a/index.html b/index.html index a8bd844..59a90fa 100644 --- a/index.html +++ b/index.html @@ -465,141 +465,6 @@

TemplateRenderMethod

information from the [=verifiable credential=] listed in `renderProperty`.

-
-

The `svg-mustache` Render Suite

-

-The `svg-mustache` render suite uses the Mustache templating language to -modify an SVG file, which is then used to render a visual representation -of the [=verifiable credential=]. -

- -

-In the example below, a fully embedded SVG file is used as the rendering -template. -

- -
-{
-  ...
-  "renderMethod": {
-    "type": "TemplateRenderMethod",
-    "renderSuite": "svg-mustache",
-    // the SVG file is embedded in the VC
-    "template": "data:image/svg+xml;base64,Qjei89...3jZpW"
-  }
-}
-          
- -

-The next example links to the SVG file on the Web and secures it against -modification by using the `digestMultibase` property. -

- -
-{
-...
-"renderMethod": {
-  "type": "TemplateRenderMethod",
-  "renderSuite": "svg-mustache",
-  "template": {
-    // this SVG file is fetched from the Web
-    "id": "https://degree.example/credential-templates/bachelors",
-    "mediaType": "image/svg+xml",
-    "digestMultibase": "zQmerWC85Wg6wFl9znFCwYxApG270iEu5h6JqWAPdhyxz2dR"
-  }
-}
-          
- -

-The next example links to the rendering template on the Web and secures it -using the `digestMultibase` property: -

- -
-{
-...
-"renderMethod": {
-  // this render method is fetched from the Web
-  "id": "https://degrees.example/bachelors-svg.jsonld",
-  "mediaType": "application/ld+json",
-  "type": "TemplateRenderMethod",
-  "renderSuite": "svg-mustache",
-  "digestMultibase": "zQmG270iEu5h6JqWAPdhyxz2dRerWC85Wg6wFl9znFCwYxAp"
-}
-          
- -
- -
-

The `pdf-mustache` Render Suite

-

-The `pdf-mustache` render suite uses the Mustache templating language to -modify a PDF file, which is then used to render a visual representation -of the [=verifiable credential=]. -

- -

-In the example below, a fully embedded PDF file is used as the rendering -template. -

- -
-{
-  ...
-  "renderMethod": {
-    "type": "TemplateRenderMethod",
-    "renderSuite": "pdf-mustache",
-    // this PDF file is embedded in the VC
-    "template": "data:application/pdf;base64,k309SK...pwK83b"
-  }
-}
-          
- -

-The next example links to the PDF file on the Web and secures it against -modification by using the `digestMultibase` property. -

- -
-{
-...
-"renderMethod": {
-  "type": "TemplateRenderMethod",
-  "renderSuite": "pdf-mustache",
-  "template": {
-    // this PDF file is fetched from the Web
-    "id": "https://degree.example/bachelors.pdf",
-    "mediaType": "application/pdf",
-    "digestMultibase": "zQmznFCwYxApG270iEu5h6JqWAPdhyxz2dRerWC85Wg6wFl9"
-  }
-}
-          
- -

-The next example links to the rendering template on the Web and secures it -using the `digestMultibase` property: -

- -
-{
-...
-"renderMethod": {
-  // this render method is fetched from the Web
-  "id": "https://degrees.example/bachelors-pdf.jsonld",
-  "type": "TemplateRenderMethod",
-  "renderSuite": "pdf-mustache",
-  "digestMultibase": "zQmEu5h6JqWAPdhyxmz2dRerWC85Wg6wFl9znFCwYxApG270"
-}
-          
- -
-

The `nfc` Render Suite

@@ -807,7 +672,7 @@

Wrapper Code

To complete the setup, the [=host page=] MUST inject the [=wrapper code=] (once populated -with the [=verifiable credential=] and the [=template code=]) into the iframe's `srcdoc` +with the [=verifiable credential=] and the [=template code=]) into the iframe's `srcdoc` attribute which will run any JavaScript contained in the [=wrapper code=] and [=template code=].

@@ -854,7 +719,7 @@
Ready and Error Events

Algorithms

The following sections outline the algorithms that are used by the `html` render -suite to safely render the HTML template. Alternative algorithms MAY be used +suite to safely render the HTML template. Alternative algorithms MAY be used as long as the security and privacy outcomes as well as the output is the same.