@sphereon/ssi-sdk.kms-rest 0.34.1-feature.SSISDK.70.integrate.digidentity.311 → 0.34.1-feature.SSISDK.82.and.SSISDK.70.345
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/README.md +4 -4
- package/package.json +6 -6
- package/src/types/index.ts +3 -3
package/README.md
CHANGED
|
@@ -45,13 +45,13 @@ const key = await kms.createKey({ type: 'Secp256r1' })
|
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
const privateKeyHex = '7dd923e40f4615ac496119f7e793cc2899e99b64b88ca8603db986700089532b'
|
|
48
|
-
const key = await kms.importKey({ kid: 'kid', privateKeyHex, type: 'Secp256r1'})
|
|
48
|
+
const key = await kms.importKey({ kid: 'kid', privateKeyHex, type: 'Secp256r1' })
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Delete key
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
|
-
const result = await kms.deleteKey({ kid: '00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE'})
|
|
54
|
+
const result = await kms.deleteKey({ kid: '00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE' })
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### List keys
|
|
@@ -65,7 +65,7 @@ const keys = await kms.listKeys()
|
|
|
65
65
|
```typescript
|
|
66
66
|
const signature = await kms.sign({
|
|
67
67
|
keyRef: { kid: '00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE' },
|
|
68
|
-
data: u8a.fromString('input', 'base64')
|
|
68
|
+
data: u8a.fromString('input', 'base64'),
|
|
69
69
|
})
|
|
70
70
|
```
|
|
71
71
|
|
|
@@ -75,7 +75,7 @@ const signature = await kms.sign({
|
|
|
75
75
|
const verification = await kms.verify({
|
|
76
76
|
keyRef: { kid: '00-qTBov6GxjPSuMNxnk876cMP0JKjbwl4ZyN_sY2tE' },
|
|
77
77
|
data: u8a.fromString('input', 'base64'),
|
|
78
|
-
signature:
|
|
78
|
+
signature: 'jSgVmRcmWwxHtAohgYHUNk9uKdaRj4gi04pjdxgwRaQyXJJJ6bMH50VyWMFvN9a6ZKjpdOahE2nJ+BWjr85nhQ==',
|
|
79
79
|
})
|
|
80
80
|
```
|
|
81
81
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.kms-rest",
|
|
3
3
|
"description": "Sphereon SSI-SDK plugin for REST Key Management System.",
|
|
4
|
-
"version": "0.34.1-feature.SSISDK.
|
|
4
|
+
"version": "0.34.1-feature.SSISDK.82.and.SSISDK.70.345+e5abbf1a",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.
|
|
26
|
-
"@sphereon/ssi-sdk-ext.x509-utils": "0.34.1-feature.SSISDK.
|
|
27
|
-
"@sphereon/ssi-sdk.kms-rest-client": "0.34.1-feature.SSISDK.
|
|
28
|
-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.
|
|
25
|
+
"@sphereon/ssi-sdk-ext.key-utils": "0.34.1-feature.SSISDK.82.and.SSISDK.70.345+e5abbf1a",
|
|
26
|
+
"@sphereon/ssi-sdk-ext.x509-utils": "0.34.1-feature.SSISDK.82.and.SSISDK.70.345+e5abbf1a",
|
|
27
|
+
"@sphereon/ssi-sdk.kms-rest-client": "0.34.1-feature.SSISDK.82.and.SSISDK.70.345+e5abbf1a",
|
|
28
|
+
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.82.and.SSISDK.70.345+e5abbf1a",
|
|
29
29
|
"@veramo/core": "4.2.0",
|
|
30
30
|
"@veramo/key-manager": "4.2.0",
|
|
31
31
|
"elliptic": "^6.5.4",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"key-management",
|
|
55
55
|
"Veramo"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e5abbf1a0404fbc2aeb350a248183f70598ffbc0"
|
|
58
58
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type SignArgs = {
|
|
|
21
21
|
export type VerifyArgs = {
|
|
22
22
|
keyRef: Pick<IKey, 'kid'>
|
|
23
23
|
data: Uint8Array
|
|
24
|
-
signature: string
|
|
24
|
+
signature: string
|
|
25
25
|
[x: string]: any
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -44,7 +44,7 @@ export type MapImportKeyArgs = {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type MappedImportKey = {
|
|
47
|
-
key: StoreKey
|
|
48
|
-
kid: string
|
|
47
|
+
key: StoreKey
|
|
48
|
+
kid: string
|
|
49
49
|
publicKeyJwk: JWK
|
|
50
50
|
}
|