@interop/ed25519-signature 6.0.0 → 7.0.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 +16 -1
- package/README.md +2 -2
- package/dist/core/createSigner.d.ts +8 -11
- package/dist/core/createSigner.d.ts.map +1 -1
- package/dist/core/createSigner.js +4 -3
- package/dist/core/createSigner.js.map +1 -1
- package/dist/core/createVerifier.d.ts +3 -8
- package/dist/core/createVerifier.d.ts.map +1 -1
- package/dist/core/createVerifier.js +4 -4
- package/dist/core/createVerifier.js.map +1 -1
- package/dist/ed25519-signature-2020/cryptosuite.d.ts +2 -2
- package/dist/ed25519-signature-2020/cryptosuite.d.ts.map +1 -1
- package/dist/ed25519-signature-2020/cryptosuite.js +3 -3
- package/dist/ed25519-signature-2020/cryptosuite.js.map +1 -1
- package/dist/ed25519-signature-2020/index.d.ts +5 -7
- package/dist/ed25519-signature-2020/index.d.ts.map +1 -1
- package/dist/ed25519-signature-2020/index.js +3 -3
- package/dist/ed25519-signature-2020/index.js.map +1 -1
- package/dist/eddsa-jcs-2022/createVerifyData.js.map +1 -1
- package/dist/eddsa-jcs-2022/index.d.ts +3 -3
- package/dist/eddsa-jcs-2022/index.d.ts.map +1 -1
- package/dist/eddsa-rdfc-2022/index.d.ts +2 -8
- package/dist/eddsa-rdfc-2022/index.d.ts.map +1 -1
- package/dist/eddsa-rdfc-2022/index.js.map +1 -1
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# @interop/ed25519-signature Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 7.0.0 - 2026-06-01
|
|
4
|
+
### Changed
|
|
5
|
+
- **BREAKING:** Swap dependencies onto the renamed, now-typed Interop forks:
|
|
6
|
+
`@digitalbazaar/data-integrity` to `@interop/data-integrity-proof@^3.1.0`
|
|
7
|
+
(`DataIntegrityProof`, `Cryptosuite`), and `@digitalcredentials/ssi` to
|
|
8
|
+
`@interop/data-integrity-core@^6.1.0` (`ISigner`, `IVerifier`,
|
|
9
|
+
`IVerificationMethod`, `IProofDescription`). Require
|
|
10
|
+
`@interop/ed25519-verification-key@^7.0.0`.
|
|
11
|
+
- Because `@interop/data-integrity-proof` ships its own types, the
|
|
12
|
+
`@digitalbazaar/data-integrity` ambient declaration is removed from
|
|
13
|
+
`src/vendor.d.ts`; the local `ProofLike` / `CryptosuiteLike` types are
|
|
14
|
+
replaced by upstream `IProofDescription` / `Cryptosuite`. The name-less
|
|
15
|
+
`Ed25519Signature2020` cryptosuite types without a cast now that
|
|
16
|
+
`Cryptosuite.name` is optional upstream.
|
|
17
|
+
|
|
18
|
+
## 6.0.0-6.0.1 - 2026-05-27
|
|
4
19
|
### Changed
|
|
5
20
|
- **BREAKING: Renamed** from `@digitalbazaar/ed25519-signature-2020` to
|
|
6
21
|
`@interop/ed25519-signature` (rename-in-place; preserves git history and the
|
package/README.md
CHANGED
|
@@ -153,7 +153,7 @@ side, wrap the key with `createSigner` (see
|
|
|
153
153
|
[below](#the-createsigner-requirement)).
|
|
154
154
|
|
|
155
155
|
```js
|
|
156
|
-
import { DataIntegrityProof } from '@
|
|
156
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof'
|
|
157
157
|
import { eddsaRdfc2022 } from '@interop/ed25519-signature/eddsa-rdfc-2022'
|
|
158
158
|
import { createSigner } from '@interop/ed25519-signature'
|
|
159
159
|
|
|
@@ -178,7 +178,7 @@ Split sign / verify factories (not a single object). The sign cryptosuite's
|
|
|
178
178
|
`createVerifier` throws, as a sign-only guard.
|
|
179
179
|
|
|
180
180
|
```js
|
|
181
|
-
import { DataIntegrityProof } from '@
|
|
181
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof'
|
|
182
182
|
import { createSignCryptosuite, createVerifyCryptosuite } from '@interop/ed25519-signature/eddsa-jcs-2022'
|
|
183
183
|
import { createSigner } from '@interop/ed25519-signature'
|
|
184
184
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type SignerSource = Omit<SignerLike, 'algorithm'> & {
|
|
3
|
-
algorithm?: string;
|
|
4
|
-
};
|
|
1
|
+
import type { ISigner } from '@interop/data-integrity-core';
|
|
5
2
|
/**
|
|
6
3
|
* Produces a signer that carries `algorithm`, which `DataIntegrityProof`
|
|
7
4
|
* requires (it asserts `signer.algorithm === requiredAlgorithm` at
|
|
8
|
-
* construction). `@interop/ed25519-verification-key`
|
|
9
|
-
* `algorithm
|
|
10
|
-
*
|
|
5
|
+
* construction). `@interop/ed25519-verification-key` >= 6.2.0 already sets
|
|
6
|
+
* `algorithm` on the returned signer, so this is a no-op in the normal case.
|
|
7
|
+
* Kept as a safety net for `ISigner` sources whose `algorithm` is optional:
|
|
8
|
+
* idempotent -- an `algorithm` already present is preserved.
|
|
11
9
|
*/
|
|
12
10
|
export declare function createSigner(keyPair: {
|
|
13
|
-
signer():
|
|
14
|
-
}):
|
|
15
|
-
export declare function ensureSignerAlgorithm(signer:
|
|
16
|
-
export {};
|
|
11
|
+
signer(): ISigner;
|
|
12
|
+
}): ISigner;
|
|
13
|
+
export declare function ensureSignerAlgorithm(signer: ISigner): ISigner;
|
|
17
14
|
//# sourceMappingURL=createSigner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSigner.d.ts","sourceRoot":"","sources":["../../src/core/createSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createSigner.d.ts","sourceRoot":"","sources":["../../src/core/createSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE;IAAE,MAAM,IAAI,OAAO,CAAA;CAAE,GAAG,OAAO,CAEpE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAE9D"}
|
|
@@ -2,9 +2,10 @@ import { requiredAlgorithm } from './requiredAlgorithm.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Produces a signer that carries `algorithm`, which `DataIntegrityProof`
|
|
4
4
|
* requires (it asserts `signer.algorithm === requiredAlgorithm` at
|
|
5
|
-
* construction). `@interop/ed25519-verification-key`
|
|
6
|
-
* `algorithm
|
|
7
|
-
*
|
|
5
|
+
* construction). `@interop/ed25519-verification-key` >= 6.2.0 already sets
|
|
6
|
+
* `algorithm` on the returned signer, so this is a no-op in the normal case.
|
|
7
|
+
* Kept as a safety net for `ISigner` sources whose `algorithm` is optional:
|
|
8
|
+
* idempotent -- an `algorithm` already present is preserved.
|
|
8
9
|
*/
|
|
9
10
|
export function createSigner(keyPair) {
|
|
10
11
|
return ensureSignerAlgorithm(keyPair.signer());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSigner.js","sourceRoot":"","sources":["../../src/core/createSigner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"createSigner.js","sourceRoot":"","sources":["../../src/core/createSigner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,OAA8B;IACzD,OAAO,qBAAqB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,OAAO,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,iBAAiB,EAAE,CAAA;AACxE,CAAC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import type { IVerifier, IVerificationMethod } from '@interop/data-integrity-core';
|
|
1
2
|
export declare function createVerifier({ verificationMethod }: {
|
|
2
|
-
verificationMethod:
|
|
3
|
-
}): Promise<
|
|
4
|
-
verify(opts: {
|
|
5
|
-
data: Uint8Array;
|
|
6
|
-
signature: Uint8Array;
|
|
7
|
-
}): Promise<boolean>;
|
|
8
|
-
algorithm: string;
|
|
9
|
-
}>;
|
|
3
|
+
verificationMethod: IVerificationMethod;
|
|
4
|
+
}): Promise<IVerifier>;
|
|
10
5
|
//# sourceMappingURL=createVerifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVerifier.d.ts","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createVerifier.d.ts","sourceRoot":"","sources":["../../src/core/createVerifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAIlF,wBAAsB,cAAc,CAAC,EACnC,kBAAkB,EACnB,EAAE;IACD,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,OAAO,CAAC,SAAS,CAAC,CAUrB"}
|
|
@@ -5,10 +5,10 @@ export async function createVerifier({ verificationMethod }) {
|
|
|
5
5
|
// Ed25519VerificationKey2018, or JsonWebKey2020
|
|
6
6
|
const key = await Ed25519VerificationKey.from(verificationMethod);
|
|
7
7
|
const verifier = key.verifier();
|
|
8
|
-
// DataIntegrityProof checks verifier.algorithm against requiredAlgorithm
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
8
|
+
// DataIntegrityProof checks verifier.algorithm against requiredAlgorithm.
|
|
9
|
+
// `@interop/ed25519-verification-key` >= 6.2.0 already sets `algorithm`, so
|
|
10
|
+
// this is a no-op in the normal case; kept as an idempotent safety net for
|
|
11
|
+
// IVerifier sources whose `algorithm` is optional.
|
|
12
12
|
return { ...verifier, algorithm: verifier.algorithm ?? requiredAlgorithm };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=createVerifier.js.map
|
|
@@ -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":"AACA,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,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const ed25519Sig2020Cryptosuite:
|
|
1
|
+
import type { Cryptosuite } from '@interop/data-integrity-proof';
|
|
2
|
+
export declare const ed25519Sig2020Cryptosuite: Cryptosuite;
|
|
3
3
|
//# sourceMappingURL=cryptosuite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptosuite.d.ts","sourceRoot":"","sources":["../../src/ed25519-signature-2020/cryptosuite.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"cryptosuite.d.ts","sourceRoot":"","sources":["../../src/ed25519-signature-2020/cryptosuite.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAKhE,eAAO,MAAM,yBAAyB,EAAE,WAIvC,CAAA"}
|
|
@@ -3,10 +3,10 @@ import { createVerifier } from '../core/createVerifier.js';
|
|
|
3
3
|
import { requiredAlgorithm } from '../core/requiredAlgorithm.js';
|
|
4
4
|
// Internal cryptosuite for Ed25519Signature2020 -- deliberately no `name`
|
|
5
5
|
// so this.cryptosuite stays undefined on the proof (2020 proofs carry no
|
|
6
|
-
// cryptosuite field).
|
|
6
|
+
// cryptosuite field). `Cryptosuite.name` is optional, so no cast is needed.
|
|
7
7
|
export const ed25519Sig2020Cryptosuite = {
|
|
8
|
-
canonize
|
|
9
|
-
createVerifier
|
|
8
|
+
canonize,
|
|
9
|
+
createVerifier,
|
|
10
10
|
requiredAlgorithm
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=cryptosuite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptosuite.js","sourceRoot":"","sources":["../../src/ed25519-signature-2020/cryptosuite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGhE,0EAA0E;AAC1E,yEAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"cryptosuite.js","sourceRoot":"","sources":["../../src/ed25519-signature-2020/cryptosuite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGhE,0EAA0E;AAC1E,yEAAyE;AACzE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,yBAAyB,GAAgB;IACpD,QAAQ;IACR,cAAc;IACd,iBAAiB;CAClB,CAAA"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { DataIntegrityProof } from '@
|
|
2
|
-
import type {
|
|
1
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof';
|
|
2
|
+
import type { ISigner, IProofDescription } from '@interop/data-integrity-core';
|
|
3
3
|
import suiteContext2020 from 'ed25519-signature-2020-context';
|
|
4
4
|
export declare class Ed25519Signature2020 extends DataIntegrityProof {
|
|
5
5
|
static CONTEXT_URL: string;
|
|
6
6
|
static CONTEXT: unknown;
|
|
7
7
|
constructor({ signer, date }?: {
|
|
8
|
-
signer?:
|
|
9
|
-
algorithm?: string;
|
|
10
|
-
};
|
|
8
|
+
signer?: ISigner;
|
|
11
9
|
date?: string | Date | number | null;
|
|
12
10
|
});
|
|
13
11
|
updateProof({ proof }: {
|
|
14
|
-
proof:
|
|
12
|
+
proof: IProofDescription;
|
|
15
13
|
[key: string]: unknown;
|
|
16
|
-
}): Promise<
|
|
14
|
+
}): Promise<IProofDescription>;
|
|
17
15
|
}
|
|
18
16
|
export { suiteContext2020 as suiteContext };
|
|
19
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,
|
|
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;IAgBS,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataIntegrityProof } from '@
|
|
1
|
+
import { DataIntegrityProof } from '@interop/data-integrity-proof';
|
|
2
2
|
import { ed25519Sig2020Cryptosuite } from './cryptosuite.js';
|
|
3
3
|
import { ensureSignerAlgorithm } from '../core/createSigner.js';
|
|
4
4
|
import suiteContext2020 from 'ed25519-signature-2020-context';
|
|
@@ -9,8 +9,8 @@ export class Ed25519Signature2020 extends DataIntegrityProof {
|
|
|
9
9
|
constructor({ signer, date } = {}) {
|
|
10
10
|
// Cryptosuite has no `name`, so this.cryptosuite stays undefined --
|
|
11
11
|
// matching the absent cryptosuite field on legacy 2020 proofs.
|
|
12
|
-
// DataIntegrityProof validates signer.algorithm; ensure it is set
|
|
13
|
-
//
|
|
12
|
+
// DataIntegrityProof validates signer.algorithm; ensure it is set for
|
|
13
|
+
// ISigner sources that leave `algorithm` unset.
|
|
14
14
|
const wrappedSigner = signer
|
|
15
15
|
? ensureSignerAlgorithm(signer)
|
|
16
16
|
: undefined;
|
|
@@ -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,gC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ClC,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"}
|
|
@@ -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,aAAa,CAC1B,
|
|
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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O,CAAC,CAAA;IACnC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { canonize } from './canonize.js';
|
|
2
2
|
import { createVerifier } from '../core/createVerifier.js';
|
|
3
3
|
import { type CreateVerifyDataFn } from './createVerifyData.js';
|
|
4
|
-
import type {
|
|
5
|
-
export interface JcsSignCryptosuite extends
|
|
4
|
+
import type { Cryptosuite } from '@interop/data-integrity-proof';
|
|
5
|
+
export interface JcsSignCryptosuite extends Cryptosuite {
|
|
6
6
|
name: string;
|
|
7
7
|
canonize: typeof canonize;
|
|
8
8
|
requiredAlgorithm: string;
|
|
9
9
|
createVerifier: () => never;
|
|
10
10
|
createVerifyData: CreateVerifyDataFn;
|
|
11
11
|
}
|
|
12
|
-
export interface JcsVerifyCryptosuite extends
|
|
12
|
+
export interface JcsVerifyCryptosuite extends Cryptosuite {
|
|
13
13
|
name: string;
|
|
14
14
|
canonize: typeof canonize;
|
|
15
15
|
requiredAlgorithm: string;
|
|
@@ -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,EAAsB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACnF,OAAO,KAAK,EAAE,
|
|
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,EAAsB,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AACnF,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,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const eddsaRdfc2022: {
|
|
4
|
-
canonize: typeof canonize;
|
|
5
|
-
createVerifier: typeof createVerifier;
|
|
6
|
-
name: string;
|
|
7
|
-
requiredAlgorithm: string;
|
|
8
|
-
};
|
|
1
|
+
import type { Cryptosuite } from '@interop/data-integrity-proof';
|
|
2
|
+
export declare const eddsaRdfc2022: Cryptosuite;
|
|
9
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eddsa-rdfc-2022/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eddsa-rdfc-2022/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,eAAO,MAAM,aAAa,EAAE,WAK3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eddsa-rdfc-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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eddsa-rdfc-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;AAGhE,MAAM,CAAC,MAAM,aAAa,GAAgB;IACxC,QAAQ;IACR,cAAc;IACd,IAAI,EAAE,iBAAiB;IACvB,iBAAiB;CAClB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/ed25519-signature",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.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,
|
|
@@ -43,7 +43,7 @@
|
|
|
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 lint && pnpm run typecheck && pnpm run test-node",
|
|
46
|
+
"test": "pnpm run lint && pnpm run typecheck && 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"
|
|
@@ -55,8 +55,9 @@
|
|
|
55
55
|
},
|
|
56
56
|
"license": "BSD-3-Clause",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@interop/
|
|
58
|
+
"@interop/data-integrity-core": "^6.1.0",
|
|
59
|
+
"@interop/data-integrity-proof": "^3.1.0",
|
|
60
|
+
"@interop/ed25519-verification-key": "^7.0.0",
|
|
60
61
|
"@interop/jsonld": "^9.0.2",
|
|
61
62
|
"canonicalize": "^2.0.0",
|
|
62
63
|
"ed25519-signature-2020-context": "^1.1.0",
|
|
@@ -88,7 +89,8 @@
|
|
|
88
89
|
"vitest": "^4.1.7"
|
|
89
90
|
},
|
|
90
91
|
"publishConfig": {
|
|
91
|
-
"access": "public"
|
|
92
|
+
"access": "public",
|
|
93
|
+
"provenance": true
|
|
92
94
|
},
|
|
93
95
|
"packageManager": "pnpm@11.3.0",
|
|
94
96
|
"engines": {
|