@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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { DIDDocument } from '@veramo/core-types';
3
2
  import { type GenerateOptions } from 'generate-password';
4
3
  import { EncodedList, EncodedListAsArray } from '../agent';
@@ -1 +1 @@
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,GAAG,IAAI,IAAI,WAAW,CAEhE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,UAAO,GAAG,kBAAkB,CAIjF;AAED,wBAAsB,oBAAoB,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CASvF;AAED,wBAAsB,eAAe,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,EAEd,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAEnD,gBAAgB,GAAE,GAAG,EAAO,EAC5B,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,CAAC,CAcZ;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAMhG;AAED,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,E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E,CAWjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cheqd/did-provider-cheqd",
3
- "version": "4.1.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.1",
98
- "@cheqd/ts-proto": "^3.4.2",
99
- "@cosmjs/amino": "^0.32.3",
100
- "@cosmjs/crypto": "^0.32.3",
101
- "@cosmjs/proto-signing": "^0.32.3",
102
- "@cosmjs/stargate": "^0.32.3",
103
- "@cosmjs/utils": "^0.32.3",
104
- "@digitalbazaar/vc-status-list": "^7.1.0",
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": "^5.6.0",
109
- "@veramo/did-manager": "^5.6.0",
110
- "@veramo/did-provider-key": "^5.6.0",
111
- "@veramo/key-manager": "^5.6.0",
112
- "@veramo/utils": "^5.6.0",
113
- "debug": "^4.3.4",
114
- "did-jwt": "^7.4.7",
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.3",
118
- "uuid": "^9.0.1"
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": "^11.1.0",
124
+ "@semantic-release/commit-analyzer": "^13.0.0",
125
125
  "@semantic-release/git": "^10.0.1",
126
- "@semantic-release/github": "^9.2.6",
127
- "@semantic-release/npm": "^11.0.3",
128
- "@semantic-release/release-notes-generator": "^12.1.0",
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
- "@types/uuid": "^9.0.8",
132
- "@typescript-eslint/eslint-plugin": "^5.62.0",
133
- "@typescript-eslint/parser": "^5.62.0",
134
- "conventional-changelog-conventionalcommits": "^7.0.2",
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
- "prettier": "^3.2.5",
141
- "semantic-release": "^23.0.8",
142
- "ts-jest": "^29.1.2",
143
- "typescript": "^5.4.5"
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
  })