@sphereon/ssi-sdk-ext.kms-local 0.29.0 → 0.34.1-feature.SSISDK.13.47

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk-ext.kms-local",
3
3
  "description": "Sphereon Local Key Management System with support for BLS/BBS+, RSA keys",
4
- "version": "0.29.0",
4
+ "version": "0.34.1-feature.SSISDK.13.47+70a95786",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -19,13 +19,13 @@
19
19
  }
20
20
  },
21
21
  "scripts": {
22
- "build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json && sphereon dev generate-plugin-schema",
23
- "generate-plugin-schema": "sphereon dev generate-plugin-schema"
22
+ "build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json && tsx ../../packages/dev/bin/sphereon.js dev generate-plugin-schema",
23
+ "generate-plugin-schema": "tsx ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
24
24
  },
25
25
  "dependencies": {
26
- "@sphereon/ssi-sdk-ext.did-utils": "0.29.0",
27
- "@sphereon/ssi-sdk-ext.key-utils": "0.29.0",
28
- "@sphereon/ssi-sdk-ext.x509-utils": "0.29.0",
26
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-feature.SSISDK.13.47+70a95786",
27
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.13.47+70a95786",
28
+ "@sphereon/ssi-sdk-ext.x509-utils": "0.34.1-feature.SSISDK.13.47+70a95786",
29
29
  "@trust/keyto": "2.0.0-alpha1",
30
30
  "@veramo/core": "4.2.0",
31
31
  "@veramo/key-manager": "4.2.0",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@sphereon/jsencrypt": "3.3.2-unstable.0",
39
- "@sphereon/ssi-sdk.dev": "0.33.1-next.73",
39
+ "@sphereon/ssi-sdk.dev": "0.34.1-feature.SSISDK.13.47+70a95786",
40
40
  "@types/elliptic": "6.4.14",
41
41
  "@veramo/cli": "4.2.0"
42
42
  },
@@ -58,5 +58,5 @@
58
58
  "kms",
59
59
  "Veramo"
60
60
  ],
61
- "gitHead": "7249b3507c3ec39c11e4108b0eb7fc8315fdc543"
61
+ "gitHead": "70a95786cf55decbd693ddefa1ad81ae11655f56"
62
62
  }
@@ -1,60 +0,0 @@
1
- import { AbstractPrivateKeyStore } from '@veramo/key-manager';
2
- import { IKey } from '@veramo/core';
3
- import { KeyManagementSystem } from '@veramo/kms-local';
4
- import { KeyMetadata } from '@veramo/core';
5
- import { ManagedKeyInfo } from '@veramo/core';
6
- import { MinimalImportableKey } from '@veramo/core';
7
- import { TKeyType } from '@veramo/core';
8
- import { X509Opts } from '@sphereon/ssi-sdk-ext.key-utils';
9
-
10
- export declare enum KeyType {
11
- Bls12381G2 = "Bls12381G2"
12
- }
13
-
14
- export declare interface ManagedKeyInfoArgs {
15
- alias?: string;
16
- type: TKeyType;
17
- privateKeyHex: string;
18
- publicKeyHex?: string;
19
- meta?: ManageKeyInfoMeta | undefined | null;
20
- }
21
-
22
- export declare interface ManageKeyInfoMeta extends KeyMetadata {
23
- x509?: X509Opts;
24
- [x: string]: any;
25
- }
26
-
27
- export declare class SphereonKeyManagementSystem extends KeyManagementSystem {
28
- private readonly privateKeyStore;
29
- constructor(keyStore: AbstractPrivateKeyStore);
30
- importKey(args: Omit<MinimalImportableKey, 'kms'> & {
31
- privateKeyPEM?: string;
32
- }): Promise<ManagedKeyInfo>;
33
- createKey({ type }: {
34
- type: TKeyType;
35
- }): Promise<ManagedKeyInfo>;
36
- sign({ keyRef, algorithm, data }: {
37
- keyRef: Pick<IKey, 'kid'>;
38
- algorithm?: string;
39
- data: Uint8Array;
40
- }): Promise<string>;
41
- verify({ publicKeyHex, type, algorithm, data, signature, }: {
42
- publicKeyHex: string;
43
- type: TKeyType;
44
- algorithm?: string;
45
- data: Uint8Array;
46
- signature: string;
47
- }): Promise<boolean>;
48
- private asSphereonManagedKeyInfo;
49
- /**
50
- * @returns a base64url encoded signature for the `RS256` alg
51
- */
52
- private signRSA;
53
- private verifyRSA;
54
- listKeys(): Promise<Array<ManagedKeyInfo>>;
55
- }
56
-
57
-
58
- export * from "@veramo/kms-local";
59
-
60
- export { }