@interop/ed25519-signature 7.0.1 → 7.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @interop/ed25519-signature Changelog
2
2
 
3
+ ## 7.1.1 - 2026-06-09
4
+
5
+ ### Changed
6
+
7
+ - Update to latest deps (`@interop/data-integrity-core@7.0.0` etc).
8
+
9
+ ## 7.1.0 - 2026-06-07
10
+
11
+ ### Added
12
+
13
+ - Export `EddsaJcs2022`, a ready-to-instantiate signing suite class for the
14
+ `eddsa-jcs-2022` cryptosuite. It bakes in `createSignCryptosuite()` and
15
+ exposes the same `new SuiteClass({ signer, date })` constructor contract as
16
+ `Ed25519Signature2020`, so consumers that instantiate a suite by class (e.g.
17
+ `@interop/ezcap`'s `ZcapClient`) can select `eddsa-jcs-2022`. Use
18
+ `createVerifyCryptosuite()` for the verification side.
19
+
3
20
  ## 7.0.1 - 2026-06-02
4
21
 
5
22
  ### Changed
@@ -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"}
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
@@ -1 +1 @@
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,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
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,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,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA"}
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.0.1",
3
+ "version": "7.1.1",
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,
@@ -55,16 +55,16 @@
55
55
  },
56
56
  "license": "BSD-3-Clause",
57
57
  "dependencies": {
58
- "@interop/data-integrity-core": "^6.1.0",
59
- "@interop/data-integrity-proof": "^3.2.1",
60
- "@interop/ed25519-verification-key": "^7.0.1",
58
+ "@interop/data-integrity-core": "^7.0.0",
59
+ "@interop/data-integrity-proof": "^3.3.1",
60
+ "@interop/ed25519-verification-key": "^8.0.0",
61
61
  "@interop/jsonld": "^9.0.2",
62
- "canonicalize": "^2.0.0",
62
+ "canonicalize": "^3.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.7"
67
+ "@interop/jsonld-signatures": "^11.7.1"
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.2.1",
76
75
  "@eslint/js": "^10.0.1",
77
- "@interop/jsonld-signatures": "^11.6.7",
76
+ "@interop/jsonld-signatures": "^11.7.1",
77
+ "@interop/security-document-loader": "^9.2.3",
78
78
  "@playwright/test": "^1.60.0",
79
79
  "@types/node": "^25.9.1",
80
80
  "@vitest/coverage-v8": "^4.1.7",
@@ -92,7 +92,7 @@
92
92
  "access": "public",
93
93
  "provenance": true
94
94
  },
95
- "packageManager": "pnpm@11.3.0",
95
+ "packageManager": "pnpm@11.5.2",
96
96
  "engines": {
97
97
  "node": ">=24.0"
98
98
  }