@cheqd/did-provider-cheqd 4.1.1 → 4.1.2-develop.2
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 +1 -1
- package/build/cjs/did-manager/cheqd-did-provider.js +7 -7
- package/build/cjs/did-manager/cheqd-did-provider.js.map +1 -1
- package/build/cjs/did-manager/cheqd-did-resolver.js +2 -2
- package/build/cjs/did-manager/cheqd-did-resolver.js.map +1 -1
- package/build/cjs/did-manager/resolver.js +3 -3
- package/build/cjs/did-manager/resolver.js.map +1 -1
- package/build/cjs/utils/helpers.d.ts +0 -1
- package/build/cjs/utils/helpers.d.ts.map +1 -1
- package/build/cjs/utils/helpers.js +14 -15
- package/build/cjs/utils/helpers.js.map +1 -1
- package/build/esm/did-manager/cheqd-did-provider.js +4 -4
- package/build/esm/did-manager/cheqd-did-provider.js.map +1 -1
- package/build/esm/utils/helpers.d.ts +0 -1
- package/build/esm/utils/helpers.d.ts.map +1 -1
- package/build/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/utils/helpers.d.ts +0 -1
- package/build/types/utils/helpers.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/did-manager/cheqd-did-provider.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAA8B,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAErF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE3D,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,G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AAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAQjE;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAWjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/did-provider-cheqd",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2-develop.2",
|
|
4
4
|
"description": "Veramo SDK plugin for the did:cheqd DID method",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
@@ -94,53 +94,53 @@
|
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@cheqd/sdk": "^4.0.
|
|
98
|
-
"@cheqd/ts-proto": "^3.4.
|
|
99
|
-
"@cosmjs/amino": "^0.32.
|
|
100
|
-
"@cosmjs/crypto": "^0.32.
|
|
101
|
-
"@cosmjs/proto-signing": "^0.32.
|
|
102
|
-
"@cosmjs/stargate": "^0.32.
|
|
103
|
-
"@cosmjs/utils": "^0.32.
|
|
104
|
-
"@digitalbazaar/vc-status-list": "^
|
|
97
|
+
"@cheqd/sdk": "^4.0.3",
|
|
98
|
+
"@cheqd/ts-proto": "^3.4.4",
|
|
99
|
+
"@cosmjs/amino": "^0.32.4",
|
|
100
|
+
"@cosmjs/crypto": "^0.32.4",
|
|
101
|
+
"@cosmjs/proto-signing": "^0.32.4",
|
|
102
|
+
"@cosmjs/stargate": "^0.32.4",
|
|
103
|
+
"@cosmjs/utils": "^0.32.4",
|
|
104
|
+
"@digitalbazaar/vc-status-list": "^8.0.0",
|
|
105
105
|
"@lit-protocol/lit-node-client": "^3.1.1",
|
|
106
106
|
"@lit-protocol/lit-node-client-v2": "npm:@lit-protocol/lit-node-client@2.2.63",
|
|
107
107
|
"@lit-protocol/encryption-v2": "npm:@lit-protocol/encryption@2.2.63",
|
|
108
|
-
"@veramo/core": "^
|
|
109
|
-
"@veramo/did-manager": "^
|
|
110
|
-
"@veramo/did-provider-key": "^
|
|
111
|
-
"@veramo/key-manager": "^
|
|
112
|
-
"@veramo/utils": "^
|
|
113
|
-
"debug": "^4.3.
|
|
114
|
-
"did-jwt": "^
|
|
108
|
+
"@veramo/core": "^6.0.0",
|
|
109
|
+
"@veramo/did-manager": "^6.0.0",
|
|
110
|
+
"@veramo/did-provider-key": "^6.0.0",
|
|
111
|
+
"@veramo/key-manager": "^6.0.0",
|
|
112
|
+
"@veramo/utils": "^6.0.0",
|
|
113
|
+
"debug": "^4.3.6",
|
|
114
|
+
"did-jwt": "^8.0.4",
|
|
115
115
|
"did-resolver": "^4.1.0",
|
|
116
116
|
"generate-password": "^1.7.1",
|
|
117
|
-
"uint8arrays": "^5.0
|
|
118
|
-
"uuid": "^
|
|
117
|
+
"uint8arrays": "^5.1.0",
|
|
118
|
+
"uuid": "^10.0.0"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@lit-protocol/types": "^3.0.27",
|
|
122
122
|
"@lit-protocol/types-v2": "npm:@lit-protocol/types@^2.2.63",
|
|
123
123
|
"@semantic-release/changelog": "^6.0.3",
|
|
124
|
-
"@semantic-release/commit-analyzer": "^
|
|
124
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
125
125
|
"@semantic-release/git": "^10.0.1",
|
|
126
|
-
"@semantic-release/github": "^
|
|
127
|
-
"@semantic-release/npm": "^
|
|
128
|
-
"@semantic-release/release-notes-generator": "^
|
|
126
|
+
"@semantic-release/github": "^10.1.6",
|
|
127
|
+
"@semantic-release/npm": "^12.0.1",
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
129
129
|
"@types/debug": "^4.1.12",
|
|
130
130
|
"@types/jest": "^29.5.12",
|
|
131
|
-
"
|
|
132
|
-
"@
|
|
133
|
-
"@typescript-eslint/
|
|
134
|
-
"
|
|
131
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
132
|
+
"@types/uuid": "^10.0.0",
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
134
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
135
135
|
"eslint": "^8.57.0",
|
|
136
136
|
"eslint-config-prettier": "^9.1.0",
|
|
137
137
|
"eslint-config-typescript": "^3.0.0",
|
|
138
138
|
"jest": "^29.7.0",
|
|
139
139
|
"long": "^4.0.0",
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"ts-jest": "^29.
|
|
143
|
-
"typescript": "^5.4
|
|
140
|
+
"semantic-release": "^24.1.0",
|
|
141
|
+
"prettier": "^3.3.3",
|
|
142
|
+
"ts-jest": "^29.2.4",
|
|
143
|
+
"typescript": "^5.5.4"
|
|
144
144
|
},
|
|
145
145
|
"publishConfig": {
|
|
146
146
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -270,7 +270,7 @@ export class CheqdSignInfoProvider {
|
|
|
270
270
|
// Try to match verificationMethod with one of publicKeyHexs
|
|
271
271
|
for (const publicKeyHex of publicKeyHexs) {
|
|
272
272
|
// Get publicKeyHex from verificationMethod
|
|
273
|
-
const vmPublicKey = extractPublicKeyHex(vm);
|
|
273
|
+
const vmPublicKey = extractPublicKeyHex(vm).publicKeyHex;
|
|
274
274
|
// Compare publicKeys
|
|
275
275
|
if (publicKeyHex === vmPublicKey) {
|
|
276
276
|
// Create SignInfo object
|
|
@@ -289,7 +289,7 @@ export class CheqdSignInfoProvider {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
// Setup key structure for display
|
|
292
|
-
const kid = extractPublicKeyHex(vm);
|
|
292
|
+
const kid = extractPublicKeyHex(vm).publicKeyHex;
|
|
293
293
|
const key = await this.context.agent.keyManagerGet({ kid });
|
|
294
294
|
this.controllerKeys.push({ ...key, controller: vm.controller } satisfies IKeyWithController);
|
|
295
295
|
}
|
|
@@ -977,7 +977,7 @@ export class CheqdDIDProvider extends AbstractIdentifierProvider {
|
|
|
977
977
|
): Promise<SignInfo[]> {
|
|
978
978
|
return Promise.all(
|
|
979
979
|
verificationMethod.map(async (method) => {
|
|
980
|
-
const keyRef = extractPublicKeyHex(method);
|
|
980
|
+
const keyRef = extractPublicKeyHex(method).publicKeyHex;
|
|
981
981
|
return {
|
|
982
982
|
verificationMethodId: method.id,
|
|
983
983
|
signature: base64ToBytes(
|
|
@@ -998,7 +998,7 @@ export class CheqdDIDProvider extends AbstractIdentifierProvider {
|
|
|
998
998
|
): Promise<IKeyWithController[]> {
|
|
999
999
|
return Promise.all(
|
|
1000
1000
|
verificationMethod.map(async (method) => {
|
|
1001
|
-
const kid = extractPublicKeyHex(method);
|
|
1001
|
+
const kid = extractPublicKeyHex(method).publicKeyHex;
|
|
1002
1002
|
const key = await context.agent.keyManagerGet({ kid });
|
|
1003
1003
|
return { ...key, controller: method.controller };
|
|
1004
1004
|
})
|