@interop/minimal-cipher 7.4.0 → 7.4.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/README.md +8 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -123,9 +123,10 @@ import { X25519KeyAgreementKey2020 } from '@interop/x25519-key-agreement-key'
|
|
|
123
123
|
import { Ed25519VerificationKey } from '@interop/ed25519-verification-key'
|
|
124
124
|
const keyPair = await Ed25519VerificationKey.generate()
|
|
125
125
|
|
|
126
|
-
const keyAgreementKey =
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
const keyAgreementKey =
|
|
127
|
+
X25519KeyAgreementKey2020.fromEd25519VerificationKey2020({
|
|
128
|
+
keyPair
|
|
129
|
+
})
|
|
129
130
|
// If the source key pair didn't have a controller set, don't forget to set one:
|
|
130
131
|
keyAgreementKey.controller = did // The controller's DID
|
|
131
132
|
keyAgreementKey.id = `${did}#${keyAgreementKey.fingerprint()}`
|
|
@@ -136,9 +137,10 @@ const authnKey = didDoc.getVerificationMethod({
|
|
|
136
137
|
proofPurpose: 'authentication'
|
|
137
138
|
})
|
|
138
139
|
const edKeyPair = await Ed25519VerificationKey.from(authnKey)
|
|
139
|
-
const keyAgreementKey =
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
const keyAgreementKey =
|
|
141
|
+
X25519KeyAgreementKey2020.fromEd25519VerificationKey2020({
|
|
142
|
+
keyPair: edKeyPair
|
|
143
|
+
})
|
|
142
144
|
|
|
143
145
|
const recipient = {
|
|
144
146
|
header: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/minimal-cipher",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Minimal encryption/decryption JWE library.",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"type": "module",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:coverage": "vitest run --coverage"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@interop/data-integrity-core": "^8.
|
|
44
|
-
"@interop/ecdsa-multikey": "^2.3.
|
|
43
|
+
"@interop/data-integrity-core": "^8.1.0",
|
|
44
|
+
"@interop/ecdsa-multikey": "^2.3.2",
|
|
45
45
|
"@noble/curves": "^2.2.0",
|
|
46
46
|
"@scure/base": "^2.2.0",
|
|
47
47
|
"@stablelib/chacha": "^2.0.1",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@eslint/js": "^10.0.1",
|
|
52
|
-
"@interop/did-io": "^4.0.
|
|
53
|
-
"@interop/did-method-key": "^7.3.
|
|
54
|
-
"@interop/ed25519-verification-key": "^8.0.
|
|
52
|
+
"@interop/did-io": "^4.0.6",
|
|
53
|
+
"@interop/did-method-key": "^7.3.3",
|
|
54
|
+
"@interop/ed25519-verification-key": "^8.0.2",
|
|
55
55
|
"@interop/x25519-key-agreement-key": "^5.1.0",
|
|
56
56
|
"@playwright/test": "^1.60.0",
|
|
57
57
|
"@types/node": "^25.9.1",
|