@interop/ecdsa-multikey 2.1.0 → 2.2.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 +15 -0
- package/dist/index.d.ts +4 -4
- package/dist/translators.d.ts.map +1 -1
- package/dist/translators.js.map +1 -1
- package/dist/types.d.ts +5 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @interop/ecdsa-multikey ChangeLog
|
|
2
2
|
|
|
3
|
+
## 2.2.0 - 2026-06-08
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Use the all-caps JWK type names from `@interop/data-integrity-core`
|
|
8
|
+
(`IECPublicJWK`, `IECSecretJWK`, `IPublicJWK`, `ISecretJWK`) in place of the
|
|
9
|
+
now-deprecated PascalCase aliases.
|
|
10
|
+
- `KeyPairInterface` now extends `IKeyPairCore` from
|
|
11
|
+
`@interop/data-integrity-core`, sharing the common metadata fields
|
|
12
|
+
(`@context`, `id`, `type`, `controller`, `revoked`) instead of redeclaring
|
|
13
|
+
them. Require `@interop/data-integrity-core@^6.4.0` (for the widened
|
|
14
|
+
`IKeyPairCore['@context']`).
|
|
15
|
+
- Replace the local `JsonLdContext` type with the shared `ILDContext` from
|
|
16
|
+
`@interop/data-integrity-core`.
|
|
17
|
+
|
|
3
18
|
## 2.1.0 - 2026-06-08
|
|
4
19
|
|
|
5
20
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EcdsaCurve } from './constants.js';
|
|
2
2
|
import type { IKeyPair, IPublicKey } from '@interop/data-integrity-core';
|
|
3
|
-
import type { ExportedKeyPair,
|
|
4
|
-
export type { DeriveSecretOptions, ExportOptions, ExportedKeyPair,
|
|
3
|
+
import type { ExportedKeyPair, JWK, KeyPairInterface } from './types.js';
|
|
4
|
+
export type { DeriveSecretOptions, ExportOptions, ExportedKeyPair, JWK, KeyPairInterface } from './types.js';
|
|
5
5
|
export { DEFAULT_ECDSA_CURVE, ECDSA_CURVE, ECDSA_CURVE_INFO, ECDSA_MULTIBASE_HEADERS } from './constants.js';
|
|
6
6
|
export type { EcdsaCurve, EcdsaCurveInfo } from './constants.js';
|
|
7
7
|
export declare function generate({ id, controller, curve, keyAgreement }?: {
|
|
@@ -14,7 +14,7 @@ export declare function from(key: IKeyPair | IPublicKey | ExportedKeyPair, optio
|
|
|
14
14
|
keyAgreement?: boolean;
|
|
15
15
|
} | boolean): Promise<KeyPairInterface>;
|
|
16
16
|
export declare function fromJwk({ jwk, secretKey, id, controller }?: {
|
|
17
|
-
jwk:
|
|
17
|
+
jwk: JWK;
|
|
18
18
|
secretKey?: boolean;
|
|
19
19
|
id?: string;
|
|
20
20
|
controller?: string;
|
|
@@ -23,7 +23,7 @@ export declare function fromJwk({ jwk, secretKey, id, controller }?: {
|
|
|
23
23
|
export declare function toJwk({ keyPair, secretKey }?: {
|
|
24
24
|
keyPair: any;
|
|
25
25
|
secretKey?: boolean;
|
|
26
|
-
}): Promise<
|
|
26
|
+
}): Promise<JWK>;
|
|
27
27
|
export declare function fromRaw({ curve, secretKey, publicKey, keyAgreement }?: {
|
|
28
28
|
curve: string;
|
|
29
29
|
secretKey?: Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translators.d.ts","sourceRoot":"","sources":["../src/translators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translators.d.ts","sourceRoot":"","sources":["../src/translators.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAU7C,wBAAsB,UAAU,CAAC,EAC/B,OAAO,EACR,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;CACrB,GAAG,OAAO,CAAC,WAAW,CAAC,CAyBvB"}
|
package/dist/translators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translators.js","sourceRoot":"","sources":["../src/translators.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACxB,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"translators.js","sourceRoot":"","sources":["../src/translators.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACxB,MAAM,gBAAgB,CAAA;AAIvB,oBAAoB;AACpB,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS;IACxC,4BAA4B;IAC5B,4BAA4B;IAC5B,4BAA4B;CAC7B,CAAC,CAAA;AAEF,uCAAuC;AACvC,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAC/B,OAAO,EAGR;IACC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAc,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,SAAS,CAAC,yBAAyB,OAAO,CAAC,IAAI,IAAI,CAAC,CAAA;IAChE,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,UAAU,CAAC,GAAG,+BAA+B,CAAA;IACvD,CAAC;IACD,IACE,CAAC,gBAAgB,CAAC;QAChB,QAAQ,EAAE,OAAO;QACjB,UAAU,EAAE,+BAA+B;KAC5C,CAAC,EACF,CAAC;QACD,MAAM,IAAI,SAAS,CAAC,0BAA0B,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;IACxE,CAAC;IAED,OAAO;QACL,UAAU,EAAE,uBAAuB;QACnC,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;QAC9C,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;KAC/C,CAAA;AACH,CAAC;AAED,sDAAsD;AACtD,SAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,UAAU,EAIX;IACC,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;IACpC,OAAO,CACL,OAAO,KAAK,UAAU;QACtB,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CACzD,CAAA;AACH,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { IECPublicJWK, IECSecretJWK, IKeyPairCore, ILDContext, IPublicJWK, ISecretJWK, ISigner, IVerifier } from '@interop/data-integrity-core';
|
|
5
5
|
export type WebCryptoKey = CryptoKey;
|
|
6
|
-
export type
|
|
7
|
-
export type JsonLdContext = string | Array<string | Record<string, unknown>>;
|
|
6
|
+
export type JWK = IECPublicJWK | IECSecretJWK;
|
|
8
7
|
export interface KeyDocument {
|
|
9
|
-
'@context'?:
|
|
8
|
+
'@context'?: ILDContext;
|
|
10
9
|
id?: string;
|
|
11
10
|
type?: string;
|
|
12
11
|
controller?: string;
|
|
13
12
|
revoked?: string;
|
|
14
13
|
publicKeyMultibase?: string;
|
|
15
14
|
secretKeyMultibase?: string;
|
|
16
|
-
publicKeyJwk?:
|
|
15
|
+
publicKeyJwk?: IPublicJWK | ISecretJWK;
|
|
17
16
|
}
|
|
18
17
|
export interface ExportOptions {
|
|
19
18
|
publicKey?: boolean;
|
|
@@ -29,11 +28,7 @@ export interface DeriveSecretOptions {
|
|
|
29
28
|
publicKey?: KeyPairInterface;
|
|
30
29
|
remotePublicKey?: KeyPairInterface;
|
|
31
30
|
}
|
|
32
|
-
export interface KeyPairInterface {
|
|
33
|
-
'@context'?: JsonLdContext;
|
|
34
|
-
id?: string;
|
|
35
|
-
controller?: string;
|
|
36
|
-
type?: string;
|
|
31
|
+
export interface KeyPairInterface extends IKeyPairCore {
|
|
37
32
|
publicKey?: WebCryptoKey;
|
|
38
33
|
secretKey?: WebCryptoKey;
|
|
39
34
|
publicKeyMultibase?: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAKpC,MAAM,MAAM,GAAG,GAAG,YAAY,GAAG,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAKpC,MAAM,MAAM,GAAG,GAAG,YAAY,GAAG,YAAY,CAAA;AAO7C,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAK3B,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;CACvC;AAGD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAGD,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,UAAU,CAAA;CACvB,CAAA;AAGD,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,eAAe,CAAC,EAAE,gBAAgB,CAAA;CACnC;AAKD,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;IACzD,MAAM,IAAI,OAAO,CAAA;IACjB,QAAQ,IAAI,SAAS,CAAA;IACrB,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;CACjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/ecdsa-multikey",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "TypeScript/JavaScript library for generating and working with EcdsaMultikey key pairs.",
|
|
5
5
|
"homepage": "https://github.com/interop-alliance/ecdsa-multikey",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@interop/data-integrity-core": "^6.
|
|
33
|
+
"@interop/data-integrity-core": "^6.4.0",
|
|
34
34
|
"@scure/base": "^2.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|