@interop/ed25519-signature 7.0.1 → 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 +11 -0
- 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/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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 7.0.1 - 2026-06-02
|
|
4
15
|
|
|
5
16
|
### 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
|
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,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
|
|
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,
|