@interop/ed25519-signature 7.0.0 → 7.1.0
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/CHANGELOG.md +43 -0
- package/README.md +55 -22
- package/dist/core/createVerifier.d.ts.map +1 -1
- package/dist/core/createVerifier.js.map +1 -1
- package/dist/core/sha256-browser.d.ts.map +1 -1
- package/dist/core/sha256-browser.js.map +1 -1
- package/dist/core/sha256.d.ts.map +1 -1
- package/dist/core/sha256.js.map +1 -1
- package/dist/ed25519-signature-2020/index.d.ts.map +1 -1
- package/dist/ed25519-signature-2020/index.js +5 -1
- package/dist/ed25519-signature-2020/index.js.map +1 -1
- package/dist/eddsa-jcs-2022/EddsaJcs2022.d.ts +31 -0
- package/dist/eddsa-jcs-2022/EddsaJcs2022.d.ts.map +1 -0
- package/dist/eddsa-jcs-2022/EddsaJcs2022.js +40 -0
- package/dist/eddsa-jcs-2022/EddsaJcs2022.js.map +1 -0
- package/dist/eddsa-jcs-2022/createVerifyData.d.ts.map +1 -1
- package/dist/eddsa-jcs-2022/createVerifyData.js.map +1 -1
- package/dist/eddsa-jcs-2022/index.d.ts.map +1 -1
- package/dist/eddsa-jcs-2022/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
# @interop/ed25519-signature Changelog
|
|
2
2
|
|
|
3
|
+
## 7.1.0 - 2026-06-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Export `EddsaJcs2022`, a ready-to-instantiate signing suite class for the
|
|
8
|
+
`eddsa-jcs-2022` cryptosuite. It bakes in `createSignCryptosuite()` and
|
|
9
|
+
exposes the same `new SuiteClass({ signer, date })` constructor contract as
|
|
10
|
+
`Ed25519Signature2020`, so consumers that instantiate a suite by class (e.g.
|
|
11
|
+
`@interop/ezcap`'s `ZcapClient`) can select `eddsa-jcs-2022`. Use
|
|
12
|
+
`createVerifyCryptosuite()` for the verification side.
|
|
13
|
+
|
|
14
|
+
## 7.0.1 - 2026-06-02
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- (Types only) Bump `@interop/jsonld-signatures` to `^11.6.7` and
|
|
19
|
+
`@interop/data-integrity-proof` to `^3.2.1`, which align their exported
|
|
20
|
+
TypeScript definitions with the shared `@interop/data-integrity-core` types.
|
|
21
|
+
The test document loader now types its return value with `IDocumentLoader`
|
|
22
|
+
(from `@interop/data-integrity-core/loader`) in place of the removed
|
|
23
|
+
`DocumentLoader` export from `@interop/jsonld-signatures`. No runtime or
|
|
24
|
+
published API change.
|
|
25
|
+
|
|
3
26
|
## 7.0.0 - 2026-06-01
|
|
27
|
+
|
|
4
28
|
### Changed
|
|
29
|
+
|
|
5
30
|
- **BREAKING:** Swap dependencies onto the renamed, now-typed Interop forks:
|
|
6
31
|
`@digitalbazaar/data-integrity` to `@interop/data-integrity-proof@^3.1.0`
|
|
7
32
|
(`DataIntegrityProof`, `Cryptosuite`), and `@digitalcredentials/ssi` to
|
|
@@ -16,7 +41,9 @@
|
|
|
16
41
|
`Cryptosuite.name` is optional upstream.
|
|
17
42
|
|
|
18
43
|
## 6.0.0-6.0.1 - 2026-05-27
|
|
44
|
+
|
|
19
45
|
### Changed
|
|
46
|
+
|
|
20
47
|
- **BREAKING: Renamed** from `@digitalbazaar/ed25519-signature-2020` to
|
|
21
48
|
`@interop/ed25519-signature` (rename-in-place; preserves git history and the
|
|
22
49
|
committed spec test vectors).
|
|
@@ -41,6 +68,7 @@
|
|
|
41
68
|
point and `@interop/jsonld` for RDFC-1.0 canonicalization.
|
|
42
69
|
|
|
43
70
|
### Added
|
|
71
|
+
|
|
44
72
|
- `eddsa-rdfc-2022` cryptosuite (DataIntegrityProof, RDFC-1.0).
|
|
45
73
|
- `eddsa-jcs-2022` sign/verify cryptosuite factories (DataIntegrityProof, JCS /
|
|
46
74
|
RFC 8785), including the spec context-prefix ordering check.
|
|
@@ -50,6 +78,7 @@
|
|
|
50
78
|
disambiguated by `matchProof`).
|
|
51
79
|
|
|
52
80
|
### Fixed
|
|
81
|
+
|
|
53
82
|
- `eddsa-jcs-2022` verify: the context-prefix check now compares `@context`
|
|
54
83
|
entries by value, not reference, so a VC carrying an inline `@context` object
|
|
55
84
|
verifies after a JSON round-trip (the realistic transport path). The previous
|
|
@@ -59,14 +88,17 @@
|
|
|
59
88
|
## 5.4.0 - 2024-08-01
|
|
60
89
|
|
|
61
90
|
### Changed
|
|
91
|
+
|
|
62
92
|
- Use `jsonld-signature@11.3` to get `RDFC-1.0` implementation.
|
|
63
93
|
|
|
64
94
|
## 5.3.0 - 2024-06-15
|
|
65
95
|
|
|
66
96
|
### Added
|
|
97
|
+
|
|
67
98
|
- Add support for `Multikey` verification methods.
|
|
68
99
|
|
|
69
100
|
### Changed
|
|
101
|
+
|
|
70
102
|
- Loosen restrictions on verification methods that do not have
|
|
71
103
|
contexts, allowing processing of well-known types in those cases.
|
|
72
104
|
- Allow `publiKeyJwk` to be used to express key material.
|
|
@@ -74,12 +106,14 @@
|
|
|
74
106
|
## 5.2.0 - 2023-02-13
|
|
75
107
|
|
|
76
108
|
### Removed
|
|
109
|
+
|
|
77
110
|
- Remove unused `expansionMap` from `matchProof()` as it was removed
|
|
78
111
|
from `jsonld-signatures@11` which is required since version `5.0`.
|
|
79
112
|
|
|
80
113
|
## 5.1.0 - 2023-02-07
|
|
81
114
|
|
|
82
115
|
### Added
|
|
116
|
+
|
|
83
117
|
- Allow custom `canonizeOptions` to be passed in the construction of
|
|
84
118
|
a suite as a stop-gap until hard requirements for canonize options
|
|
85
119
|
are either set or advised to be certain values by a W3C working group.
|
|
@@ -87,17 +121,20 @@
|
|
|
87
121
|
## 5.0.0 - 2022-08-23
|
|
88
122
|
|
|
89
123
|
### Changed
|
|
124
|
+
|
|
90
125
|
- **BREAKING**: Use `jsonld-signatures@11` to get better safe mode
|
|
91
126
|
protections when canonizing.
|
|
92
127
|
|
|
93
128
|
## 4.0.1 - 2022-06-06
|
|
94
129
|
|
|
95
130
|
### Changed
|
|
131
|
+
|
|
96
132
|
- Update to jsonld-signatures@10.
|
|
97
133
|
|
|
98
134
|
## 4.0.0 - 2022-06-06
|
|
99
135
|
|
|
100
136
|
### Changed
|
|
137
|
+
|
|
101
138
|
- **BREAKING**: Convert to module (ESM).
|
|
102
139
|
- **BREAKING**: Require Node.js >=14.
|
|
103
140
|
- Update dependencies.
|
|
@@ -113,16 +150,19 @@
|
|
|
113
150
|
## 2.2.0 - 2021-05-26
|
|
114
151
|
|
|
115
152
|
### Added
|
|
153
|
+
|
|
116
154
|
- It is now possible to verify `Ed25519Signature2020` proofs using using
|
|
117
155
|
2018 keys.
|
|
118
156
|
|
|
119
157
|
### Changed
|
|
158
|
+
|
|
120
159
|
- Replace `@transmute/jsonld-document-loader` with
|
|
121
160
|
`@digitalbazaar/security-document-loader` in test.
|
|
122
161
|
|
|
123
162
|
## 2.1.0 - 2021-04-09
|
|
124
163
|
|
|
125
164
|
### Added
|
|
165
|
+
|
|
126
166
|
- Export the suite's context (and related objects such as context url,
|
|
127
167
|
documentLoader, etc), and also set them as a property of the suite class.
|
|
128
168
|
- Set the `contextUrl` property on suite instance, to support context
|
|
@@ -132,11 +172,13 @@
|
|
|
132
172
|
## 2.0.1 - 2021-04-09
|
|
133
173
|
|
|
134
174
|
### Changed
|
|
175
|
+
|
|
135
176
|
- Use `ed25519-verification-key-2020@2.1.1`. Signer now has an "id" property.
|
|
136
177
|
|
|
137
178
|
## 2.0.0 - 2021-04-06
|
|
138
179
|
|
|
139
180
|
### Changed
|
|
181
|
+
|
|
140
182
|
- **BREAKING**: Update to use `jsonld-signatures` v9.0 (removes
|
|
141
183
|
`verificationMethod` suite constructor param, makes key and signer validation
|
|
142
184
|
stricter).
|
|
@@ -145,4 +187,5 @@
|
|
|
145
187
|
## 1.0.0 - 2021-03-19
|
|
146
188
|
|
|
147
189
|
### Added
|
|
190
|
+
|
|
148
191
|
- Initial files.
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ One package providing all three Ed25519 Verifiable Credential proof flavors,
|
|
|
11
11
|
unified on the `DataIntegrityProof` container model:
|
|
12
12
|
|
|
13
13
|
| Suite | `proof.type` | `proof.cryptosuite` | Canonicalization |
|
|
14
|
-
|
|
14
|
+
| ---------------------- | ---------------------- | ------------------- | ---------------- |
|
|
15
15
|
| `Ed25519Signature2020` | `Ed25519Signature2020` | (absent) | RDFC-1.0 |
|
|
16
16
|
| `eddsa-rdfc-2022` | `DataIntegrityProof` | `eddsa-rdfc-2022` | RDFC-1.0 |
|
|
17
17
|
| `eddsa-jcs-2022` | `DataIntegrityProof` | `eddsa-jcs-2022` | JCS (RFC 8785) |
|
|
@@ -83,7 +83,11 @@ A convenience root barrel re-exports everything (plus `createSigner` /
|
|
|
83
83
|
`createVerifier`) for when bundle size is not a concern:
|
|
84
84
|
|
|
85
85
|
```js
|
|
86
|
-
import {
|
|
86
|
+
import {
|
|
87
|
+
Ed25519Signature2020,
|
|
88
|
+
eddsaRdfc2022,
|
|
89
|
+
createSigner
|
|
90
|
+
} from '@interop/ed25519-signature'
|
|
87
91
|
```
|
|
88
92
|
|
|
89
93
|
## Usage
|
|
@@ -94,7 +98,9 @@ The examples share this setup:
|
|
|
94
98
|
import jsigs from '@interop/jsonld-signatures'
|
|
95
99
|
import { Ed25519VerificationKey } from '@interop/ed25519-verification-key'
|
|
96
100
|
|
|
97
|
-
const {
|
|
101
|
+
const {
|
|
102
|
+
purposes: { AssertionProofPurpose }
|
|
103
|
+
} = jsigs
|
|
98
104
|
|
|
99
105
|
const controller = 'https://example.edu/issuers/565049'
|
|
100
106
|
const keyPair = await Ed25519VerificationKey.from({
|
|
@@ -121,21 +127,30 @@ import { Ed25519Signature2020 } from '@interop/ed25519-signature/ed25519-signatu
|
|
|
121
127
|
const credential = {
|
|
122
128
|
'@context': [
|
|
123
129
|
'https://www.w3.org/2018/credentials/v1',
|
|
124
|
-
{
|
|
130
|
+
{
|
|
131
|
+
AlumniCredential: 'https://schema.org#AlumniCredential',
|
|
132
|
+
alumniOf: 'https://schema.org#alumniOf'
|
|
133
|
+
},
|
|
125
134
|
'https://w3id.org/security/suites/ed25519-2020/v1'
|
|
126
135
|
],
|
|
127
136
|
id: 'http://example.edu/credentials/1872',
|
|
128
137
|
type: ['VerifiableCredential', 'AlumniCredential'],
|
|
129
138
|
issuer: controller,
|
|
130
139
|
issuanceDate: '2010-01-01T19:23:24Z',
|
|
131
|
-
credentialSubject: {
|
|
140
|
+
credentialSubject: {
|
|
141
|
+
id: 'https://example.edu/students/alice',
|
|
142
|
+
alumniOf: 'Example University'
|
|
143
|
+
}
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
const signed = await jsigs.sign(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
146
|
+
const signed = await jsigs.sign(
|
|
147
|
+
{ ...credential },
|
|
148
|
+
{
|
|
149
|
+
suite: new Ed25519Signature2020({ signer: keyPair.signer() }),
|
|
150
|
+
purpose: new AssertionProofPurpose(),
|
|
151
|
+
documentLoader
|
|
152
|
+
}
|
|
153
|
+
)
|
|
139
154
|
// signed.proof.type === 'Ed25519Signature2020' (no `cryptosuite` field)
|
|
140
155
|
|
|
141
156
|
const result = await jsigs.verify(signed, {
|
|
@@ -158,11 +173,17 @@ import { eddsaRdfc2022 } from '@interop/ed25519-signature/eddsa-rdfc-2022'
|
|
|
158
173
|
import { createSigner } from '@interop/ed25519-signature'
|
|
159
174
|
|
|
160
175
|
// The VC @context must include 'https://w3id.org/security/data-integrity/v2'.
|
|
161
|
-
const signed = await jsigs.sign(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
176
|
+
const signed = await jsigs.sign(
|
|
177
|
+
{ ...diCredential },
|
|
178
|
+
{
|
|
179
|
+
suite: new DataIntegrityProof({
|
|
180
|
+
cryptosuite: eddsaRdfc2022,
|
|
181
|
+
signer: createSigner(keyPair)
|
|
182
|
+
}),
|
|
183
|
+
purpose: new AssertionProofPurpose(),
|
|
184
|
+
documentLoader
|
|
185
|
+
}
|
|
186
|
+
)
|
|
166
187
|
// signed.proof.type === 'DataIntegrityProof', signed.proof.cryptosuite === 'eddsa-rdfc-2022'
|
|
167
188
|
|
|
168
189
|
const result = await jsigs.verify(signed, {
|
|
@@ -179,14 +200,23 @@ Split sign / verify factories (not a single object). The sign cryptosuite's
|
|
|
179
200
|
|
|
180
201
|
```js
|
|
181
202
|
import { DataIntegrityProof } from '@interop/data-integrity-proof'
|
|
182
|
-
import {
|
|
203
|
+
import {
|
|
204
|
+
createSignCryptosuite,
|
|
205
|
+
createVerifyCryptosuite
|
|
206
|
+
} from '@interop/ed25519-signature/eddsa-jcs-2022'
|
|
183
207
|
import { createSigner } from '@interop/ed25519-signature'
|
|
184
208
|
|
|
185
|
-
const signed = await jsigs.sign(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
209
|
+
const signed = await jsigs.sign(
|
|
210
|
+
{ ...diCredential },
|
|
211
|
+
{
|
|
212
|
+
suite: new DataIntegrityProof({
|
|
213
|
+
cryptosuite: createSignCryptosuite(),
|
|
214
|
+
signer: createSigner(keyPair)
|
|
215
|
+
}),
|
|
216
|
+
purpose: new AssertionProofPurpose(),
|
|
217
|
+
documentLoader
|
|
218
|
+
}
|
|
219
|
+
)
|
|
190
220
|
// signed.proof.cryptosuite === 'eddsa-jcs-2022'
|
|
191
221
|
|
|
192
222
|
const result = await jsigs.verify(signed, {
|
|
@@ -237,7 +267,10 @@ In the Digital Bazaar ecosystem the key library supplies that property;
|
|
|
237
267
|
|
|
238
268
|
```js
|
|
239
269
|
import { createSigner } from '@interop/ed25519-signature'
|
|
240
|
-
new DataIntegrityProof({
|
|
270
|
+
new DataIntegrityProof({
|
|
271
|
+
cryptosuite: eddsaRdfc2022,
|
|
272
|
+
signer: createSigner(keyPair)
|
|
273
|
+
})
|
|
241
274
|
```
|
|
242
275
|
|
|
243
276
|
The `Ed25519Signature2020` class does this for you, so there you can pass
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVerifier.d.ts","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"createVerifier.d.ts","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,mBAAmB,EACpB,MAAM,8BAA8B,CAAA;AAIrC,wBAAsB,cAAc,CAAC,EACnC,kBAAkB,EACnB,EAAE;IACD,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,OAAO,CAAC,SAAS,CAAC,CAUrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVerifier.js","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createVerifier.js","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,EACnC,kBAAkB,EAGnB;IACC,sEAAsE;IACtE,gDAAgD;IAChD,MAAM,GAAG,GAAG,MAAM,sBAAsB,CAAC,IAAI,CAAC,kBAAyB,CAAC,CAAA;IACxE,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAA;IAC/B,0EAA0E;IAC1E,4EAA4E;IAC5E,2EAA2E;IAC3E,mDAAmD;IACnD,OAAO,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,iBAAiB,EAAE,CAAA;AAC5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256-browser.d.ts","sourceRoot":"","sources":["../../src/core/sha256-browser.ts"],"names":[],"mappings":"AAAA,wBAAsB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"sha256-browser.d.ts","sourceRoot":"","sources":["../../src/core/sha256-browser.ts"],"names":[],"mappings":"AAAA,wBAAsB,MAAM,CAAC,EAC3B,MAAM,EACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,UAAU,CAAC,CAGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256-browser.js","sourceRoot":"","sources":["../../src/core/sha256-browser.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"sha256-browser.js","sourceRoot":"","sources":["../../src/core/sha256-browser.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,EAC3B,MAAM,EAGP;IACC,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC9C,OAAO,IAAI,UAAU,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;AACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/core/sha256.ts"],"names":[],"mappings":"AAEA,wBAAsB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/core/sha256.ts"],"names":[],"mappings":"AAEA,wBAAsB,MAAM,CAAC,EAC3B,MAAM,EACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,UAAU,CAAC,CAEtB"}
|
package/dist/core/sha256.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.js","sourceRoot":"","sources":["../../src/core/sha256.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"sha256.js","sourceRoot":"","sources":["../../src/core/sha256.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,EAC3B,MAAM,EAGP;IACC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,CAAA;AAC5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ed25519-signature-2020/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAG9E,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAI7D,qBAAa,oBAAqB,SAAQ,kBAAkB;IAC1D,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,OAAO,UAAmD;gBAErD,EACV,MAAM,EACN,IAAI,EACL,GAAE;QACD,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;KAChC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ed25519-signature-2020/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAG9E,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAI7D,qBAAa,oBAAqB,SAAQ,kBAAkB;IAC1D,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,OAAO,UAAmD;gBAErD,EACV,MAAM,EACN,IAAI,EACL,GAAE;QACD,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;KAChC;IAoBS,WAAW,CAAC,EACzB,KAAK,EACN,EAAE;QACD,KAAK,EAAE,iBAAiB,CAAA;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAI/B;AAED,OAAO,EAAE,gBAAgB,IAAI,YAAY,EAAE,CAAA"}
|
|
@@ -14,7 +14,11 @@ export class Ed25519Signature2020 extends DataIntegrityProof {
|
|
|
14
14
|
const wrappedSigner = signer
|
|
15
15
|
? ensureSignerAlgorithm(signer)
|
|
16
16
|
: undefined;
|
|
17
|
-
super({
|
|
17
|
+
super({
|
|
18
|
+
signer: wrappedSigner,
|
|
19
|
+
date,
|
|
20
|
+
cryptosuite: ed25519Sig2020Cryptosuite
|
|
21
|
+
});
|
|
18
22
|
this.type = 'Ed25519Signature2020';
|
|
19
23
|
this.contextUrl = SUITE_CONTEXT_URL;
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ed25519-signature-2020/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAElE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,gBAAgB,MAAM,gCAAgC,CAAA;AAE7D,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,SAAS,CAAC,WAAW,CAAA;AAEhE,MAAM,OA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CAAA;QACF,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAA;QAClC,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAA;IACrC,CAAC;IAED,2EAA2E;IAC3E,wEAAwE;IACxE,+BAA+B;IACtB,KAAK,CAAC,WAAW,CAAC,EACzB,KAAK,EAIN;QACC,OAAO,KAAK,CAAC,WAAW,CAAA;QACxB,OAAO,KAAK,CAAA;IACd,CAAC;;AAGH,OAAO,EAAE,gBAAgB,IAAI,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof';
|
|
5
|
+
import type { ISigner } from '@interop/data-integrity-core';
|
|
6
|
+
/**
|
|
7
|
+
* A ready-to-instantiate signing suite for the `eddsa-jcs-2022` cryptosuite.
|
|
8
|
+
*
|
|
9
|
+
* The `eddsa-jcs-2022` cryptosuite itself ships as factory functions
|
|
10
|
+
* (`createSignCryptosuite()` / `createVerifyCryptosuite()`) that are fed into
|
|
11
|
+
* `new DataIntegrityProof({ cryptosuite, signer })`. This thin subclass bakes
|
|
12
|
+
* the sign cryptosuite in, exposing the same `new SuiteClass({ signer, date })`
|
|
13
|
+
* constructor contract as `Ed25519Signature2020`. That lets consumers which
|
|
14
|
+
* instantiate a suite by class (e.g. `@interop/ezcap`'s `ZcapClient`) select
|
|
15
|
+
* `eddsa-jcs-2022` by passing this class.
|
|
16
|
+
*
|
|
17
|
+
* Use {@link createVerifyCryptosuite} for the verification side.
|
|
18
|
+
*
|
|
19
|
+
* No static `CONTEXT` / `CONTEXT_URL` are exposed: JCS canonicalization is pure
|
|
20
|
+
* JSON (no JSON-LD expansion), so signing does not require the data-integrity
|
|
21
|
+
* context to be served by a document loader. The base class still sets
|
|
22
|
+
* `this.contextUrl` to the data-integrity context and appends it to the signed
|
|
23
|
+
* document for downstream verifiers.
|
|
24
|
+
*/
|
|
25
|
+
export declare class EddsaJcs2022 extends DataIntegrityProof {
|
|
26
|
+
constructor({ signer, date }?: {
|
|
27
|
+
signer?: ISigner;
|
|
28
|
+
date?: string | Date | number | null;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=EddsaJcs2022.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EddsaJcs2022.d.ts","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/EddsaJcs2022.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAI3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,YAAa,SAAQ,kBAAkB;gBACtC,EACV,MAAM,EACN,IAAI,EACL,GAAE;QACD,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;KAChC;CAYP"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof';
|
|
5
|
+
import { ensureSignerAlgorithm } from '../core/createSigner.js';
|
|
6
|
+
import { createSignCryptosuite } from './index.js';
|
|
7
|
+
/**
|
|
8
|
+
* A ready-to-instantiate signing suite for the `eddsa-jcs-2022` cryptosuite.
|
|
9
|
+
*
|
|
10
|
+
* The `eddsa-jcs-2022` cryptosuite itself ships as factory functions
|
|
11
|
+
* (`createSignCryptosuite()` / `createVerifyCryptosuite()`) that are fed into
|
|
12
|
+
* `new DataIntegrityProof({ cryptosuite, signer })`. This thin subclass bakes
|
|
13
|
+
* the sign cryptosuite in, exposing the same `new SuiteClass({ signer, date })`
|
|
14
|
+
* constructor contract as `Ed25519Signature2020`. That lets consumers which
|
|
15
|
+
* instantiate a suite by class (e.g. `@interop/ezcap`'s `ZcapClient`) select
|
|
16
|
+
* `eddsa-jcs-2022` by passing this class.
|
|
17
|
+
*
|
|
18
|
+
* Use {@link createVerifyCryptosuite} for the verification side.
|
|
19
|
+
*
|
|
20
|
+
* No static `CONTEXT` / `CONTEXT_URL` are exposed: JCS canonicalization is pure
|
|
21
|
+
* JSON (no JSON-LD expansion), so signing does not require the data-integrity
|
|
22
|
+
* context to be served by a document loader. The base class still sets
|
|
23
|
+
* `this.contextUrl` to the data-integrity context and appends it to the signed
|
|
24
|
+
* document for downstream verifiers.
|
|
25
|
+
*/
|
|
26
|
+
export class EddsaJcs2022 extends DataIntegrityProof {
|
|
27
|
+
constructor({ signer, date } = {}) {
|
|
28
|
+
// DataIntegrityProof validates signer.algorithm; ensure it is set for
|
|
29
|
+
// ISigner sources that leave `algorithm` unset.
|
|
30
|
+
const wrappedSigner = signer
|
|
31
|
+
? ensureSignerAlgorithm(signer)
|
|
32
|
+
: undefined;
|
|
33
|
+
super({
|
|
34
|
+
signer: wrappedSigner,
|
|
35
|
+
date,
|
|
36
|
+
cryptosuite: createSignCryptosuite()
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=EddsaJcs2022.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EddsaJcs2022.js","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/EddsaJcs2022.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,YAAa,SAAQ,kBAAkB;IAClD,YAAY,EACV,MAAM,EACN,IAAI,KAIF,EAAE;QACJ,sEAAsE;QACtE,gDAAgD;QAChD,MAAM,aAAa,GAAwB,MAAM;YAC/C,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC;YAC/B,CAAC,CAAC,SAAS,CAAA;QACb,KAAK,CAAC;YACJ,MAAM,EAAE,aAAa;YACrB,IAAI;YACJ,WAAW,EAAE,qBAAqB,EAAE;SACrC,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVerifyData.d.ts","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/createVerifyData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createVerifyData.d.ts","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/createVerifyData.ts"],"names":[],"mappings":"AAsEA,MAAM,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAEvE,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GAAG,QAAQ,GACtB,kBAAkB,CA0BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVerifyData.js","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/createVerifyData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAG1C,MAAM,IAAI,GAAG,gBAAgB,CAAA;AAE7B,SAAS,MAAM,CAAC,EAAc,EAAE,EAAc;IAC5C,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,CAAA;IACjD,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;IACd,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAA;IACtB,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,KAAK,UAAU,a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E,CAAC,CAAA;QACtC,CAAC;QAED,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC7C,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CACtE,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CACxB;YACD,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;SACpE,CAAC,CAAA;QAEF,OAAO,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACnC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAWhE,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,KAAK,CAAA;IAC3B,gBAAgB,EAAE,kBAAkB,CAAA;CACrC;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,OAAO,cAAc,CAAA;IACrC,gBAAgB,EAAE,kBAAkB,CAAA;CACrC;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAQ1D;AAED,wBAAgB,uBAAuB,IAAI,oBAAoB,CAQ9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eddsa-jcs-2022/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EACL,kBAAkB,EAEnB,MAAM,uBAAuB,CAAA;AAG9B,MAAM,IAAI,GAAG,gBAAgB,CAAA;AAE7B,SAAS,mBAAmB;IAC1B,MAAM,IAAI,KAAK,CACb,kDAAkD;QAChD,iDAAiD,CACpD,CAAA;AACH,CAAC;AAkBD,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ;QACR,iBAAiB;QACjB,cAAc,EAAE,mBAAmB;QACnC,gBAAgB,EAAE,kBAAkB,CAAC,MAAM,CAAC;KAC7C,CAAA;AACH,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ;QACR,iBAAiB;QACjB,cAAc;QACd,gBAAgB,EAAE,kBAAkB,CAAC,QAAQ,CAAC;KAC/C,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Ed25519Signature2020, suiteContext } from './ed25519-signature-2020/index.js';
|
|
2
2
|
export { eddsaRdfc2022 } from './eddsa-rdfc-2022/index.js';
|
|
3
3
|
export { createSignCryptosuite, createVerifyCryptosuite } from './eddsa-jcs-2022/index.js';
|
|
4
|
+
export { EddsaJcs2022 } from './eddsa-jcs-2022/EddsaJcs2022.js';
|
|
4
5
|
export { createSigner, ensureSignerAlgorithm } from './core/createSigner.js';
|
|
5
6
|
export { createVerifier } from './core/createVerifier.js';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Ed25519Signature2020, suiteContext } from './ed25519-signature-2020/index.js';
|
|
2
2
|
export { eddsaRdfc2022 } from './eddsa-rdfc-2022/index.js';
|
|
3
3
|
export { createSignCryptosuite, createVerifyCryptosuite } from './eddsa-jcs-2022/index.js';
|
|
4
|
+
export { EddsaJcs2022 } from './eddsa-jcs-2022/EddsaJcs2022.js';
|
|
4
5
|
export { createSigner, ensureSignerAlgorithm } from './core/createSigner.js';
|
|
5
6
|
export { createVerifier } from './core/createVerifier.js';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/ed25519-signature",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Ed25519 Linked Data / Data Integrity signature suites (Ed25519Signature2020, eddsa-rdfc-2022, eddsa-jcs-2022) in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"clear": "rimraf dist/*",
|
|
39
39
|
"dev": "vite",
|
|
40
40
|
"fix": "eslint --fix src test && pnpm run format",
|
|
41
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
41
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.md\"",
|
|
42
42
|
"lint": "eslint src test",
|
|
43
43
|
"typecheck": "tsc -p tsconfig.dev.json --noEmit",
|
|
44
44
|
"prepare": "pnpm run build",
|
|
45
45
|
"rebuild": "pnpm run clear && pnpm run build",
|
|
46
|
-
"test": "pnpm run
|
|
46
|
+
"test": "pnpm run fix && pnpm run lint && pnpm run test-node && pnpm run test-browser",
|
|
47
47
|
"test-browser": "playwright test",
|
|
48
48
|
"test-node": "vitest run",
|
|
49
49
|
"test-coverage": "vitest run --coverage"
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"license": "BSD-3-Clause",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@interop/data-integrity-core": "^6.1.0",
|
|
59
|
-
"@interop/data-integrity-proof": "^3.1
|
|
60
|
-
"@interop/ed25519-verification-key": "^7.0.
|
|
59
|
+
"@interop/data-integrity-proof": "^3.2.1",
|
|
60
|
+
"@interop/ed25519-verification-key": "^7.0.1",
|
|
61
61
|
"@interop/jsonld": "^9.0.2",
|
|
62
62
|
"canonicalize": "^2.0.0",
|
|
63
63
|
"ed25519-signature-2020-context": "^1.1.0",
|
|
64
64
|
"rdf-canonize": "^5.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@interop/jsonld-signatures": "^11.6.
|
|
67
|
+
"@interop/jsonld-signatures": "^11.6.7"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@interop/jsonld-signatures": {
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@interop/security-document-loader": "^9.
|
|
75
|
+
"@interop/security-document-loader": "^9.2.1",
|
|
76
76
|
"@eslint/js": "^10.0.1",
|
|
77
|
-
"@interop/jsonld-signatures": "^11.6.
|
|
77
|
+
"@interop/jsonld-signatures": "^11.6.7",
|
|
78
78
|
"@playwright/test": "^1.60.0",
|
|
79
79
|
"@types/node": "^25.9.1",
|
|
80
80
|
"@vitest/coverage-v8": "^4.1.7",
|