From f02988cd4533f36451c4abc2a1cc4ee29d6717b7 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Thu, 9 Jun 2022 16:02:05 +0200 Subject: [PATCH] fix(deps): bump did-jwt to v6 and all related deps to latest closes #923 closes #848 --- __tests__/shared/documentationExamples.ts | 6 +- packages/cli/package.json | 6 +- packages/core/package.json | 2 +- packages/core/src/agent.ts | 2 +- packages/core/src/types/IResolver.ts | 14 +- packages/credential-ld/package.json | 2 +- packages/credential-status/package.json | 6 +- packages/credential-w3c/package.json | 4 +- .../src/__tests__/message-handler.test.ts | 2 +- packages/did-comm/package.json | 6 +- packages/did-jwt/package.json | 4 +- packages/did-provider-ethr/package.json | 2 +- packages/did-resolver/package.json | 4 +- .../src/__tests__/integration.test.ts | 4 +- packages/key-manager/package.json | 10 +- packages/kms-local/package.json | 18 +- .../kms-local/src/key-management-system.ts | 4 +- packages/selective-disclosure/package.json | 2 +- packages/test-react-app/.eslintrc.js | 25 - packages/test-react-app/.eslintrc.json | 33 ++ packages/test-react-app/babel.config.js | 3 - packages/test-react-app/babel.config.json | 13 + .../browserAgent.browser-test.ts | 4 +- packages/test-react-app/package.json | 8 +- packages/test-react-app/src/App.tsx | 9 +- packages/test-react-app/src/index.tsx | 4 +- packages/test-react-app/src/veramo/setup.ts | 20 +- packages/test-react-app/tsconfig.json | 8 +- packages/test-utils/package.json | 2 +- packages/utils/package.json | 6 +- .../src/__tests__/credential-utils.test.ts | 2 +- .../utils/src/__tests__/did-utils.test.ts | 8 +- .../utils/src/__tests__/encodings.test.ts | 76 +++ packages/utils/src/encodings.ts | 29 ++ yarn.lock | 464 +++++------------- 35 files changed, 366 insertions(+), 446 deletions(-) delete mode 100644 packages/test-react-app/.eslintrc.js create mode 100644 packages/test-react-app/.eslintrc.json delete mode 100644 packages/test-react-app/babel.config.js create mode 100644 packages/test-react-app/babel.config.json create mode 100644 packages/utils/src/__tests__/encodings.test.ts diff --git a/__tests__/shared/documentationExamples.ts b/__tests__/shared/documentationExamples.ts index 1bff7d925..708095293 100644 --- a/__tests__/shared/documentationExamples.ts +++ b/__tests__/shared/documentationExamples.ts @@ -41,7 +41,7 @@ export default (testContext: { id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller', type: 'EcdsaSecp256k1RecoveryMethod2020', controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', - blockchainAccountId: '0xb09B66026bA5909A7CFE99b76875431D2b8D5190@eip155:4', + blockchainAccountId: 'eip155:4:0xb09B66026bA5909A7CFE99b76875431D2b8D5190', }) }) @@ -52,7 +52,7 @@ export default (testContext: { expect(doc.didDocument).toEqual({ '@context': [ 'https://www.w3.org/ns/did/v1', - 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', + 'https://w3id.org/security/suites/secp256k1recovery-2020/v2', ], id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', verificationMethod: [ @@ -60,7 +60,7 @@ export default (testContext: { id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller', type: 'EcdsaSecp256k1RecoveryMethod2020', controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', - blockchainAccountId: '0xb09B66026bA5909A7CFE99b76875431D2b8D5190@eip155:4', + blockchainAccountId: 'eip155:4:0xb09B66026bA5909A7CFE99b76875431D2b8D5190', }, ], authentication: ['did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller'], diff --git a/packages/cli/package.json b/packages/cli/package.json index 4052b26c8..64bd09330 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -43,9 +43,9 @@ "cross-fetch": "^3.1.4", "date-fns": "^2.28.0", "debug": "^4.3.3", - "did-resolver": "3.2.2", + "did-resolver": "^3.2.2", "dotenv": "^16.0.0", - "ethr-did-resolver": "^5.0.4", + "ethr-did-resolver": "^6.0.1", "express": "^4.17.2", "express-handlebars": "^6.0.2", "fuzzy": "^0.1.3", @@ -66,7 +66,7 @@ "ts-json-schema-generator": "^1.0.0", "typeorm": "0.3.6", "url-parse": "^1.5.4", - "web-did-resolver": "^2.0.12", + "web-did-resolver": "^2.0.18", "ws": "^8.4.0", "yaml": "^2.0.0" }, diff --git a/packages/core/package.json b/packages/core/package.json index 32112e833..6e43ded02 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "debug": "^4.3.3", - "did-jwt-vc": "^2.1.9", + "did-jwt-vc": "^2.1.12", "events": "^3.2.0", "z-schema": "^5.0.2" }, diff --git a/packages/core/src/agent.ts b/packages/core/src/agent.ts index 0cac44db3..b06f565cd 100644 --- a/packages/core/src/agent.ts +++ b/packages/core/src/agent.ts @@ -313,5 +313,5 @@ export function createAgent> options: IAgentOptions & { context?: C }, ): TAgent & { context?: C } { //@ts-ignore - return new Agent(options) + return new Agent(options) as TAgent } diff --git a/packages/core/src/types/IResolver.ts b/packages/core/src/types/IResolver.ts index c936eec2f..99c2f92bc 100644 --- a/packages/core/src/types/IResolver.ts +++ b/packages/core/src/types/IResolver.ts @@ -80,7 +80,7 @@ export interface IResolver extends IPluginMethodMap { * expect(doc.didDocument).toEqual({ * '@context': [ * 'https://www.w3.org/ns/did/v1', - * 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', + * 'https://w3id.org/security/suites/secp256k1recovery-2020/v2', * ], * id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', * verificationMethod: [ @@ -88,7 +88,7 @@ export interface IResolver extends IPluginMethodMap { * id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller', * type: 'EcdsaSecp256k1RecoveryMethod2020', * controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', - * blockchainAccountId: '0xb09B66026bA5909A7CFE99b76875431D2b8D5190@eip155:4', + * blockchainAccountId: 'eip155:4:0xb09B66026bA5909A7CFE99b76875431D2b8D5190', * }, * ], * authentication: ['did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller'], @@ -114,11 +114,11 @@ export interface IResolver extends IPluginMethodMap { * section: 'authentication' * }) * expect(fragment).toEqual({ - * id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller', - * type: 'EcdsaSecp256k1RecoveryMethod2020', - * controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', - * blockchainAccountId: '0xb09B66026bA5909A7CFE99b76875431D2b8D5190@eip155:4', - * }) + * id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller', + * type: 'EcdsaSecp256k1RecoveryMethod2020', + * controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190', + * blockchainAccountId: 'eip155:4:0xb09B66026bA5909A7CFE99b76875431D2b8D5190', + * }) * ``` * * @param args - The description of the component you want. diff --git a/packages/credential-ld/package.json b/packages/credential-ld/package.json index 418cbc1ae..c789626d5 100644 --- a/packages/credential-ld/package.json +++ b/packages/credential-ld/package.json @@ -24,7 +24,7 @@ "@veramo/did-resolver": "^3.1.0", "@veramo/utils": "^3.1.0", "debug": "^4.3.3", - "did-resolver": "3.2.2", + "did-resolver": "^3.2.2", "uint8arrays": "^3.0.0" }, "devDependencies": { diff --git a/packages/credential-status/package.json b/packages/credential-status/package.json index d2531a804..cb1ed5414 100644 --- a/packages/credential-status/package.json +++ b/packages/credential-status/package.json @@ -15,9 +15,9 @@ }, "dependencies": { "@veramo/core": "^3.1.0", - "credential-status": "^2.0.2", - "did-jwt": "^5.12.4", - "did-resolver": "3.2.2" + "credential-status": "^2.0.3", + "did-jwt": "^6.1.2", + "did-resolver": "^3.2.2" }, "devDependencies": { "@types/debug": "4.1.7", diff --git a/packages/credential-w3c/package.json b/packages/credential-w3c/package.json index a9916664c..df1d6e59d 100644 --- a/packages/credential-w3c/package.json +++ b/packages/credential-w3c/package.json @@ -20,8 +20,8 @@ "@veramo/message-handler": "^3.1.4", "@veramo/utils": "^3.1.4", "debug": "^4.3.3", - "did-jwt-vc": "^2.1.9", - "did-resolver": "3.2.2", + "did-jwt-vc": "^2.1.12", + "did-resolver": "^3.2.2", "uint8arrays": "^3.0.0", "uuid": "^8.3.0" }, diff --git a/packages/credential-w3c/src/__tests__/message-handler.test.ts b/packages/credential-w3c/src/__tests__/message-handler.test.ts index f3a14111b..0948234dc 100644 --- a/packages/credential-w3c/src/__tests__/message-handler.test.ts +++ b/packages/credential-w3c/src/__tests__/message-handler.test.ts @@ -30,7 +30,7 @@ describe('@veramo/credential-w3c', () => { id: `${didEthr}#owner`, type: 'EcdsaSecp256k1RecoveryMethod2020', controller: args?.didUrl, - blockchainAccountId: `${didEthr.slice(-42)}@eip155:1`, + blockchainAccountId: `eip155:1:${didEthr.slice(-42)}`, }, ], authentication: [`${didEthr}#owner`], diff --git a/packages/did-comm/package.json b/packages/did-comm/package.json index 91eaaba82..e153049a3 100644 --- a/packages/did-comm/package.json +++ b/packages/did-comm/package.json @@ -21,9 +21,9 @@ "@veramo/utils": "^3.1.4", "cross-fetch": "^3.1.4", "debug": "^4.3.3", - "did-jwt": "^5.12.3", - "did-resolver": "3.2.2", - "uint8arrays": "3.0.0", + "did-jwt": "^6.1.2", + "did-resolver": "^3.2.2", + "uint8arrays": "^3.0.0", "uuid": "^8.3.0" }, "devDependencies": { diff --git a/packages/did-jwt/package.json b/packages/did-jwt/package.json index 71c01497b..0eedf83a3 100644 --- a/packages/did-jwt/package.json +++ b/packages/did-jwt/package.json @@ -12,8 +12,8 @@ "@veramo/core": "^3.1.4", "@veramo/message-handler": "^3.1.4", "debug": "^4.3.3", - "did-jwt": "^5.12.3", - "did-resolver": "3.2.2" + "did-jwt": "^6.1.2", + "did-resolver": "^3.2.2" }, "devDependencies": { "@types/debug": "4.1.7", diff --git a/packages/did-provider-ethr/package.json b/packages/did-provider-ethr/package.json index 4c945f3df..039028564 100644 --- a/packages/did-provider-ethr/package.json +++ b/packages/did-provider-ethr/package.json @@ -19,7 +19,7 @@ "@veramo/core": "^3.1.4", "@veramo/did-manager": "^3.1.4", "debug": "^4.3.3", - "ethr-did": "^2.2.0" + "ethr-did": "^2.2.3" }, "devDependencies": { "@types/debug": "4.1.7", diff --git a/packages/did-resolver/package.json b/packages/did-resolver/package.json index 202db434a..a81227100 100644 --- a/packages/did-resolver/package.json +++ b/packages/did-resolver/package.json @@ -16,9 +16,9 @@ "devDependencies": { "@types/debug": "4.1.7", "did-resolver": "3.2.2", - "ethr-did-resolver": "5.0.4", + "ethr-did-resolver": "6.0.1", "typescript": "4.7.3", - "web-did-resolver": "2.0.16" + "web-did-resolver": "2.0.18" }, "files": [ "build/**/*", diff --git a/packages/did-resolver/src/__tests__/integration.test.ts b/packages/did-resolver/src/__tests__/integration.test.ts index 4a3c189a2..21443d999 100644 --- a/packages/did-resolver/src/__tests__/integration.test.ts +++ b/packages/did-resolver/src/__tests__/integration.test.ts @@ -70,7 +70,7 @@ describe('@veramo/did-resolver', () => { didDocument: { '@context': [ 'https://www.w3.org/ns/did/v1', - 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', + 'https://w3id.org/security/suites/secp256k1recovery-2020/v2', ], id: 'did:ethr:rinkeby:0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6', verificationMethod: [ @@ -78,7 +78,7 @@ describe('@veramo/did-resolver', () => { id: 'did:ethr:rinkeby:0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6#controller', type: 'EcdsaSecp256k1RecoveryMethod2020', controller: 'did:ethr:rinkeby:0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6', - blockchainAccountId: '0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6@eip155:4', + blockchainAccountId: 'eip155:4:0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6', }, ], authentication: ['did:ethr:rinkeby:0xE6Fe788d8ca214A080b0f6aC7F48480b2AEfa9a6#controller'], diff --git a/packages/key-manager/package.json b/packages/key-manager/package.json index d7ca1246e..eaade7ec9 100644 --- a/packages/key-manager/package.json +++ b/packages/key-manager/package.json @@ -9,13 +9,13 @@ "extract-api": "yarn veramo dev extract-api" }, "dependencies": { - "@ethersproject/bytes": "5.6.1", - "@ethersproject/strings": "5.6.1", - "@ethersproject/transactions": "5.6.2", + "@ethersproject/bytes": "^5.6.1", + "@ethersproject/strings": "^5.6.1", + "@ethersproject/transactions": "^5.6.2", "@stablelib/ed25519": "^1.0.2", "@veramo/core": "^3.1.4", - "did-jwt": "^5.12.3", - "uint8arrays": "3.0.0", + "did-jwt": "^6.1.2", + "uint8arrays": "^3.0.0", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/packages/kms-local/package.json b/packages/kms-local/package.json index 3dcc5cd9d..483c27d12 100644 --- a/packages/kms-local/package.json +++ b/packages/kms-local/package.json @@ -9,21 +9,21 @@ "extract-api": "yarn veramo dev extract-api" }, "dependencies": { - "@ethersproject/abstract-provider": "5.6.1", - "@ethersproject/abstract-signer": "5.6.2", - "@ethersproject/bytes": "5.6.1", - "@ethersproject/random": "5.6.1", - "@ethersproject/signing-key": "5.6.2", - "@ethersproject/strings": "5.6.1", - "@ethersproject/transactions": "5.6.2", - "@ethersproject/wallet": "5.6.2", + "@ethersproject/abstract-provider": "^5.6.1", + "@ethersproject/abstract-signer": "^5.6.2", + "@ethersproject/bytes": "^5.6.1", + "@ethersproject/random": "^5.6.1", + "@ethersproject/signing-key": "^5.6.2", + "@ethersproject/strings": "^5.6.1", + "@ethersproject/transactions": "^5.6.2", + "@ethersproject/wallet": "^5.6.2", "@stablelib/ed25519": "^1.0.2", "@stablelib/nacl": "^1.0.2", "@veramo/core": "^3.1.4", "@veramo/key-manager": "^3.1.4", "base-58": "^0.0.1", "debug": "^4.3.3", - "did-jwt": "^5.12.3", + "did-jwt": "^6.1.2", "uint8arrays": "^3.0.0" }, "devDependencies": { diff --git a/packages/kms-local/src/key-management-system.ts b/packages/kms-local/src/key-management-system.ts index 7872806e9..df4445650 100644 --- a/packages/kms-local/src/key-management-system.ts +++ b/packages/kms-local/src/key-management-system.ts @@ -239,7 +239,7 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem { * @returns a base64url encoded signature for the `EdDSA` alg */ private async signEdDSA(key: string, data: Uint8Array): Promise { - const signer = EdDSASigner(key) + const signer = EdDSASigner(arrayify(key, { allowMissingPrefix: true })) const signature = await signer(data) // base64url encoded string return signature as string @@ -253,7 +253,7 @@ export class KeyManagementSystem extends AbstractKeyManagementSystem { alg: string | undefined, data: Uint8Array, ): Promise { - const signer = ES256KSigner(privateKeyHex, alg === 'ES256K-R') + const signer = ES256KSigner(arrayify(privateKeyHex, { allowMissingPrefix: true }), alg === 'ES256K-R') const signature = await signer(data) // base64url encoded string return signature as string diff --git a/packages/selective-disclosure/package.json b/packages/selective-disclosure/package.json index 0e34083ed..7b7945cc0 100644 --- a/packages/selective-disclosure/package.json +++ b/packages/selective-disclosure/package.json @@ -19,7 +19,7 @@ "@veramo/did-jwt": "^3.1.4", "@veramo/message-handler": "^3.1.4", "debug": "^4.3.3", - "did-jwt": "^5.12.3", + "did-jwt": "^6.1.2", "uuid": "^8.3.0" }, "devDependencies": { diff --git a/packages/test-react-app/.eslintrc.js b/packages/test-react-app/.eslintrc.js deleted file mode 100644 index 1670b59cb..000000000 --- a/packages/test-react-app/.eslintrc.js +++ /dev/null @@ -1,25 +0,0 @@ -// .eslintrc.js -module.exports = { - env: { - jest: true, - }, - globals: { - page: true, - browser: true, - context: true, - jestPuppeteer: true, - }, - parserOptions: { - sourceType: "module", - ecmaVersion: 2020, - ecmaFeatures: { - jsx: true, - modules: true, - experimentalObjectRestSpread: true - } - }, - plugins: [ - "react" - ], - "extends": ["eslint:recommended", "plugin:react/recommended"], -} diff --git a/packages/test-react-app/.eslintrc.json b/packages/test-react-app/.eslintrc.json new file mode 100644 index 000000000..f6c966d8c --- /dev/null +++ b/packages/test-react-app/.eslintrc.json @@ -0,0 +1,33 @@ +{ + "env": { + "jest": true, + "node": true, + "browser": true + }, + "globals": { + "page": true, + "browser": true, + "context": true, + "jestPuppeteer": true + }, + "parserOptions": { + "sourceType": "module", + "ecmaVersion": 2020, + "ecmaFeatures": { + "jsx": true, + "modules": true, + "experimentalObjectRestSpread": true + } + }, + "plugins": [ + "react", + "@typescript-eslint" + ], + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "ignorePatterns": ["**/*.browser-test.ts"] +} diff --git a/packages/test-react-app/babel.config.js b/packages/test-react-app/babel.config.js deleted file mode 100644 index eee873213..000000000 --- a/packages/test-react-app/babel.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'], -} diff --git a/packages/test-react-app/babel.config.json b/packages/test-react-app/babel.config.json new file mode 100644 index 000000000..b05fea502 --- /dev/null +++ b/packages/test-react-app/babel.config.json @@ -0,0 +1,13 @@ +{ + "presets": [ + [ + "@babel/preset-env", + { + "targets": { + "node": "current" + } + } + ], + "@babel/preset-typescript" + ] +} diff --git a/packages/test-react-app/headless-tests/browserAgent.browser-test.ts b/packages/test-react-app/headless-tests/browserAgent.browser-test.ts index b18dec5a3..1e2d4a9d7 100644 --- a/packages/test-react-app/headless-tests/browserAgent.browser-test.ts +++ b/packages/test-react-app/headless-tests/browserAgent.browser-test.ts @@ -48,7 +48,7 @@ describe('Browser integration tests', () => { didDocument: { '@context': [ 'https://www.w3.org/ns/did/v1', - 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', + 'https://w3id.org/security/suites/secp256k1recovery-2020/v2', ], id: 'did:ethr:rinkeby:0x6acf3bb1ef0ee84559de2bc2bd9d91532062a730', verificationMethod: [ @@ -56,7 +56,7 @@ describe('Browser integration tests', () => { id: 'did:ethr:rinkeby:0x6acf3bb1ef0ee84559de2bc2bd9d91532062a730#controller', type: 'EcdsaSecp256k1RecoveryMethod2020', controller: 'did:ethr:rinkeby:0x6acf3bb1ef0ee84559de2bc2bd9d91532062a730', - blockchainAccountId: '0x6AcF3bB1eF0eE84559De2bC2Bd9D91532062a730@eip155:4', + blockchainAccountId: 'eip155:4:0x6AcF3bB1eF0eE84559De2bC2Bd9D91532062a730', }, ], authentication: ['did:ethr:rinkeby:0x6acf3bb1ef0ee84559de2bc2bd9d91532062a730#controller'], diff --git a/packages/test-react-app/package.json b/packages/test-react-app/package.json index 721a2cf30..831cb493e 100644 --- a/packages/test-react-app/package.json +++ b/packages/test-react-app/package.json @@ -23,14 +23,14 @@ "@veramo/url-handler": "^3.1.0", "@veramo/utils": "^3.1.0", "crypto": "npm:crypto-browserify", - "did-resolver": "3.2.2", - "ethr-did-resolver": "5.0.4", + "did-resolver": "^3.2.2", + "ethr-did-resolver": "^6.0.1", "react": "18.1.0", "react-dom": "18.1.0", "stream": "npm:stream-browserify", "typeorm": "0.3.6", - "web-did-resolver": "2.0.18", - "web-vitals": "2.1.4" + "web-did-resolver": "^2.0.18", + "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", diff --git a/packages/test-react-app/src/App.tsx b/packages/test-react-app/src/App.tsx index 41a8120bd..1cd409086 100644 --- a/packages/test-react-app/src/App.tsx +++ b/packages/test-react-app/src/App.tsx @@ -1,10 +1,11 @@ -import React, { useEffect, useState } from 'react' +import * as React from 'react' import './App.css' import { getAgent } from './veramo/setup' +import { DIDResolutionResult } from 'did-resolver' function App() { - const [didDoc, setDidDoc] = useState(null) - const [invalidDidDoc, setInvalidDidDoc] = useState(null) + const [didDoc, setDidDoc] = React.useState(null) + const [invalidDidDoc, setInvalidDidDoc] = React.useState(null) const agent = getAgent() @@ -22,7 +23,7 @@ function App() { setInvalidDidDoc(doc) } - useEffect(() => { + React.useEffect(() => { resolve() resolveInvalid() }, []) diff --git a/packages/test-react-app/src/index.tsx b/packages/test-react-app/src/index.tsx index ef2edf8ea..8dce4bd7b 100644 --- a/packages/test-react-app/src/index.tsx +++ b/packages/test-react-app/src/index.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; diff --git a/packages/test-react-app/src/veramo/setup.ts b/packages/test-react-app/src/veramo/setup.ts index 86d852a99..80b627b53 100644 --- a/packages/test-react-app/src/veramo/setup.ts +++ b/packages/test-react-app/src/veramo/setup.ts @@ -1,4 +1,14 @@ -import { createAgent, IAgentOptions, IDataStore, IDataStoreORM, IDIDManager, IKeyManager, IMessageHandler, IResolver, TAgent } from '@veramo/core' +import { + createAgent, + IAgentOptions, + IDataStore, + IDataStoreORM, + IDIDManager, + IKeyManager, + IMessageHandler, + IResolver, + TAgent +} from '@veramo/core' import { DIDResolverPlugin } from '@veramo/did-resolver' import { Resolver } from 'did-resolver' @@ -9,7 +19,13 @@ import { KeyManager } from '@veramo/key-manager' import { DIDManager } from '@veramo/did-manager' import { JwtMessageHandler } from '@veramo/did-jwt' import { CredentialIssuer, ICredentialIssuer, W3cMessageHandler } from '@veramo/credential-w3c' -import { CredentialIssuerLD, ICredentialIssuerLD, LdDefaultContexts, VeramoEcdsaSecp256k1RecoverySignature2020, VeramoEd25519Signature2018 } from '@veramo/credential-ld' +import { + CredentialIssuerLD, + ICredentialIssuerLD, + LdDefaultContexts, + VeramoEcdsaSecp256k1RecoverySignature2020, + VeramoEd25519Signature2018 +} from '@veramo/credential-ld' import { getDidKeyResolver, KeyDIDProvider } from '@veramo/did-provider-key' import { DIDComm, DIDCommMessageHandler, IDIDComm } from '@veramo/did-comm' import { ISelectiveDisclosure, SdrMessageHandler, SelectiveDisclosure } from '@veramo/selective-disclosure' diff --git a/packages/test-react-app/tsconfig.json b/packages/test-react-app/tsconfig.json index dae74bb94..3cbf3d585 100644 --- a/packages/test-react-app/tsconfig.json +++ b/packages/test-react-app/tsconfig.json @@ -1,27 +1,21 @@ { "extends": "../tsconfig.settings.json", "compilerOptions": { - "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" ], - "allowJs": true, "skipLibCheck": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "strict": true, "forceConsistentCasingInFileNames": true, - "module": "esnext", "moduleResolution": "node", - "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "react-jsx" }, "include": [ - "src" + "src/**/*.ts[x]?" ], "references": [ { "path": "../core" }, diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 03f85147d..b6593bdbe 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -14,7 +14,7 @@ "@veramo/did-manager": "^3.1.0", "@veramo/key-manager": "^3.1.0", "@veramo/utils": "^3.1.0", - "did-resolver": "3.2.2" + "did-resolver": "^3.2.2" }, "devDependencies": { "typescript": "4.7.3" diff --git a/packages/utils/package.json b/packages/utils/package.json index 82b81acbf..f0bb1b043 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -14,9 +14,9 @@ "blakejs": "^1.1.1", "cross-fetch": "^3.1.4", "debug": "^4.3.3", - "did-jwt": "^5.12.3", - "did-jwt-vc": "^2.1.9", - "did-resolver": "3.2.2", + "did-jwt": "^6.1.2", + "did-jwt-vc": "^2.1.12", + "did-resolver": "^3.2.2", "uint8arrays": "^3.0.0", "uuid": "^8.3.0" }, diff --git a/packages/utils/src/__tests__/credential-utils.test.ts b/packages/utils/src/__tests__/credential-utils.test.ts index b6909a1f5..3f125744c 100644 --- a/packages/utils/src/__tests__/credential-utils.test.ts +++ b/packages/utils/src/__tests__/credential-utils.test.ts @@ -70,7 +70,7 @@ describe('@veramo/utils credential utils', () => { '@context': [ 'https://www.w3.org/2018/credentials/v1', 'https://veramo.io/contexts/profile/v1', - 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', + 'https://w3id.org/security/suites/secp256k1recovery-2020/v2', ], type: ['VerifiableCredential', 'Profile'], issuanceDate: '2021-11-23T15:09:43.891Z', diff --git a/packages/utils/src/__tests__/did-utils.test.ts b/packages/utils/src/__tests__/did-utils.test.ts index 542d01912..61f9af589 100644 --- a/packages/utils/src/__tests__/did-utils.test.ts +++ b/packages/utils/src/__tests__/did-utils.test.ts @@ -12,7 +12,7 @@ describe('@veramo/utils did utils', () => { 'id': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51#controller', 'type': 'EcdsaSecp256k1RecoveryMethod2020', 'controller': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51', - 'blockchainAccountId':'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51@eip155:1' + 'blockchainAccountId':'eip155:1:0x1B54DaD834f2017ab66C1a1ffF74425889141e51' })).toEqual(1) expect(getChainIdForDidEthr({ 'id': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51#controller', @@ -23,8 +23,8 @@ describe('@veramo/utils did utils', () => { expect(getChainIdForDidEthr({ 'id': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51#controller', 'type': 'EcdsaSecp256k1RecoveryMethod2020', - 'controller': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51', - 'blockchainAccountId':'did:ethr:rinkeby:0x1B54DaD834f2017ab66C1a1ffF74425889141e51@eip155:4' + 'controller': 'did:ethr:rinkeby:0x1B54DaD834f2017ab66C1a1ffF74425889141e51', + 'blockchainAccountId':'eip155:4:0x1B54DaD834f2017ab66C1a1ffF74425889141e51' })).toEqual(4) }) @@ -33,7 +33,7 @@ describe('@veramo/utils did utils', () => { 'id': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51#controller', 'type': 'EcdsaSecp256k1RecoveryMethod2020', 'controller': 'did:ethr:0x1B54DaD834f2017ab66C1a1ffF74425889141e51', - 'blockchainAccountId': '0x1B54DaD834f2017ab66C1a1ffF74425889141e51@eip155:1' + 'blockchainAccountId': 'eip155:1:0x1B54DaD834f2017ab66C1a1ffF74425889141e51' } expect(getEthereumAddress(verificationMethod)).toEqual("0x1B54DaD834f2017ab66C1a1ffF74425889141e51".toLowerCase()) diff --git a/packages/utils/src/__tests__/encodings.test.ts b/packages/utils/src/__tests__/encodings.test.ts new file mode 100644 index 000000000..d4f9e99cd --- /dev/null +++ b/packages/utils/src/__tests__/encodings.test.ts @@ -0,0 +1,76 @@ +import { bytesToHex, hexToBytes } from '../encodings' + +describe('@veramo/utils encoding utils', () => { + describe('hexToBytes', () => { + it('should convert hex string to bytes', () => { + expect(hexToBytes('0x0102')).toEqual(Uint8Array.from([1, 2])) + expect(hexToBytes('0x0A0b')).toEqual(Uint8Array.from([10, 11])) + expect(hexToBytes('0102')).toEqual(Uint8Array.from([1, 2])) + expect(hexToBytes('0A0b')).toEqual(Uint8Array.from([10, 11])) + expect(hexToBytes('A0b')).toEqual(Uint8Array.from([10, 11])) + }) + + it('should mirror uint8array', () => { + // @ts-ignore + expect(hexToBytes(Buffer.from('0102', 'hex'))).toEqual(Uint8Array.from([1, 2])) + }) + + it('should refuse non-string types', () => { + expect(() => { + // @ts-ignore + hexToBytes({}) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + hexToBytes(undefined) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + hexToBytes(null) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + hexToBytes(1234) + }).toThrow(/illegal_argument/) + }) + + it('should refuse wrong charset', () => { + expect(() => { + // @ts-ignore + hexToBytes('zxcv') + }).toThrow() + }) + }) + + describe('bytesToHex', () => { + it('should convert bytes to hexString', () => { + expect(bytesToHex(Uint8Array.from([1, 2]))).toEqual('0102') + expect(bytesToHex(Buffer.from([11, 12]))).toEqual('0b0c') + expect(bytesToHex(Uint8Array.from([1, 2]), true)).toEqual('0x0102') + expect(bytesToHex(Buffer.from([11, 12]), true)).toEqual('0x0b0c') + }) + + it('should refuse non-uint8Array types', () => { + expect(() => { + // @ts-ignore + bytesToHex({}) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + bytesToHex(undefined) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + bytesToHex(null) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + bytesToHex(1234) + }).toThrow(/illegal_argument/) + expect(() => { + // @ts-ignore + bytesToHex([1, 2, 3, 4]) + }).toThrow(/illegal_argument/) + }) + }) +}) diff --git a/packages/utils/src/encodings.ts b/packages/utils/src/encodings.ts index 1a4ae23d2..03f4c5590 100644 --- a/packages/utils/src/encodings.ts +++ b/packages/utils/src/encodings.ts @@ -28,3 +28,32 @@ export function encodeJoseBlob(payload: {}) { export function decodeJoseBlob(blob: string) { return JSON.parse(u8a.toString(u8a.fromString(blob, 'base64url'), 'utf-8')) } + +/** + * Converts a hex string (with or without prefix) to a byte array (Uint8Array) + * + * @param hexString - The string representing the encoding + * @returns the `Uint8Array` represented by the given string + * + * @throws `illegal_argument` error if the parameter is not a string + */ +export function hexToBytes(hexString: string): Uint8Array { + // @ts-ignore + if (hexString instanceof Uint8Array) { + return Uint8Array.from(hexString) + } + if (typeof hexString !== 'string') { + throw new Error('illegal_argument: a string must be provided for a hex-string to byte array conversion') + } + const noPrefix = hexString.startsWith('0x') ? hexString.substring(2) : hexString + const padded = noPrefix.length % 2 !== 0 ? `0${noPrefix}` : noPrefix + return u8a.fromString(padded.toLowerCase(), 'base16') +} + +export function bytesToHex(byteArray: Uint8Array, prefix: boolean = false): string { + if (!(byteArray instanceof Uint8Array)) { + throw new Error('illegal_argument: only byte arrays can be converted to hex encoding') + } + const result = u8a.toString(byteArray, 'base16') + return prefix ? `0x${result}` : result +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 7803afa65..c4619f427 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1608,20 +1608,20 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@ethersproject/abi@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.5.0.tgz#fb52820e22e50b854ff15ce1647cc508d6660613" - integrity sha512-loW7I4AohP5KycATvc0MgujU6JyCHPqHdeoo9z3Nr9xEiNioxa65ccdm1+fsoJhkuhdRtfcL8cfyGamz2AxZ5w== +"@ethersproject/abi@^5.6.3": + version "5.6.3" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.6.3.tgz#2d643544abadf6e6b63150508af43475985c23db" + integrity sha512-CxKTdoZY4zDJLWXG6HzNH6znWK0M79WzzxHegDoecE3+K32pzfHOzuXg2/oGSTecZynFgpkjYXNPOqXVJlqClw== dependencies: - "@ethersproject/address" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/keccak256" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/strings" "^5.5.0" + "@ethersproject/address" "^5.6.1" + "@ethersproject/bignumber" "^5.6.2" + "@ethersproject/bytes" "^5.6.1" + "@ethersproject/constants" "^5.6.1" + "@ethersproject/hash" "^5.6.1" + "@ethersproject/keccak256" "^5.6.1" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/strings" "^5.6.1" "@ethersproject/abstract-provider@5.6.1", "@ethersproject/abstract-provider@^5.6.1": version "5.6.1" @@ -1636,19 +1636,6 @@ "@ethersproject/transactions" "^5.6.2" "@ethersproject/web" "^5.6.1" -"@ethersproject/abstract-provider@^5.5.0": - version "5.5.1" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.5.1.tgz#2f1f6e8a3ab7d378d8ad0b5718460f85649710c5" - integrity sha512-m+MA/ful6eKbxpr99xUYeRvLkfnlqzrF8SZ46d/xFB1A7ZVknYc/sXJG0RcufF52Qn2jeFj1hhcoQ7IXjNKUqg== - dependencies: - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/networks" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/web" "^5.5.0" - "@ethersproject/abstract-signer@5.6.2", "@ethersproject/abstract-signer@^5.6.2": version "5.6.2" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.6.2.tgz#491f07fc2cbd5da258f46ec539664713950b0b33" @@ -1660,17 +1647,6 @@ "@ethersproject/logger" "^5.6.0" "@ethersproject/properties" "^5.6.0" -"@ethersproject/abstract-signer@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.5.0.tgz#590ff6693370c60ae376bf1c7ada59eb2a8dd08d" - integrity sha512-lj//7r250MXVLKI7sVarXAbZXbv9P50lgmJQGr2/is82EwEb8r7HrxsmMqAjTsztMYy7ohrIhGMIml+Gx4D3mA== - dependencies: - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/address@5.6.1", "@ethersproject/address@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.6.1.tgz#ab57818d9aefee919c5721d28cd31fd95eff413d" @@ -1693,13 +1669,6 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/rlp" "^5.5.0" -"@ethersproject/base64@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.5.0.tgz#881e8544e47ed976930836986e5eb8fab259c090" - integrity sha512-tdayUKhU1ljrlHzEWbStXazDpsx4eg1dBXUSI6+mHlYklOXoXF6lZvw8tnD6oVaWfnMxAgRSKROg3cVKtCcppA== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/base64@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.6.1.tgz#2c40d8a0310c9d1606c2c37ae3092634b41d87cb" @@ -1707,14 +1676,6 @@ dependencies: "@ethersproject/bytes" "^5.6.1" -"@ethersproject/basex@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.5.0.tgz#e40a53ae6d6b09ab4d977bd037010d4bed21b4d3" - integrity sha512-ZIodwhHpVJ0Y3hUCfUucmxKsWQA5TMnavp5j/UOuDdzZWzJlRmuOjcTMIGgHCYuZmHt36BfiSyQPSRskPxbfaQ== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/basex@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.6.1.tgz#badbb2f1d4a6f52ce41c9064f01eab19cc4c5305" @@ -1769,35 +1730,21 @@ dependencies: "@ethersproject/bignumber" "^5.6.2" -"@ethersproject/contracts@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.5.0.tgz#b735260d4bd61283a670a82d5275e2a38892c197" - integrity sha512-2viY7NzyvJkh+Ug17v7g3/IJC8HqZBDcOjYARZLdzRxrfGlRgmYgl6xPRKVbEzy1dWKw/iv7chDcS83pg6cLxg== - dependencies: - "@ethersproject/abi" "^5.5.0" - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - -"@ethersproject/hash@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.5.0.tgz#7cee76d08f88d1873574c849e0207dcb32380cc9" - integrity sha512-dnGVpK1WtBjmnp3mUT0PlU2MpapnwWI0PibldQEq1408tQBAbZpPidkWoVVuNMOl/lISO3+4hXZWCL3YV7qzfg== +"@ethersproject/contracts@^5.6.2": + version "5.6.2" + resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.6.2.tgz#20b52e69ebc1b74274ff8e3d4e508de971c287bc" + integrity sha512-hguUA57BIKi6WY0kHvZp6PwPlWF87MCeB4B7Z7AbUpTxfFXFdn/3b0GmjZPagIHS+3yhcBJDnuEfU4Xz+Ks/8g== dependencies: - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/keccak256" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/strings" "^5.5.0" + "@ethersproject/abi" "^5.6.3" + "@ethersproject/abstract-provider" "^5.6.1" + "@ethersproject/abstract-signer" "^5.6.2" + "@ethersproject/address" "^5.6.1" + "@ethersproject/bignumber" "^5.6.2" + "@ethersproject/bytes" "^5.6.1" + "@ethersproject/constants" "^5.6.1" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/transactions" "^5.6.2" "@ethersproject/hash@^5.6.1": version "5.6.1" @@ -1813,24 +1760,6 @@ "@ethersproject/properties" "^5.6.0" "@ethersproject/strings" "^5.6.1" -"@ethersproject/hdnode@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.5.0.tgz#4a04e28f41c546f7c978528ea1575206a200ddf6" - integrity sha512-mcSOo9zeUg1L0CoJH7zmxwUG5ggQHU1UrRf8jyTYy6HxdZV+r0PBoL1bxr+JHIPXRzS6u/UW4mEn43y0tmyF8Q== - dependencies: - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/pbkdf2" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/sha2" "^5.5.0" - "@ethersproject/signing-key" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/wordlists" "^5.5.0" - "@ethersproject/hdnode@^5.6.2": version "5.6.2" resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.6.2.tgz#26f3c83a3e8f1b7985c15d1db50dc2903418b2d2" @@ -1849,25 +1778,6 @@ "@ethersproject/transactions" "^5.6.2" "@ethersproject/wordlists" "^5.6.1" -"@ethersproject/json-wallets@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.5.0.tgz#dd522d4297e15bccc8e1427d247ec8376b60e325" - integrity sha512-9lA21XQnCdcS72xlBn1jfQdj2A1VUxZzOzi9UkNdnokNKke/9Ya2xA9aIK1SC3PQyBDLt4C+dfps7ULpkvKikQ== - dependencies: - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/hdnode" "^5.5.0" - "@ethersproject/keccak256" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/pbkdf2" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/random" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - aes-js "3.0.0" - scrypt-js "3.0.1" - "@ethersproject/json-wallets@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.6.1.tgz#3f06ba555c9c0d7da46756a12ac53483fe18dd91" @@ -1913,13 +1823,6 @@ resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.6.0.tgz#d7db1bfcc22fd2e4ab574cba0bb6ad779a9a3e7a" integrity sha512-BiBWllUROH9w+P21RzoxJKzqoqpkyM1pRnEKG69bulE9TSQD8SAIvTQqIMZmmCO8pUNkgLP1wndX1gKghSpBmg== -"@ethersproject/networks@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.5.0.tgz#babec47cab892c51f8dd652ce7f2e3e14283981a" - integrity sha512-KWfP3xOnJeF89Uf/FCJdV1a2aDJe5XTN2N52p4fcQ34QhDqQFkgQKZ39VGtiqUgHcLI8DfT0l9azC3KFTunqtA== - dependencies: - "@ethersproject/logger" "^5.5.0" - "@ethersproject/networks@^5.6.3": version "5.6.3" resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.6.3.tgz#3ee3ab08f315b433b50c99702eb32e0cf31f899f" @@ -1927,14 +1830,6 @@ dependencies: "@ethersproject/logger" "^5.6.0" -"@ethersproject/pbkdf2@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.5.0.tgz#e25032cdf02f31505d47afbf9c3e000d95c4a050" - integrity sha512-SaDvQFvXPnz1QGpzr6/HToLifftSXGoXrbpZ6BvoZhmx4bNLHrxDe8MZisuecyOziP1aVEwzC2Hasj+86TgWVg== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/sha2" "^5.5.0" - "@ethersproject/pbkdf2@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.6.1.tgz#f462fe320b22c0d6b1d72a9920a3963b09eb82d1" @@ -1957,32 +1852,33 @@ dependencies: "@ethersproject/logger" "^5.5.0" -"@ethersproject/providers@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.0.tgz#bc2876a8fe5e0053ed9828b1f3767ae46e43758b" - integrity sha512-xqMbDnS/FPy+J/9mBLKddzyLLAQFjrVff5g00efqxPzcAwXiR+SiCGVy6eJ5iAIirBOATjx7QLhDNPGV+AEQsw== +"@ethersproject/providers@^5.6.8": + version "5.6.8" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.6.8.tgz#22e6c57be215ba5545d3a46cf759d265bb4e879d" + integrity sha512-Wf+CseT/iOJjrGtAOf3ck9zS7AgPmr2fZ3N97r4+YXN3mBePTG2/bJ8DApl9mVwYL+RpYbNxMEkEp4mPGdwG/w== dependencies: - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/networks" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/random" "^5.5.0" - "@ethersproject/rlp" "^5.5.0" - "@ethersproject/sha2" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/web" "^5.5.0" + "@ethersproject/abstract-provider" "^5.6.1" + "@ethersproject/abstract-signer" "^5.6.2" + "@ethersproject/address" "^5.6.1" + "@ethersproject/base64" "^5.6.1" + "@ethersproject/basex" "^5.6.1" + "@ethersproject/bignumber" "^5.6.2" + "@ethersproject/bytes" "^5.6.1" + "@ethersproject/constants" "^5.6.1" + "@ethersproject/hash" "^5.6.1" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/networks" "^5.6.3" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/random" "^5.6.1" + "@ethersproject/rlp" "^5.6.1" + "@ethersproject/sha2" "^5.6.1" + "@ethersproject/strings" "^5.6.1" + "@ethersproject/transactions" "^5.6.2" + "@ethersproject/web" "^5.6.1" bech32 "1.1.4" ws "7.4.6" -"@ethersproject/random@5.6.1", "@ethersproject/random@^5.6.1": +"@ethersproject/random@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.6.1.tgz#66915943981bcd3e11bbd43733f5c3ba5a790255" integrity sha512-/wtPNHwbmng+5yi3fkipA8YBT59DdkGRoC2vWk09Dci/q5DlgnMkhIycjHlavrvrjJBkFjO/ueLyT+aUDfc4lA== @@ -1990,14 +1886,6 @@ "@ethersproject/bytes" "^5.6.1" "@ethersproject/logger" "^5.6.0" -"@ethersproject/random@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.5.0.tgz#305ed9e033ca537735365ac12eed88580b0f81f9" - integrity sha512-egGYZwZ/YIFKMHcoBUo8t3a8Hb/TKYX8BCBoLjudVCZh892welR3jOxgOmb48xznc9bTcMm7Tpwc1gHC1PFNFQ== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/rlp@^5.5.0": version "5.5.0" resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.5.0.tgz#530f4f608f9ca9d4f89c24ab95db58ab56ab99a0" @@ -2014,15 +1902,6 @@ "@ethersproject/bytes" "^5.6.1" "@ethersproject/logger" "^5.6.0" -"@ethersproject/sha2@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.5.0.tgz#a40a054c61f98fd9eee99af2c3cc6ff57ec24db7" - integrity sha512-B5UBoglbCiHamRVPLA110J+2uqsifpZaTmid2/7W5rbtYVz6gus6/hSDieIU/6gaKIDcOj12WnOdiymEUHIAOA== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - hash.js "1.1.7" - "@ethersproject/sha2@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.6.1.tgz#211f14d3f5da5301c8972a8827770b6fd3e51656" @@ -2056,7 +1935,7 @@ elliptic "6.5.4" hash.js "1.1.7" -"@ethersproject/strings@5.6.1", "@ethersproject/strings@^5.6.1": +"@ethersproject/strings@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.6.1.tgz#dbc1b7f901db822b5cafd4ebf01ca93c373f8952" integrity sha512-2X1Lgk6Jyfg26MUnsHiT456U9ijxKUybz8IM1Vih+NJxYtXhmvKBcHOmvGqpFSVJ0nQ4ZCoIViR8XlRw1v/+Cw== @@ -2065,15 +1944,6 @@ "@ethersproject/constants" "^5.6.1" "@ethersproject/logger" "^5.6.0" -"@ethersproject/strings@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.5.0.tgz#e6784d00ec6c57710755699003bc747e98c5d549" - integrity sha512-9fy3TtF5LrX/wTrBaT8FGE6TDJyVjOvXynXJz5MT5azq+E6D92zuKNx7i29sWW2FjVOaWjAsiZ1ZWznuduTIIQ== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/transactions@5.6.2", "@ethersproject/transactions@^5.6.2": version "5.6.2" resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.6.2.tgz#793a774c01ced9fe7073985bb95a4b4e57a6370b" @@ -2104,7 +1974,7 @@ "@ethersproject/rlp" "^5.5.0" "@ethersproject/signing-key" "^5.5.0" -"@ethersproject/wallet@5.6.2": +"@ethersproject/wallet@^5.6.2": version "5.6.2" resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.6.2.tgz#cd61429d1e934681e413f4bc847a5f2f87e3a03c" integrity sha512-lrgh0FDQPuOnHcF80Q3gHYsSUODp6aJLAdDmDV0xKCN/T7D99ta1jGVhulg3PY8wiXEngD0DfM0I2XKXlrqJfg== @@ -2125,38 +1995,6 @@ "@ethersproject/transactions" "^5.6.2" "@ethersproject/wordlists" "^5.6.1" -"@ethersproject/wallet@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.5.0.tgz#322a10527a440ece593980dca6182f17d54eae75" - integrity sha512-Mlu13hIctSYaZmUOo7r2PhNSd8eaMPVXe1wxrz4w4FCE4tDYBywDH+bAR1Xz2ADyXGwqYMwstzTrtUVIsKDO0Q== - dependencies: - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/hdnode" "^5.5.0" - "@ethersproject/json-wallets" "^5.5.0" - "@ethersproject/keccak256" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/random" "^5.5.0" - "@ethersproject/signing-key" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/wordlists" "^5.5.0" - -"@ethersproject/web@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.5.0.tgz#0e5bb21a2b58fb4960a705bfc6522a6acf461e28" - integrity sha512-BEgY0eL5oH4mAo37TNYVrFeHsIXLRxggCRG/ksRIxI2X5uj5IsjGmcNiRN/VirQOlBxcUhCgHhaDLG4m6XAVoA== - dependencies: - "@ethersproject/base64" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/web@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.6.1.tgz#6e2bd3ebadd033e6fe57d072db2b69ad2c9bdf5d" @@ -2168,17 +2006,6 @@ "@ethersproject/properties" "^5.6.0" "@ethersproject/strings" "^5.6.1" -"@ethersproject/wordlists@^5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.5.0.tgz#aac74963aa43e643638e5172353d931b347d584f" - integrity sha512-bL0UTReWDiaQJJYOC9sh/XcRu/9i2jMrzf8VLRmPKx58ckSlOJiohODkECCO50dtLZHcGU6MLXQ4OOrgBwP77Q== - dependencies: - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/wordlists@^5.6.1": version "5.6.1" resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.6.1.tgz#1e78e2740a8a21e9e99947e47979d72e130aeda1" @@ -4050,6 +3877,15 @@ "@stablelib/random" "^1.0.1" "@stablelib/wipe" "^1.0.1" +"@stablelib/x25519@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.2.tgz#ae21e2ab668076ec2eb2b4853b82a27fab045fa1" + integrity sha512-wTR0t0Bp1HABLFRbYaE3vFLuco2QbAg6QvxBnzi5j9qjhYezWHW7OiCZyaWbt25UkSaoolUUT4Il0nS/2vcbSw== + dependencies: + "@stablelib/keyagreement" "^1.0.1" + "@stablelib/random" "^1.0.1" + "@stablelib/wipe" "^1.0.1" + "@stablelib/xchacha20@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@stablelib/xchacha20/-/xchacha20-1.0.1.tgz#e98808d1f7d8b20e3ff37c71a3062a2a955d9a8c" @@ -6440,11 +6276,16 @@ caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001286: resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001299.tgz" integrity sha512-iujN4+x7QzqA2NCSrS5VUy+4gLmRd4xv6vbBBsmfVqTx8bLAD8097euLqQgKxSVLvxjSDcvF1T/i9ocgnUFexw== -canonicalize@^1.0.1, canonicalize@^1.0.5: +canonicalize@^1.0.1: version "1.0.5" resolved "https://registry.yarnpkg.com/canonicalize/-/canonicalize-1.0.5.tgz#b43b390ce981d397908bb847c3a8d9614323a47b" integrity sha512-mAjKJPIyP0xqqv6IAkvso07StOmz6cmGtNDg3pXCSzXVZOqka7StIkAhJl/zHOi4M2CgpYfD6aeRWbnrmtvBEA== +canonicalize@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/canonicalize/-/canonicalize-1.0.8.tgz#24d1f1a00ed202faafd9bf8e63352cd4450c6df1" + integrity sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A== + cardinal@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-2.1.1.tgz#7cc1055d822d212954d07b085dea251cc7bc5505" @@ -7140,13 +6981,13 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -credential-status@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/credential-status/-/credential-status-2.0.2.tgz#108d52c4ac466943e86d6f9e45c7cb7603ee7a52" - integrity sha512-Xm52ESIhGU1pxl/EfXbW2rh6R9u1KPyy+/N2dIVARVsVYjIZilu+uhscS0M+TruaOD4RXzGVYtipJif/t3qHsA== +credential-status@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/credential-status/-/credential-status-2.0.3.tgz#843eb8e5bd15fd24d3f40d81ca75deb40ad19d92" + integrity sha512-wUYMCoB3+Gnl87CBBLcZVveylbAltW18cCG/U3FEkYo/bIu95J7lj/CdF2eZ/ulMlZaCIRjokcvboPlsBwZBig== dependencies: - did-jwt "^5.12.3" - did-resolver "^3.1.5" + did-jwt "^6.1.2" + did-resolver "^3.2.2" credentials-context@^2.0.0: version "2.0.0" @@ -7160,7 +7001,7 @@ cross-fetch@3.1.5, cross-fetch@^3.1.5: dependencies: node-fetch "2.6.7" -cross-fetch@^3.0.4, cross-fetch@^3.1.2, cross-fetch@^3.1.4: +cross-fetch@^3.0.4, cross-fetch@^3.1.4: version "3.1.4" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39" integrity sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ== @@ -7699,48 +7540,30 @@ dezalgo@^1.0.0: asap "^2.0.0" wrappy "1" -did-jwt-vc@^2.1.9: - version "2.1.9" - resolved "https://registry.yarnpkg.com/did-jwt-vc/-/did-jwt-vc-2.1.9.tgz#894c68d86083f620ee2bdb36e0097f35b28f079a" - integrity sha512-FBgJBZkdJAGtF0fp8NPgtJmpglRc/ZQ2C1KNevHKmOLgjPrVIeJw5xL8pw0wFwoA2E+uCaXkrZrNtcLQXHG6IQ== +did-jwt-vc@^2.1.12: + version "2.1.12" + resolved "https://registry.yarnpkg.com/did-jwt-vc/-/did-jwt-vc-2.1.12.tgz#2a3117114ea711c610fa6826009f23f8f3820b9a" + integrity sha512-FupgEyv4KxNVmHME/3T1q3QILiSVBMdAuI1vMRc0+7mt2W9Qx/b5qPXdjJSxx5I90J3jNkHoYS4uYJdv8VA/zg== dependencies: - did-jwt "^5.12.3" - did-resolver "^3.1.5" - -did-jwt@^5.12.3: - version "5.12.3" - resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-5.12.3.tgz#f4961b3d3e8f0b69c2bea08809df5e49ec3daa1d" - integrity sha512-/aENag1/Mu4eCwMD62X/ZOV63hkXqpRxyriJP1z/8qL44ZpdwBvvL00so+YtDcTk/xHm3t0OEe6ATvvjNYPMCA== - dependencies: - "@stablelib/ed25519" "^1.0.2" - "@stablelib/random" "^1.0.1" - "@stablelib/sha256" "^1.0.1" - "@stablelib/x25519" "^1.0.1" - "@stablelib/xchacha20poly1305" "^1.0.1" - bech32 "^2.0.0" - canonicalize "^1.0.5" - did-resolver "^3.1.5" - elliptic "^6.5.4" - js-sha3 "^0.8.0" - multiformats "^9.4.10" - uint8arrays "^3.0.0" + did-jwt "^6.1.2" + did-resolver "^3.2.2" -did-jwt@^5.12.4: - version "5.12.4" - resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-5.12.4.tgz#6357a550173b7155f2e5cf3b8ea3f8e8be180617" - integrity sha512-rFY7yIlE/79zB648Drn9vLiM+F4+3IzRkFvBcHelZqQmnPy037U9VWeeP/f2PlnQKgW5qbYXVJR5KftLfo58TA== +did-jwt@^6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-6.1.2.tgz#adef6c3264ae4bcecac5d2cab5de8f3a3024ca03" + integrity sha512-OkXsk5zUi2uwSWh2WiaGCLEPKon9HDfMT3mmUp0r7jFgyNWiEFTP9oCLYJq/SaVkKRZsImehrnd0+Ku9ivUvsw== dependencies: "@stablelib/ed25519" "^1.0.2" "@stablelib/random" "^1.0.1" "@stablelib/sha256" "^1.0.1" - "@stablelib/x25519" "^1.0.1" + "@stablelib/x25519" "^1.0.2" "@stablelib/xchacha20poly1305" "^1.0.1" bech32 "^2.0.0" - canonicalize "^1.0.5" - did-resolver "^3.1.5" + canonicalize "^1.0.8" + did-resolver "^3.2.2" elliptic "^6.5.4" js-sha3 "^0.8.0" - multiformats "^9.4.10" + multiformats "^9.6.5" uint8arrays "^3.0.0" did-resolver@3.2.2, did-resolver@^3.2.2: @@ -7748,11 +7571,6 @@ did-resolver@3.2.2, did-resolver@^3.2.2: resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-3.2.2.tgz#6f4e252a810f785d1b28a10265fad6dffee25158" integrity sha512-Eeo2F524VM5N3W4GwglZrnul2y6TLTwMQP3In62JdG34NZoqihYyOZLk+5wUW8sSgvIYIcJM8Dlt3xsdKZZ3tg== -did-resolver@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-3.1.5.tgz#1a82a00fa96d64085676183bff40ebc13c88cd6a" - integrity sha512-/4lM1vK5osnWVZ2oN9QhlWV5xOwssuLSL1MvueBc8LQWotbD5kM9XQMe7h4GydYpbh3JaWMFkOWwc9jvSZ+qgg== - didyoumean@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" @@ -8543,55 +8361,39 @@ ethr-did-registry@0.0.3, ethr-did-registry@^0.0.3: resolved "https://registry.yarnpkg.com/ethr-did-registry/-/ethr-did-registry-0.0.3.tgz#f363d2c73cb9572b57bd7a5c9c90c88485feceb5" integrity sha512-4BPvMGkxAK9vTduCq6D5b8ZqjteD2cvDIPPriXP6nnmPhWKFSxypo+AFvyQ0omJGa0cGTR+dkdI/8jiF7U/qaw== -ethr-did-resolver@5.0.4, ethr-did-resolver@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-5.0.4.tgz#a5c09465ee2b1cf752e49f09673bc44567bd8c59" - integrity sha512-eccHUIS207ymuxjAjFWu7jDeKKd1Sk+GDiKL3T0IpQRXwemkh6k9V2pQah9uQ7tS8sxZ8mKT7SeWXDmM6Uf/UQ== - dependencies: - "@ethersproject/abi" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/contracts" "^5.5.0" - "@ethersproject/providers" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - did-resolver "^3.1.5" - ethr-did-registry "^0.0.3" - -ethr-did-resolver@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-5.0.3.tgz#0e35c9a2711039508916caed46f53e7eeae257b9" - integrity sha512-GgLF8oSZdq2GONLUywuoCozaRDqw80a/qxzdoR9iwyjeVfHMclIy6iOojuFPMJnK/b6xTDfVler/4bFphIxrzQ== +ethr-did-resolver@6.0.1, ethr-did-resolver@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-6.0.1.tgz#e976f41094eec3a78197b4ee46a127b61272eb89" + integrity sha512-wVReAQ4Zv0Ot7/Q4+uwHFnO4+DDxSHcTQ36UXZDSkUiiJQqVFxPvGzNz6++D4VBwQYHFbEwu7OWfk33l7uuFbA== dependencies: - "@ethersproject/abi" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/contracts" "^5.5.0" - "@ethersproject/providers" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - did-resolver "^3.1.5" + "@ethersproject/abi" "^5.6.3" + "@ethersproject/abstract-signer" "^5.6.2" + "@ethersproject/address" "^5.6.1" + "@ethersproject/basex" "^5.6.1" + "@ethersproject/bignumber" "^5.6.2" + "@ethersproject/contracts" "^5.6.2" + "@ethersproject/providers" "^5.6.8" + "@ethersproject/transactions" "^5.6.2" + did-resolver "^3.2.2" ethr-did-registry "^0.0.3" -ethr-did@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ethr-did/-/ethr-did-2.2.0.tgz#decff7b08f848659be8e770941ab96d99778b932" - integrity sha512-zYSZ5/CSEQUHc8PxO3OsUG7fNSftuQuz2AL1rsCtEa/QqK/tONfuvpf27QUVa7pdxl8Nia12uTZOKQCN0UH8tw== +ethr-did@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/ethr-did/-/ethr-did-2.2.3.tgz#d4b12822961302f85b9761b24ef286292fc744ee" + integrity sha512-BvMRfh9MN5PzNaPG4PAGSfhhj+noo0HfERVh2Hs0CyW+GIdDqdWqwG5GMAt0827WTwysZdSGEQ7iTyw+Tgk+dQ== dependencies: - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/base64" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/providers" "^5.5.0" - "@ethersproject/signing-key" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/wallet" "^5.5.0" - did-jwt "^5.12.3" - did-resolver "^3.1.5" - ethr-did-resolver "^5.0.3" + "@ethersproject/abstract-signer" "^5.6.2" + "@ethersproject/base64" "^5.6.1" + "@ethersproject/basex" "^5.6.1" + "@ethersproject/bytes" "^5.6.1" + "@ethersproject/providers" "^5.6.8" + "@ethersproject/signing-key" "^5.6.2" + "@ethersproject/strings" "^5.6.1" + "@ethersproject/transactions" "^5.6.2" + "@ethersproject/wallet" "^5.6.2" + did-jwt "^6.1.2" + did-resolver "^3.2.2" + ethr-did-resolver "^6.0.1" event-target-shim@^5.0.0: version "5.0.1" @@ -12567,16 +12369,16 @@ multicodec@^3.2.1: uint8arrays "^3.0.0" varint "^6.0.0" -multiformats@^9.4.10: - version "9.4.10" - resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.4.10.tgz#d654d06b28cc066506e4e59b246d65267fb6b93b" - integrity sha512-BwWGvgqB/5J/cnWaOA0sXzJ+UGl+kyFAw3Sw1L6TN4oad34C9OpW+GCpYTYPDp4pUaXDC1EjvB3yv9Iodo1EhA== - multiformats@^9.4.2: version "9.4.5" resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.4.5.tgz#9ac47bbc87aadb09d4bd05e9cd3da6f4436414f6" integrity sha512-zQxukxsHM34EJi3yT3MkUlycY9wEouyrAz0PSN+CyCj6cYchJZ4LrTH74YtlsxVyAK6waz/gnVLmJwi3P0knKg== +multiformats@^9.6.5: + version "9.6.5" + resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.6.5.tgz#f2d894a26664b454a90abf5a8911b7e39195db80" + integrity sha512-vMwf/FUO+qAPvl3vlSZEgEVFY/AxeZq5yg761ScF3CZsXgmTi/HGkicUiNN0CI4PW8FiY2P0OLklOcmQjdQJhw== + multimatch@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-4.0.0.tgz#8c3c0f6e3e8449ada0af3dd29efb491a375191b3" @@ -17163,7 +16965,7 @@ uid-number@0.0.6: resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" integrity sha1-DqEOgDXo61uOREnwbaHHMGY7qoE= -uint8arrays@3.0.0, uint8arrays@^3.0.0: +uint8arrays@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-3.0.0.tgz#260869efb8422418b6f04e3fac73a3908175c63b" integrity sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA== @@ -17468,15 +17270,7 @@ wcwidth@^1.0.0, wcwidth@^1.0.1: dependencies: defaults "^1.0.3" -web-did-resolver@2.0.16: - version "2.0.16" - resolved "https://registry.yarnpkg.com/web-did-resolver/-/web-did-resolver-2.0.16.tgz#23e6607a6a068218ff8403d967b8a70af2e0cc25" - integrity sha512-PNGO9nP8H1mTxBRzg/AdzB40HXHhQ99BMCMEQYLK1fatohdmEDetJglgTFwavKQEbBexDG3xknCIzryWD7iS0A== - dependencies: - cross-fetch "^3.1.2" - did-resolver "^3.1.5" - -web-did-resolver@2.0.18: +web-did-resolver@2.0.18, web-did-resolver@^2.0.18: version "2.0.18" resolved "https://registry.yarnpkg.com/web-did-resolver/-/web-did-resolver-2.0.18.tgz#d31c737808c66e10bb9c4fea04a6f7ed19d96c4f" integrity sha512-6jVQMbsNdzsRqnkEPKPfnfFY0IUJjt9LKy6h+tzjc9NhgI6MQWuvZf8ouGBw7W9qDvlAtHY+lrk6OEatjPJGZA== @@ -17484,20 +17278,12 @@ web-did-resolver@2.0.18: cross-fetch "^3.1.5" did-resolver "^3.2.2" -web-did-resolver@^2.0.12: - version "2.0.12" - resolved "https://registry.yarnpkg.com/web-did-resolver/-/web-did-resolver-2.0.12.tgz#3413b988c2ab9d52378be7aa22ef457d70c48e21" - integrity sha512-bidL5bPn8CYFM33sfh465iLcgTbkNpfAlmpWkSC69D24fXnAY36tbMfhnehqIut+VCKZqIqeeZZl5ACanF5/+A== - dependencies: - cross-fetch "^3.1.2" - did-resolver "^3.1.5" - web-streams-polyfill@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.1.0.tgz#86f983b4f44745502b0d8563d9ef3afc609d4465" integrity sha512-wO9r1YnYe7kFBLHyyVEhV1H8VRWoNiNnuP+v/HUUmSTaRF8F93Kmd3JMrETx0f11GXxRek6OcL2QtjFIdc5WYw== -web-vitals@2.1.4: +web-vitals@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-2.1.4.tgz#76563175a475a5e835264d373704f9dde718290c" integrity sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==