iso-ucan 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/envelope.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iso-ucan",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"description": "Isomorphic UCAN",
|
|
6
6
|
"author": "Hugo Dias <hugomrdias@gmail.com> (hugodias.me)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
"it-merge": "^3.0.12",
|
|
112
112
|
"multiformats": "^13.3.7",
|
|
113
113
|
"iso-base": "^4.1.0",
|
|
114
|
-
"iso-
|
|
115
|
-
"iso-
|
|
114
|
+
"iso-did": "^2.0.0",
|
|
115
|
+
"iso-signatures": "^0.4.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@types/node": "^24.1.0",
|
package/src/envelope.js
CHANGED
|
@@ -61,7 +61,7 @@ export function decodeSignaturePayload(bytes) {
|
|
|
61
61
|
`Invalid signature payload expected 2 keys got ${keys.length}`
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
|
-
if (!keys[1].startsWith('ucan/dlg')
|
|
64
|
+
if (!keys[1].startsWith('ucan/dlg') && !keys[1].startsWith('ucan/inv')) {
|
|
65
65
|
throw new TypeError('Invalid signature payload missing payload')
|
|
66
66
|
}
|
|
67
67
|
|