Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update edn render plugin #260

Merged
merged 3 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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@72ae317413281b368fdac78d1fc3e778c4297857/plugin/dist/main.js"></script>
<script class="remove" src="https://cdn.jsdelivr.net/gh/w3c/vc-jose-cose@b1aa0e7d54e407e6e8b7f1831327aa869854e72e/plugin/dist/main.js"></script>
<script class="remove">
// See https://github.com/w3c/respec/wiki/ for how to configure
// ReSpec
Expand Down
6 changes: 3 additions & 3 deletions plugin/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
editors: [
{
name: "Gabe Cohen", url: "https://www.linkedin.com/in/cohengabe/",
company: "Transmute", companyURL: "http://decentralgabe.xyz/"
company: "Block", companyURL: "http://decentralgabe.xyz/"
},
{
name: "Orie Steele", url: "https://www.linkedin.com/in/or13b/",
Expand Down
8 changes: 4 additions & 4 deletions plugin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"homepage": "https://github.com/w3c/vc-jose-cose#readme",
"dependencies": {
"@transmute/cose": "^0.1.1",
"@transmute/edn": "^0.0.2",
"@transmute/edn": "^0.0.4",
"@transmute/vc-jwt-sd": "^0.0.5",
"@transmute/verifiable-credentials": "^0.2.0",
"buffer": "^6.0.3",
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/exampleCose.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ export const getCoseExample = async (privateKey, messageJson) => {
const message = await getBinaryMessage(privateKey, messageType, messageJson)
const messageHex = buf2hex(message)
const messageBuffer = Buffer.from(messageHex, "hex");
const diagnostic = await edn.render(messageBuffer, 'text/html')
const diagnostic = await edn.render(messageBuffer, 'application/cbor-diagnostic')
return `
<h1>${messageType.replace('+cose', '')}</h1>
<pre>
${JSON.stringify(messageJson, null, 2)}
</pre>
<h1>application/cbor-diagnostic</h1>
<div class="cose-text">
${diagnostic.trim()}
<pre><code>${diagnostic.trim()}</code></pre>
</div>
<h1>${messageType} (detached payload)</h1>
<div class="cose-text">
Expand Down
Loading