From f6b4dc34f17d2aa1df0c6441399cead19a805e67 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Tue, 30 Jul 2024 16:46:12 +0200 Subject: [PATCH 1/3] Refactor complete for the did-create script --- package.json | 3 +- src/did-create.ts | 50 +- src/utils.ts | 88 +-- yarn.lock | 1491 +++++++++++++++++++++++++++++++-------------- 4 files changed, 1112 insertions(+), 520 deletions(-) diff --git a/package.json b/package.json index d804673..64a7cc2 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "fix": "yarn lint:fix && yarn style:fix" }, "dependencies": { - "@kiltprotocol/sdk-js": "0.33.2-dip-2", + "@kiltprotocol/augment-api": "1.11210.0-rc", + "@kiltprotocol/sdk-js": "1.0.0-alpha.3", "dotenv": "^16.0.1" }, "devDependencies": { diff --git a/src/did-create.ts b/src/did-create.ts index 0cc583f..af43e62 100644 --- a/src/did-create.ts +++ b/src/did-create.ts @@ -2,8 +2,11 @@ import 'dotenv/config' import { mnemonicGenerate } from '@polkadot/util-crypto' +import * as Did from '@kiltprotocol/did' import * as Kilt from '@kiltprotocol/sdk-js' +import type { KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -12,7 +15,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -38,14 +41,40 @@ async function main() { `DID authentication key mnemonic could not be found. Please specify one of the following variables: "${utils.envNames.authMnemonic}", "${utils.envNames.authDerivationPath}" depending on the use case.` ) } + const authDidKey = Did.multibaseKeyToDidKey(authKey?.publicKeyMultibase) const assertionKey = utils.generateAttestationKey() + const assertionDidKey = assertionKey + ? Did.multibaseKeyToDidKey(assertionKey.publicKeyMultibase) + : undefined const delegationKey = utils.generateDelegationKey() + const delegationDidKey = delegationKey + ? Did.multibaseKeyToDidKey(delegationKey.publicKeyMultibase) + : undefined - const fullDidCreationTx = await Kilt.Did.getStoreTx( + const fullDidCreationTx = await Did.getStoreTx( { - authentication: [authKey], - assertionMethod: assertionKey ? [assertionKey] : undefined, - capabilityDelegation: delegationKey ? [delegationKey] : undefined, + authentication: [ + { + publicKey: authDidKey.publicKey, + type: authDidKey.keyType as Did.DidSigningMethodType, + }, + ], + assertionMethod: assertionDidKey + ? [ + { + publicKey: assertionDidKey.publicKey, + type: assertionDidKey.keyType as Did.DidSigningMethodType, + }, + ] + : undefined, + capabilityDelegation: delegationDidKey + ? [ + { + publicKey: delegationDidKey.publicKey, + type: delegationDidKey.keyType as Did.DidSigningMethodType, + }, + ] + : undefined, }, submitterAddress, utils.getKeypairTxSigningCallback(authKey) @@ -53,16 +82,19 @@ async function main() { const encodedOperation = fullDidCreationTx.toHex() console.log( - `Operation will create the following DID: ${Kilt.Did.getFullDidUriFromKey( - authKey - )}` + `Operation will create the following DID: ${Did.getFullDidFromVerificationMethod( + { publicKeyMultibase: authKey.publicKeyMultibase } + )} ` ) console.log( // eslint-disable-next-line max-len `Encoded DID creation operation: ${encodedOperation}. Please submit this via PolkadotJS with the account that was provided: ${submitterAddress}.` ) console.log( - `Direct link: ${utils.generatePolkadotJSLink(apiAddress, encodedOperation)}` + `Direct link: ${utils.generatePolkadotJSLink( + apiAddress, + encodedOperation + )} ` ) } diff --git a/src/utils.ts b/src/utils.ts index 5c55b7e..6d6d521 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,11 +1,18 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ +import type { + DidUrl, + MultibaseKeyPair, + SignatureVerificationRelationship, + VerificationMethod, + VerificationRelationship, +} from '@kiltprotocol/types' import type { BN } from '@polkadot/util' import type { Call } from '@polkadot/types/interfaces' import type { Codec } from '@polkadot/types/types' import type { Result } from '@polkadot/types' -import { ApiPromise, Keyring } from '@polkadot/api' +import { ApiPromise } from '@polkadot/api' import { KeyringPair } from '@polkadot/keyring/types' import { blake2AsHex } from '@polkadot/util-crypto' import { u8aToHex } from '@polkadot/util' @@ -43,9 +50,9 @@ export const envNames = { type Defaults = { wsAddress: string - authKeyType: Kilt.KeyringPair['type'] - attKeyType: Kilt.KeyringPair['type'] - delKeyType: Kilt.KeyringPair['type'] + authKeyType: KeyringPair['type'] + attKeyType: KeyringPair['type'] + delKeyType: KeyringPair['type'] identityDetailsType: string accountIdType: string blockNumberType: string @@ -65,17 +72,6 @@ export const defaults: Defaults = { dipProofVersion: 0, } -export function getKeypairSigningCallback( - keyUri: Kilt.DidResourceUri, - signingKeypair: Kilt.KiltKeyringPair -): Kilt.SignCallback { - return async ({ data }) => ({ - signature: signingKeypair.sign(data), - keyType: signingKeypair.type, - keyUri, - }) -} - export function getKeypairTxSigningCallback( signingKeypair: Kilt.KiltKeyringPair ): Kilt.Did.GetStoreTxSignCallback { @@ -113,19 +109,15 @@ function readAuthenticationKeyMnemonic(): string | undefined { return undefined } } -export function generateAuthenticationKey(): Kilt.KiltKeyringPair | undefined { +export function generateAuthenticationKey(): MultibaseKeyPair | undefined { const authKeyMnemonic = readAuthenticationKeyMnemonic() const authKeyType = authKeyMnemonic === undefined ? undefined - : (process.env[envNames.authKeyType] as Kilt.KeyringPair['type']) || + : (process.env[envNames.authKeyType] as KeyringPair['type']) || defaults.authKeyType if (authKeyMnemonic !== undefined) { - return new Keyring().addFromMnemonic( - authKeyMnemonic, - {}, - authKeyType - ) as Kilt.KiltKeyringPair + return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { return undefined } @@ -148,19 +140,15 @@ function readAttestationKeyMnemonic(): string | undefined { return undefined } } -export function generateAttestationKey(): Kilt.KiltKeyringPair | undefined { +export function generateAttestationKey(): MultibaseKeyPair | undefined { const attKeyMnemonic = readAttestationKeyMnemonic() const attKeyType = attKeyMnemonic === undefined ? undefined - : (process.env[envNames.attKeyType] as Kilt.KeyringPair['type']) || + : (process.env[envNames.attKeyType] as KeyringPair['type']) || defaults.attKeyType if (attKeyMnemonic !== undefined) { - return new Keyring().addFromMnemonic( - attKeyMnemonic, - {}, - attKeyType - ) as Kilt.KiltKeyringPair + return Kilt.generateKeypair({ seed: attKeyMnemonic, type: attKeyType }) } else { return undefined } @@ -183,19 +171,15 @@ function readDelegationKeyMnemonic(): string | undefined { return undefined } } -export function generateDelegationKey(): Kilt.KiltKeyringPair | undefined { +export function generateDelegationKey(): MultibaseKeyPair | undefined { const delKeyMnemonic = readDelegationKeyMnemonic() const delKeyType = delKeyMnemonic === undefined ? undefined - : (process.env[envNames.delKeyType] as Kilt.KeyringPair['type']) || + : (process.env[envNames.delKeyType] as KeyringPair['type']) || defaults.delKeyType if (delKeyMnemonic !== undefined) { - return new Keyring().addFromMnemonic( - delKeyMnemonic, - {}, - delKeyType - ) as Kilt.KiltKeyringPair + return Kilt.generateKeypair({ seed: delKeyMnemonic, type: delKeyType }) } else { return undefined } @@ -218,38 +202,32 @@ function readNewAuthenticationKeyMnemonic(): string | undefined { return undefined } } -export function generateNewAuthenticationKey(): - | Kilt.KiltKeyringPair - | undefined { +export function generateNewAuthenticationKey(): MultibaseKeyPair | undefined { const authKeyMnemonic = readNewAuthenticationKeyMnemonic() const authKeyType = authKeyMnemonic === undefined ? undefined - : (process.env[envNames.newAuthKeyType] as Kilt.KeyringPair['type']) || + : (process.env[envNames.newAuthKeyType] as KeyringPair['type']) || defaults.authKeyType if (authKeyMnemonic !== undefined) { - return new Keyring().addFromMnemonic( - authKeyMnemonic, - {}, - authKeyType - ) as Kilt.KiltKeyringPair + return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { return undefined } } -const validValues: Set = new Set([ - 'authentication' as Kilt.VerificationKeyRelationship, - 'assertionMethod' as Kilt.VerificationKeyRelationship, - 'capabilityDelegation' as Kilt.VerificationKeyRelationship, +const validValues: Set = new Set([ + 'authentication', + 'assertionMethod', + 'capabilityDelegation', ]) -export function parseVerificationMethod(): Kilt.VerificationKeyRelationship { +export function parseVerificationMethod(): SignatureVerificationRelationship { const verificationMethod = process.env[envNames.verificationMethod] if (verificationMethod === undefined) { throw new Error(`No ${envNames.verificationMethod} env variable specified.`) } const castedVerificationMethod = - verificationMethod as Kilt.VerificationKeyRelationship + verificationMethod as SignatureVerificationRelationship if (validValues.has(castedVerificationMethod)) { return castedVerificationMethod } else { @@ -263,14 +241,14 @@ export async function generateSiblingDipTx( relayApi: ApiPromise, providerApi: ApiPromise, consumerApi: ApiPromise, - did: Kilt.DidUri, + did: DidUrl, call: Call, submitterAccount: KeyringPair['address'], - keyId: Kilt.DidVerificationKey['id'], - didKeyRelationship: Kilt.VerificationKeyRelationship, + keyId: VerificationMethod['id'], + didKeyRelationship: VerificationRelationship, includeWeb3Name: boolean, version: number, - sign: Kilt.SignExtrinsicCallback + sign: SignExtrinsicCallback ): Promise { const signature = await generateDipTxSignature( consumerApi, diff --git a/yarn.lock b/yarn.lock index 46d4eba..b100d4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -41,13 +41,38 @@ __metadata: languageName: node linkType: hard -"@digitalbazaar/security-context@npm:^1.0.0": +"@digitalbazaar/multikey-context@npm:^2.0.1": + version: 2.0.1 + resolution: "@digitalbazaar/multikey-context@npm:2.0.1" + checksum: 74e0d65110fa84167d899bcdfb69ed3612b664564866089a9b8a1402648f9a4900cc82260922c1a2a3128218f7ecd95a98e3854b43be5216642d5e9c6694b339 + languageName: node + linkType: hard + +"@digitalbazaar/security-context@npm:^1.0.1": version: 1.0.1 resolution: "@digitalbazaar/security-context@npm:1.0.1" checksum: acba0adbee983d5c3fac7e0f4d710888493edbf88d76adf94831e947becfd25640df74195616ba9c1607c396b20b91166e0a065a8cf04a08d3d2f2f068425d2f languageName: node linkType: hard +"@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": + version: 4.4.0 + resolution: "@eslint-community/eslint-utils@npm:4.4.0" + dependencies: + eslint-visitor-keys: ^3.3.0 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: cdfe3ae42b4f572cbfb46d20edafe6f36fc5fb52bf2d90875c58aefe226892b9677fef60820e2832caf864a326fe4fc225714c46e8389ccca04d5f9288aabd22 + languageName: node + linkType: hard + +"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.6.1": + version: 4.11.0 + resolution: "@eslint-community/regexpp@npm:4.11.0" + checksum: 97d2fe46690b69417a551bd19a3dc53b6d9590d2295c43cc4c4e44e64131af541e2f4a44d5c12e87de990403654d3dae9d33600081f3a2f0386b368abc9111ec + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^1.3.2": version: 1.3.2 resolution: "@eslint/eslintrc@npm:1.3.2" @@ -65,6 +90,30 @@ __metadata: languageName: node linkType: hard +"@eslint/eslintrc@npm:^2.1.4": + version: 2.1.4 + resolution: "@eslint/eslintrc@npm:2.1.4" + dependencies: + ajv: ^6.12.4 + debug: ^4.3.2 + espree: ^9.6.0 + globals: ^13.19.0 + ignore: ^5.2.0 + import-fresh: ^3.2.1 + js-yaml: ^4.1.0 + minimatch: ^3.1.2 + strip-json-comments: ^3.1.1 + checksum: 10957c7592b20ca0089262d8c2a8accbad14b4f6507e35416c32ee6b4dbf9cad67dfb77096bbd405405e9ada2b107f3797fe94362e1c55e0b09d6e90dd149127 + languageName: node + linkType: hard + +"@eslint/js@npm:8.57.0": + version: 8.57.0 + resolution: "@eslint/js@npm:8.57.0" + checksum: 315dc65b0e9893e2bff139bddace7ea601ad77ed47b4550e73da8c9c2d2766c7a575c3cddf17ef85b8fd6a36ff34f91729d0dcca56e73ca887c10df91a41b0bb + languageName: node + linkType: hard + "@humanwhocodes/config-array@npm:^0.10.4": version: 0.10.4 resolution: "@humanwhocodes/config-array@npm:0.10.4" @@ -76,6 +125,17 @@ __metadata: languageName: node linkType: hard +"@humanwhocodes/config-array@npm:^0.11.14": + version: 0.11.14 + resolution: "@humanwhocodes/config-array@npm:0.11.14" + dependencies: + "@humanwhocodes/object-schema": ^2.0.2 + debug: ^4.3.1 + minimatch: ^3.0.5 + checksum: 861ccce9eaea5de19546653bccf75bf09fe878bc39c3aab00aeee2d2a0e654516adad38dd1098aab5e3af0145bbcbf3f309bdf4d964f8dab9dcd5834ae4c02f2 + languageName: node + linkType: hard + "@humanwhocodes/gitignore-to-minimatch@npm:^1.0.2": version: 1.0.2 resolution: "@humanwhocodes/gitignore-to-minimatch@npm:1.0.2" @@ -97,6 +157,13 @@ __metadata: languageName: node linkType: hard +"@humanwhocodes/object-schema@npm:^2.0.2": + version: 2.0.3 + resolution: "@humanwhocodes/object-schema@npm:2.0.3" + checksum: d3b78f6c5831888c6ecc899df0d03bcc25d46f3ad26a11d7ea52944dc36a35ef543fad965322174238d677a43d5c694434f6607532cff7077062513ad7022631 + languageName: node + linkType: hard + "@jridgewell/resolve-uri@npm:^3.0.3": version: 3.1.0 resolution: "@jridgewell/resolve-uri@npm:3.1.0" @@ -121,166 +188,229 @@ __metadata: languageName: node linkType: hard -"@kiltprotocol/asset-did@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/asset-did@npm:0.33.2-dip-2" +"@kiltprotocol/augment-api@npm:1.11210.0-rc": + version: 1.11210.0-rc + resolution: "@kiltprotocol/augment-api@npm:1.11210.0-rc" + dependencies: + "@typescript-eslint/eslint-plugin": ^7.0.2 + "@typescript-eslint/parser": ^7.0.2 + dotenv: ^16.4.5 + eslint: ^8.57.0 + eslint-plugin-unused-imports: ^3.1.0 + peerDependencies: + "@kiltprotocol/type-definitions": ^0.35.0 + "@polkadot/api": ~10.12.0 + "@polkadot/typegen": ~10.12.0 + typescript: "*" + bin: + kilt_reaugment: augmentFromFile.mjs + kilt_updateMetadata: updateMetadata.mjs + checksum: 44288830a41e467f32d8efcd5f5027a73810b5835f0d92ab1dfbd30935ad66951802db14633ab67cd0f81ee26755cb4cc77d55bf0f3c180432a9bc844d83e7ac + languageName: node + linkType: hard + +"@kiltprotocol/chain-helpers@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/chain-helpers@npm:0.100.0-alpha.3" dependencies: - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - checksum: c6d72231a9cbff21c09ff6f454da2abe5fd7651a0b473e94b012b7a7ed8310194d2f6b6b6221729d468a67c4e85738ec5de427f808e0261c8718df1290ce992b + "@kiltprotocol/config": 0.100.0-alpha.3 + "@kiltprotocol/types": 0.100.0-alpha.3 + "@kiltprotocol/utils": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + "@polkadot/api-derive": ^12.0.0 + "@polkadot/types": ^12.0.0 + "@polkadot/util": ^13.0.0 + "@polkadot/util-crypto": ^13.0.0 + peerDependencies: + "@kiltprotocol/augment-api": "*" + "@kiltprotocol/type-definitions": ^0.35.0 + peerDependenciesMeta: + "@kiltprotocol/augment-api": + optional: true + checksum: 6f5571f798f45381ad7cbbb6bb39a811f0d61d9253300f4027b22ef9b92d9224689663f20fbd01a20f32a10f6addd23c68bcda2cba2dbda2a83349405ad8a897 languageName: node linkType: hard -"@kiltprotocol/augment-api@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/augment-api@npm:0.33.2-dip-2" +"@kiltprotocol/config@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/config@npm:0.100.0-alpha.3" dependencies: - "@kiltprotocol/type-definitions": 0.33.2-dip-2 - checksum: e41c475c8fc4e41526388380285535cbb94d9a82bef8ddf80e6b8674e7d7ad4c2518f084ce72d3247cea81a4ad8f09e903e379721cf08105b3f43b4efb7a0876 + "@kiltprotocol/types": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + typescript-logging: ^1.0.0 + checksum: 3e0715616c2129039914329c9d57cff646866de1376d3ddb76d1bc4fe90f06f41c9555c08ad4c026025907a914a7eeab420c1220b4104f4182bfb17fa774aa28 + languageName: node + linkType: hard + +"@kiltprotocol/credentials@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/credentials@npm:0.100.0-alpha.3" + dependencies: + "@kiltprotocol/chain-helpers": 0.100.0-alpha.3 + "@kiltprotocol/config": 0.100.0-alpha.3 + "@kiltprotocol/did": 0.100.0-alpha.3 + "@kiltprotocol/eddsa-jcs-2022": 0.1.0-rc.4 + "@kiltprotocol/es256k-jcs-2023": 0.1.0-rc.4 + "@kiltprotocol/jcs-data-integrity-proofs-common": 0.1.0-rc.4 + "@kiltprotocol/sr25519-jcs-2023": 0.1.0-rc.4 + "@kiltprotocol/types": 0.100.0-alpha.3 + "@kiltprotocol/utils": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + "@polkadot/keyring": ^13.0.0 + "@polkadot/types": ^12.0.0 + "@polkadot/util": ^13.0.0 + "@polkadot/util-crypto": ^13.0.0 + json-pointer: ^0.6.2 + peerDependencies: + "@kiltprotocol/augment-api": "*" + peerDependenciesMeta: + "@kiltprotocol/augment-api": + optional: true + checksum: 7958a10a23d51a85b7505cff3122e03ac0f8a16f16e0016d1a01de3d2b049bca0fc9e0de4244e84ab9a240c761b61f28e2592538676af6f1ecebb66c7733a173 languageName: node linkType: hard -"@kiltprotocol/chain-helpers@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/chain-helpers@npm:0.33.2-dip-2" +"@kiltprotocol/did@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/did@npm:0.100.0-alpha.3" dependencies: - "@kiltprotocol/config": 0.33.2-dip-2 - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - "@polkadot/api": ^10.4.0 - "@polkadot/types": ^10.4.0 - checksum: 74a66c684efa85b5558cfc6b5f68c41453140c2952d6a75079fb7635009af53978da4ca15c72ec76556233548c021c782a5b22a939b2cb26bce9f461172e2edf + "@digitalbazaar/multikey-context": ^2.0.1 + "@digitalbazaar/security-context": ^1.0.1 + "@kiltprotocol/config": 0.100.0-alpha.3 + "@kiltprotocol/types": 0.100.0-alpha.3 + "@kiltprotocol/utils": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + "@polkadot/keyring": ^13.0.0 + "@polkadot/types": ^12.0.0 + "@polkadot/util": ^13.0.0 + "@polkadot/util-crypto": ^13.0.0 + peerDependencies: + "@kiltprotocol/augment-api": "*" + peerDependenciesMeta: + "@kiltprotocol/augment-api": + optional: true + checksum: d678417496675e5ad8ddd9ff71437487e3fe268f1cb4dcf66749a7edf88a52217ce8ff24b8d0925e17bff1a028fbf45124a96c10c777758af5886278c2b5d51e languageName: node linkType: hard -"@kiltprotocol/config@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/config@npm:0.33.2-dip-2" +"@kiltprotocol/eddsa-jcs-2022@npm:0.1.0-rc.4": + version: 0.1.0-rc.4 + resolution: "@kiltprotocol/eddsa-jcs-2022@npm:0.1.0-rc.4" dependencies: - "@kiltprotocol/types": 0.33.2-dip-2 - "@polkadot/api": ^10.4.0 - typescript-logging: ^1.0.0 - checksum: dbf52e5cbf2212acd1f89fe5959878c87afc8c6980e2b1bd7596a1fc529c325d469c1c0f43de20336ba0659d6eb33ee1ee25dc4b65a675be7c39e5102905d027 + "@kiltprotocol/jcs-data-integrity-proofs-common": ^0.1.0-rc.4 + "@noble/curves": ^1.0.0 + "@scure/base": ^1.1.1 + checksum: 0011e61e70986705a2c7754126df60d0df71de11e982120756031c3ac2daa6c85b4eeac26b45318ce6027d0840fb57d1d91d42f74e012ce87f108f8f34290952 languageName: node linkType: hard -"@kiltprotocol/core@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/core@npm:0.33.2-dip-2" +"@kiltprotocol/es256k-jcs-2023@npm:0.1.0-rc.4": + version: 0.1.0-rc.4 + resolution: "@kiltprotocol/es256k-jcs-2023@npm:0.1.0-rc.4" dependencies: - "@kiltprotocol/asset-did": 0.33.2-dip-2 - "@kiltprotocol/augment-api": 0.33.2-dip-2 - "@kiltprotocol/chain-helpers": 0.33.2-dip-2 - "@kiltprotocol/config": 0.33.2-dip-2 - "@kiltprotocol/did": 0.33.2-dip-2 - "@kiltprotocol/type-definitions": 0.33.2-dip-2 - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - "@polkadot/api": ^10.4.0 - "@polkadot/keyring": ^12.0.0 - "@polkadot/types": ^10.4.0 - "@polkadot/util": ^12.0.0 - "@polkadot/util-crypto": ^12.0.0 - checksum: 5ea0f98bd4169c05f90123462894bb0fef043ff82ce0aff3e92f36ecd40a46444d82c04bfa361937161d177934717d9d4c1197d087a24ad778ca4b3092f9d010 + "@kiltprotocol/jcs-data-integrity-proofs-common": ^0.1.0-rc.4 + "@noble/curves": ^1.0.0 + "@scure/base": ^1.1.1 + checksum: 6e79014f855fce7cfd76c54087b71f2dae64101d1122a5a9819d0e7a98231f7cbc895537065cd1c1cb7ffe7e44ad9fec92bc30e093571a9533c37a8b8eed4171 languageName: node linkType: hard -"@kiltprotocol/did@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/did@npm:0.33.2-dip-2" +"@kiltprotocol/jcs-data-integrity-proofs-common@npm:0.1.0-rc.4, @kiltprotocol/jcs-data-integrity-proofs-common@npm:^0.1.0-rc.4": + version: 0.1.0-rc.4 + resolution: "@kiltprotocol/jcs-data-integrity-proofs-common@npm:0.1.0-rc.4" dependencies: - "@digitalbazaar/security-context": ^1.0.0 - "@kiltprotocol/augment-api": 0.33.2-dip-2 - "@kiltprotocol/config": 0.33.2-dip-2 - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - "@polkadot/api": ^10.4.0 - "@polkadot/keyring": ^12.0.0 - "@polkadot/types": ^10.4.0 - "@polkadot/types-codec": ^10.4.0 - "@polkadot/util": ^12.0.0 - "@polkadot/util-crypto": ^12.0.0 - checksum: f71b06da32a3d79bf1aefe2560e38cb3d0a62d249433832b52b29419d434d6fb917ca59a995dd20c8f992c4b1a7c2b64bdb769647b0bee4272f7f4ab51979d4a + "@noble/hashes": ^1.3.0 + canonicalize: ^2.0.0 + varint: ^6.0.0 + peerDependencies: + "@scure/base": ^1.1.0 + checksum: 91f0e5e3ebe09bb75782b994e4ac1e898fb57c4d0c2d72adfd32c7b0d200df4163ca07dd34d0dcab8704c059efe90616a1f6f3c8874fc09f8830829fa9cf3b43 languageName: node linkType: hard -"@kiltprotocol/messaging@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/messaging@npm:0.33.2-dip-2" +"@kiltprotocol/sdk-js@npm:1.0.0-alpha.3": + version: 1.0.0-alpha.3 + resolution: "@kiltprotocol/sdk-js@npm:1.0.0-alpha.3" dependencies: - "@kiltprotocol/core": 0.33.2-dip-2 - "@kiltprotocol/did": 0.33.2-dip-2 - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - "@polkadot/util": ^12.0.0 - checksum: 4fd611931001fd326b125d09c68142fc71c1b2c8728b59e71470b9d9101b8b3eb3a29b4cf0427b6dabfc878b3e7d9b984ec9d4e8619a14832196c36832771d3b + "@kiltprotocol/chain-helpers": 0.100.0-alpha.3 + "@kiltprotocol/config": 0.100.0-alpha.3 + "@kiltprotocol/credentials": 0.100.0-alpha.3 + "@kiltprotocol/did": 0.100.0-alpha.3 + "@kiltprotocol/type-definitions": ^0.35.0 + "@kiltprotocol/utils": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + "@polkadot/util": ^13.0.0 + peerDependencies: + "@kiltprotocol/augment-api": ^1.11210.0 + checksum: 7ac0cd3a3ccca6a6201c6d304e89d6cd36fefa570c4c0f3cefe4f2c4769db6cfe812be54681f3e0abdaa0df390217245489609d28be96a2511f6cd09100e744a languageName: node linkType: hard -"@kiltprotocol/sdk-js@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/sdk-js@npm:0.33.2-dip-2" +"@kiltprotocol/sr25519-jcs-2023@npm:0.1.0-rc.4": + version: 0.1.0-rc.4 + resolution: "@kiltprotocol/sr25519-jcs-2023@npm:0.1.0-rc.4" dependencies: - "@kiltprotocol/chain-helpers": 0.33.2-dip-2 - "@kiltprotocol/config": 0.33.2-dip-2 - "@kiltprotocol/core": 0.33.2-dip-2 - "@kiltprotocol/did": 0.33.2-dip-2 - "@kiltprotocol/messaging": 0.33.2-dip-2 - "@kiltprotocol/types": 0.33.2-dip-2 - "@kiltprotocol/utils": 0.33.2-dip-2 - checksum: 552773144d6afab40aaea5d38a5137492a31fa6f4a57790756ea7c14862fb10e89b342ad1531c2778a24fe171bcf2cf8384a2571c84c7bcc83be8138f0c5dfed + "@kiltprotocol/jcs-data-integrity-proofs-common": ^0.1.0-rc.4 + "@polkadot/util-crypto": ^13.0.2 + "@scure/base": ^1.1.1 + checksum: 7018baaecfa20e5b8966db9905cfa141e2300e4debcccf0f4ad4961d23fb2956a09fabe4d0c747f69e04750a9b0c11a5a25ed5d9397f3ed3a2cf8e6272679e4a languageName: node linkType: hard -"@kiltprotocol/type-definitions@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/type-definitions@npm:0.33.2-dip-2" - checksum: 003d0aaa5e08154b3b0568d4f1004a873cd97474b7ba503a6ac081b4c10662449a3d03f845eaad1a6793d90d310d9193292d368692d2258621ac9aac77428edd +"@kiltprotocol/type-definitions@npm:^0.35.0": + version: 0.35.2 + resolution: "@kiltprotocol/type-definitions@npm:0.35.2" + checksum: ed0320f11c5159a0211367768d903472619e437ae5540fafeef5001ff68a2e26dbda607ea47afb8de39cedc58d4b8cac80bed4390c62a18965c726e521013577 languageName: node linkType: hard -"@kiltprotocol/types@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/types@npm:0.33.2-dip-2" +"@kiltprotocol/types@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/types@npm:0.100.0-alpha.3" dependencies: - "@polkadot/api": ^10.4.0 - "@polkadot/keyring": ^12.0.0 - "@polkadot/types": ^10.4.0 - "@polkadot/util": ^12.0.0 - "@polkadot/util-crypto": ^12.0.0 - checksum: da20c155a9aea7d132527d3f3d7e63eed3f2bf8ebe9a2cc157d7975eb04c6e83c8f30077209b399769e36af524702ef6d0dfe679a7f61b45193eb8f1a0e35f97 + "@polkadot/api": ^12.0.0 + "@polkadot/keyring": ^13.0.0 + "@polkadot/types": ^12.0.0 + "@polkadot/util": ^13.0.0 + "@polkadot/util-crypto": ^13.0.0 + checksum: 1c9ca590adb3f267eadbfd565288e3cabcb33bd74516bb04f6ac6c4a2ab6e5f4b95ec4a093640771b2e1244c18db47df2f6e7356856b8f33c5ce2b34bb816481 languageName: node linkType: hard -"@kiltprotocol/utils@npm:0.33.2-dip-2": - version: 0.33.2-dip-2 - resolution: "@kiltprotocol/utils@npm:0.33.2-dip-2" +"@kiltprotocol/utils@npm:0.100.0-alpha.3": + version: 0.100.0-alpha.3 + resolution: "@kiltprotocol/utils@npm:0.100.0-alpha.3" dependencies: - "@kiltprotocol/types": 0.33.2-dip-2 - "@polkadot/api": ^10.4.0 - "@polkadot/keyring": ^12.0.0 - "@polkadot/util": ^12.0.0 - "@polkadot/util-crypto": ^12.0.0 + "@kiltprotocol/eddsa-jcs-2022": 0.1.0-rc.4 + "@kiltprotocol/es256k-jcs-2023": 0.1.0-rc.4 + "@kiltprotocol/jcs-data-integrity-proofs-common": 0.1.0-rc.4 + "@kiltprotocol/sr25519-jcs-2023": 0.1.0-rc.4 + "@kiltprotocol/types": 0.100.0-alpha.3 + "@polkadot/api": ^12.0.0 + "@polkadot/keyring": ^13.0.0 + "@polkadot/util": ^13.0.0 + "@polkadot/util-crypto": ^13.0.0 cbor-web: ^9.0.0 tweetnacl: ^1.0.3 - uuid: ^9.0.0 - checksum: 9f3b7ee805dbbcf8d4c447266d99d8f98605b2662427186a729386bdf5a9839b0c2fc8a606411c47cb5dc46a0621d415d98d4f3151125cfa95c06ed3d3903004 + uuid: ^10.0.0 + varint: ^6.0.0 + checksum: 9aa15eebd068e4f2368a097276cec0383b7756d8b2b1046dc8d00bf6a959c5a75ba943c2936c8de4c4cad7cfdd5d25a6003525d2ef7e284cb0a6502f15173a80 languageName: node linkType: hard -"@noble/curves@npm:1.1.0": - version: 1.1.0 - resolution: "@noble/curves@npm:1.1.0" +"@noble/curves@npm:^1.0.0, @noble/curves@npm:^1.3.0": + version: 1.4.2 + resolution: "@noble/curves@npm:1.4.2" dependencies: - "@noble/hashes": 1.3.1 - checksum: 2658cdd3f84f71079b4e3516c47559d22cf4b55c23ac8ee9d2b1f8e5b72916d9689e59820e0f9d9cb4a46a8423af5b56dc6bb7782405c88be06a015180508db5 + "@noble/hashes": 1.4.0 + checksum: c475a83c4263e2c970eaba728895b9b5d67e0ca880651e9c6e3efdc5f6a4f07ceb5b043bf71c399fc80fada0b8706e69d0772bffdd7b9de2483b988973a34cba languageName: node linkType: hard -"@noble/hashes@npm:1.3.1": - version: 1.3.1 - resolution: "@noble/hashes@npm:1.3.1" - checksum: 7fdefc0f7a0c1ec27acc6ff88841793e3f93ec4ce6b8a6a12bfc0dd70ae6b7c4c82fe305fdfeda1735d5ad4a9eebe761e6693b3d355689c559e91242f4bc95b1 +"@noble/hashes@npm:1.4.0, @noble/hashes@npm:^1.3.0, @noble/hashes@npm:^1.3.1, @noble/hashes@npm:^1.3.3": + version: 1.4.0 + resolution: "@noble/hashes@npm:1.4.0" + checksum: 8ba816ae26c90764b8c42493eea383716396096c5f7ba6bea559993194f49d80a73c081f315f4c367e51bd2d5891700bcdfa816b421d24ab45b41cb03e4f3342 languageName: node linkType: hard @@ -301,7 +431,7 @@ __metadata: languageName: node linkType: hard -"@nodelib/fs.walk@npm:^1.2.3": +"@nodelib/fs.walk@npm:^1.2.3, @nodelib/fs.walk@npm:^1.2.8": version: 1.2.8 resolution: "@nodelib/fs.walk@npm:1.2.8" dependencies: @@ -311,445 +441,534 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-augment@npm:10.9.1" +"@polkadot-api/json-rpc-provider-proxy@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.0.1" + checksum: cf8daf52ff6d92f26c6027f13ef5fbef9e512626e0225bc8408b79002cfd34fc17c5f2d856beebcb01aa5f84c93ccc8272f9264dc8349b7f6cb63845b30119b5 + languageName: node + linkType: hard + +"@polkadot-api/json-rpc-provider@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/json-rpc-provider@npm:0.0.1" + checksum: 1f315bdadcba7def7145011132e6127b983c6f91f976be217ad7d555bb96a67f3a270fe4a46e427531822c5d54d353d84a6439d112a99cdfc07013d3b662ee3c + languageName: node + linkType: hard + +"@polkadot-api/metadata-builders@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/metadata-builders@npm:0.0.1" dependencies: - "@polkadot/api-base": 10.9.1 - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: b0aeed5ebf640c58a252a29a33f12d4c39d0dcdf10b875501012c3b4b05955ed8be85efbf75e17ad237a561e1171821979ffdddf7e6a64cb0806badb2752c190 + "@polkadot-api/substrate-bindings": 0.0.1 + "@polkadot-api/utils": 0.0.1 + checksum: 7cf69e583e64f0ea1b90b141d9f61c4b0ba445daf87d4eba25bfcaa629c95cf4bbe6d89f5263dc495189fae0795c45810a004a2a8fbf59ece01ae71e1e049f17 languageName: node linkType: hard -"@polkadot/api-base@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-base@npm:10.9.1" +"@polkadot-api/observable-client@npm:0.1.0": + version: 0.1.0 + resolution: "@polkadot-api/observable-client@npm:0.1.0" dependencies: - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/util": ^12.3.1 - rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: a761f4ade747a295c16b7e6f24c1bb93e1736aa7fa9f1cb3c651c84d02a99cc62658e83326fa339882423966a55bf0046b74a69a1a4e4567c8d6c1c4db4eb306 + "@polkadot-api/metadata-builders": 0.0.1 + "@polkadot-api/substrate-bindings": 0.0.1 + "@polkadot-api/substrate-client": 0.0.1 + "@polkadot-api/utils": 0.0.1 + peerDependencies: + rxjs: ">=7.8.0" + checksum: 694ee405f40ce47eb8d23dd2fc68359a5016c54ac530893a76e772a2d6a1a7c09c3a11d772b7c196af4faa29e98a443849334b97c6bf91af616990b4c7834caa languageName: node linkType: hard -"@polkadot/api-derive@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-derive@npm:10.9.1" - dependencies: - "@polkadot/api": 10.9.1 - "@polkadot/api-augment": 10.9.1 - "@polkadot/api-base": 10.9.1 - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot-api/substrate-bindings@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/substrate-bindings@npm:0.0.1" + dependencies: + "@noble/hashes": ^1.3.1 + "@polkadot-api/utils": 0.0.1 + "@scure/base": ^1.1.1 + scale-ts: ^1.6.0 + checksum: fc49e49ffe749fc6fab49eee1d10d47fcd1fa3a9b6ca4e7bbde4e9741b9e062cd4e9271fd86a2525095ff36bf33b95d57c51efb88635bb60b2c77fa9e83b2cd6 + languageName: node + linkType: hard + +"@polkadot-api/substrate-client@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/substrate-client@npm:0.0.1" + checksum: 13dc05f1fce0d00241b48d262d691a740c65b107800cdfdf8d800333e9b3950932ce50a88bf65810892e43103bf57d1541c71538e68aa27b9aba55b389835b91 + languageName: node + linkType: hard + +"@polkadot-api/utils@npm:0.0.1": + version: 0.0.1 + resolution: "@polkadot-api/utils@npm:0.0.1" + checksum: 11e67019cbf6dd39997d772edf14296c1b156d7a59c7726ce117b438ee85a5e50e305514a2a93cba87fdce1380fcf045931f2fb959df3a43bb327e77ac876148 + languageName: node + linkType: hard + +"@polkadot/api-augment@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/api-augment@npm:12.2.3" + dependencies: + "@polkadot/api-base": 12.2.3 + "@polkadot/rpc-augment": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/types-augment": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: bf40a0db154865f59c495ea938cb0aabcb16e7d14b3443655dcd73ea2b907ce1fb65a88ee6d9cfb0c1c5da25641de08a0cde62ca40c457e83aa7408766ca5322 + languageName: node + linkType: hard + +"@polkadot/api-base@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/api-base@npm:12.2.3" + dependencies: + "@polkadot/rpc-core": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/util": ^13.0.2 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 072a43bcc55787beb6c29afe0f011c03cdde3a9b6ac38d972d0b13ff93a1e14198d769a926edfd324c3947735dd8c8fcb7a61629409322230fd8559e7c17a1d7 + tslib: ^2.6.2 + checksum: 93671b0386f1cb7c4554ac1d287ced15aafe30ffffc79f356f21380bb71ec4202d17c6c120fc87d1a4fcccc032d96e9e3aa18ed3d794338d09223daf90039e77 languageName: node linkType: hard -"@polkadot/api@npm:10.9.1, @polkadot/api@npm:^10.4.0": - version: 10.9.1 - resolution: "@polkadot/api@npm:10.9.1" - dependencies: - "@polkadot/api-augment": 10.9.1 - "@polkadot/api-base": 10.9.1 - "@polkadot/api-derive": 10.9.1 - "@polkadot/keyring": ^12.3.1 - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/rpc-core": 10.9.1 - "@polkadot/rpc-provider": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/types-known": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot/api-derive@npm:12.2.3, @polkadot/api-derive@npm:^12.0.0": + version: 12.2.3 + resolution: "@polkadot/api-derive@npm:12.2.3" + dependencies: + "@polkadot/api": 12.2.3 + "@polkadot/api-augment": 12.2.3 + "@polkadot/api-base": 12.2.3 + "@polkadot/rpc-core": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/util": ^13.0.2 + "@polkadot/util-crypto": ^13.0.2 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: 86af8b1c3b32f9c39ba0b9276163e82490034261a16ccd5e9cf1a1346bc9d30f9ee8141ed1e60d614ed9eb65f10879110cbce2aaa24d078bc261ccca782c261f + languageName: node + linkType: hard + +"@polkadot/api@npm:12.2.3, @polkadot/api@npm:^12.0.0": + version: 12.2.3 + resolution: "@polkadot/api@npm:12.2.3" + dependencies: + "@polkadot/api-augment": 12.2.3 + "@polkadot/api-base": 12.2.3 + "@polkadot/api-derive": 12.2.3 + "@polkadot/keyring": ^13.0.2 + "@polkadot/rpc-augment": 12.2.3 + "@polkadot/rpc-core": 12.2.3 + "@polkadot/rpc-provider": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/types-augment": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/types-create": 12.2.3 + "@polkadot/types-known": 12.2.3 + "@polkadot/util": ^13.0.2 + "@polkadot/util-crypto": ^13.0.2 eventemitter3: ^5.0.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 6b37d9bacf0599bb7c385ddefca929547299a6f1d242ce3215f8480672297c81ec30c251bc9aac3889c5956bd9ef3918d69364819861eec308f4aa347c08110d + tslib: ^2.6.2 + checksum: 08c1600b090b6d52ab20e7f662a80ab3a91dce39ecca68fae7985b6fa720fb86cb7603824d37ec8921d27e3c74dd1e8d1fec9acca91d10b6cd7054bb80a6b001 languageName: node linkType: hard -"@polkadot/keyring@npm:^12.0.0, @polkadot/keyring@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/keyring@npm:12.3.2" +"@polkadot/keyring@npm:^13.0.0, @polkadot/keyring@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/keyring@npm:13.0.2" dependencies: - "@polkadot/util": 12.3.2 - "@polkadot/util-crypto": 12.3.2 - tslib: ^2.5.3 + "@polkadot/util": 13.0.2 + "@polkadot/util-crypto": 13.0.2 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.3.2 - "@polkadot/util-crypto": 12.3.2 - checksum: fa1238052ab6a93f4d97c0351e908ab866c128eb9089fe8829af4a4603be3d97dd964bb2b95c22248cfd120800bbc37aa93e03221ecca4f97c36818d452b44db + "@polkadot/util": 13.0.2 + "@polkadot/util-crypto": 13.0.2 + checksum: 334aaee396e3f624341ac87bbf9288b3ae0b7c5d8ef222741b802563b1ae88c47f2b8ec2a1989cd62403e1ae0261b4380218c5e112d8a44674cf432216f5c3bb languageName: node linkType: hard -"@polkadot/networks@npm:12.3.2, @polkadot/networks@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/networks@npm:12.3.2" +"@polkadot/networks@npm:13.0.2, @polkadot/networks@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/networks@npm:13.0.2" dependencies: - "@polkadot/util": 12.3.2 - "@substrate/ss58-registry": ^1.40.0 - tslib: ^2.5.3 - checksum: 54d5aa2a90b761a200bf0cf492f1c53cbbd555067f9486542997097640b0813e46675837e83225cee8ab4e816bcae12cdc046f07b5869930ab1e694b1e6e3cec + "@polkadot/util": 13.0.2 + "@substrate/ss58-registry": ^1.46.0 + tslib: ^2.6.2 + checksum: 4bc02ae6a95c0bf770ab2ba99af59013665edf4e759a228148289859dcc171be61d93359f6846a5d248707eb215bcbf2ca69ae9f63eb1720caa38ceb3dab7587 languageName: node linkType: hard -"@polkadot/rpc-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-augment@npm:10.9.1" +"@polkadot/rpc-augment@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/rpc-augment@npm:12.2.3" dependencies: - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 4f7b090be6d88ef6a56679a80da856bf007994e2142e16fbac6030132789b5a2411421650935ed4b18334afca399edfc0387135731836c6d9f8420acf510f11b + "@polkadot/rpc-core": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: 97d0b2c5451d5cb96e84569b0c5e2763abd83def4704def25f6ad728ca8eddc4c3872bd5afb26d9a8be28273f2bd927d1292b0e480727b0fe302548c5c432ae8 languageName: node linkType: hard -"@polkadot/rpc-core@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-core@npm:10.9.1" +"@polkadot/rpc-core@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/rpc-core@npm:12.2.3" dependencies: - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/rpc-provider": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/util": ^12.3.1 + "@polkadot/rpc-augment": 12.2.3 + "@polkadot/rpc-provider": 12.2.3 + "@polkadot/types": 12.2.3 + "@polkadot/util": ^13.0.2 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 538a207f5d321b4b18b0580da438598dd78e496dbc7069a776abcc39ede36903981ba2b9897eea73ecfe2f48a4d0cbd5b5cd738b3184f5c333709e6f4603f22a + tslib: ^2.6.2 + checksum: bf0ff9d66ce3581751d0d0c26fd469e8b8d53bb50fdfd0e5da5cfbe1e811eefdf9c57cfbbb5f89e41ffc9ba44b0ea42ab8d73175d5a85ce73c1673c04e452003 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-provider@npm:10.9.1" - dependencies: - "@polkadot/keyring": ^12.3.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-support": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 - "@polkadot/x-fetch": ^12.3.1 - "@polkadot/x-global": ^12.3.1 - "@polkadot/x-ws": ^12.3.1 - "@substrate/connect": 0.7.26 +"@polkadot/rpc-provider@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/rpc-provider@npm:12.2.3" + dependencies: + "@polkadot/keyring": ^13.0.2 + "@polkadot/types": 12.2.3 + "@polkadot/types-support": 12.2.3 + "@polkadot/util": ^13.0.2 + "@polkadot/util-crypto": ^13.0.2 + "@polkadot/x-fetch": ^13.0.2 + "@polkadot/x-global": ^13.0.2 + "@polkadot/x-ws": ^13.0.2 + "@substrate/connect": 0.8.10 eventemitter3: ^5.0.1 - mock-socket: ^9.2.1 - nock: ^13.3.1 - tslib: ^2.5.3 + mock-socket: ^9.3.1 + nock: ^13.5.0 + tslib: ^2.6.2 dependenciesMeta: "@substrate/connect": optional: true - checksum: 4521ba64a1e69ed323910796a4598755e8101704aae3be33b6c363be4ebb9ea1a99ced17b8cd9fa3ab15abf5900e1055279f532f47b8472e8a143a299bfa046d + checksum: 88d7f7ce64c73bd2c118510aa0ae399707fd2e1b3420d593c76f7e5de570484ee48f0fbf4fcac9c0fe75da6d3beb0efe3d4f115dff16be509301819563f8cf52 languageName: node linkType: hard -"@polkadot/types-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-augment@npm:10.9.1" +"@polkadot/types-augment@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/types-augment@npm:12.2.3" dependencies: - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: d643f83ab0a9498267037d95b878fa4e3b0087882195c3bd609038e8c934a092d9c82f7164ac97989305805aabe0d9186736c50a372498c81c22b3d7f4cfcccb + "@polkadot/types": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: f5e47c7764f655f7275162ccd080426ab0c23572fa8905134a792ed5917b302c1c71180d3a8051a61825698f4f00b072b5d6e7e4f9daed3414a3b2c223e7e7ee languageName: node linkType: hard -"@polkadot/types-codec@npm:10.9.1, @polkadot/types-codec@npm:^10.4.0": - version: 10.9.1 - resolution: "@polkadot/types-codec@npm:10.9.1" +"@polkadot/types-codec@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/types-codec@npm:12.2.3" dependencies: - "@polkadot/util": ^12.3.1 - "@polkadot/x-bigint": ^12.3.1 - tslib: ^2.5.3 - checksum: ac11b770fa4328f55daf6dd78fc8fc4d6906fb0d4b2bf92eaece58332c74f2b178d598a310a6dd068c72856acefddf5f7d23cac56991fa12f61d6853fb73d582 + "@polkadot/util": ^13.0.2 + "@polkadot/x-bigint": ^13.0.2 + tslib: ^2.6.2 + checksum: 6f1cd31a6356cfe6f3210060dd7078030236c8dc2dac44e80110e614e6076087b9b7204664de2ba9e23e1cb7249b1bba3bb022df28c7a61d855ebb9a0aa70bf1 languageName: node linkType: hard -"@polkadot/types-create@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-create@npm:10.9.1" +"@polkadot/types-create@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/types-create@npm:12.2.3" dependencies: - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 43f8fbd70a7891d6b49f1edb00b4a918c21924f2c1e44eb81ef7c9327e1fcc7eac65dbc2a9d0e3ba49079fdddda5498115e47f5fd99ec2a91f79c7f305bf553a + "@polkadot/types-codec": 12.2.3 + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: 5397bf6f850552155e3381ea81b211e564fbf7c2271805e7bded6b1d7ad54409dcd1fd1354bf7be10bbc96f02576d8199ed7f6110b02935cdea7eb369d1cbaeb languageName: node linkType: hard -"@polkadot/types-known@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-known@npm:10.9.1" +"@polkadot/types-known@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/types-known@npm:12.2.3" dependencies: - "@polkadot/networks": ^12.3.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 8a3dd0dead1759112b9011c5ff47bf9fa0f5a00d0d5cba841d724494a9434a2f565fad8ab654ae8cc3949a10c28f3966034bfc23e493b7cc373d3532de508953 + "@polkadot/networks": ^13.0.2 + "@polkadot/types": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/types-create": 12.2.3 + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: e2499edb751d8e38925512ff0e1396c5fe456e42d71fbdf090af8fe8dc14ac381fd747cd0b6a8c2492f90f2e6d48a0fc26a1da2cc7c8166648782f09916fc956 languageName: node linkType: hard -"@polkadot/types-support@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-support@npm:10.9.1" +"@polkadot/types-support@npm:12.2.3": + version: 12.2.3 + resolution: "@polkadot/types-support@npm:12.2.3" dependencies: - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: f5df33f215f529c33d4fd7ad7d6877a4567954488971c2986da416b6578ccb6d5c6eeadab4602abe0e3ce17373cdd6de0ce6f09529852b6e2fd6bc28b9183f9b + "@polkadot/util": ^13.0.2 + tslib: ^2.6.2 + checksum: dc681525f49129b8a2201f81e64032ac01ec84add507beb2e44dc8046246657645e6e7ed92012a03dfc08ea1167d5c4704c650396e0614ed2bc694054fc0a1d0 languageName: node linkType: hard -"@polkadot/types@npm:10.9.1, @polkadot/types@npm:^10.4.0": - version: 10.9.1 - resolution: "@polkadot/types@npm:10.9.1" - dependencies: - "@polkadot/keyring": ^12.3.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot/types@npm:12.2.3, @polkadot/types@npm:^12.0.0": + version: 12.2.3 + resolution: "@polkadot/types@npm:12.2.3" + dependencies: + "@polkadot/keyring": ^13.0.2 + "@polkadot/types-augment": 12.2.3 + "@polkadot/types-codec": 12.2.3 + "@polkadot/types-create": 12.2.3 + "@polkadot/util": ^13.0.2 + "@polkadot/util-crypto": ^13.0.2 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: c9b0873b52f33c5d7913bc1e474c67d797411ac592c10af987dfecfee7480aeda02b9fc100ff506bc8af704a7fc239162a8ec7eec580e2e7a62ac7f7b95f3900 + tslib: ^2.6.2 + checksum: 00b61ecb7a5d9c1ef1da568682c0fe65f28a5a16735944b0f7659943cf9dc15e6941824bd8e32920780ea507b5bf34472d393210cbf24dfe89c3fe84d1a5985d languageName: node linkType: hard -"@polkadot/util-crypto@npm:12.3.2, @polkadot/util-crypto@npm:^12.0.0, @polkadot/util-crypto@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/util-crypto@npm:12.3.2" +"@polkadot/util-crypto@npm:13.0.2, @polkadot/util-crypto@npm:^13.0.0, @polkadot/util-crypto@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/util-crypto@npm:13.0.2" dependencies: - "@noble/curves": 1.1.0 - "@noble/hashes": 1.3.1 - "@polkadot/networks": 12.3.2 - "@polkadot/util": 12.3.2 - "@polkadot/wasm-crypto": ^7.2.1 - "@polkadot/wasm-util": ^7.2.1 - "@polkadot/x-bigint": 12.3.2 - "@polkadot/x-randomvalues": 12.3.2 - "@scure/base": 1.1.1 - tslib: ^2.5.3 + "@noble/curves": ^1.3.0 + "@noble/hashes": ^1.3.3 + "@polkadot/networks": 13.0.2 + "@polkadot/util": 13.0.2 + "@polkadot/wasm-crypto": ^7.3.2 + "@polkadot/wasm-util": ^7.3.2 + "@polkadot/x-bigint": 13.0.2 + "@polkadot/x-randomvalues": 13.0.2 + "@scure/base": ^1.1.5 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.3.2 - checksum: 5c4053b4172ce138b4df5d61dc83905759fde6816ddf1d1aea7389bf4e9bba6d0a110e356eb9a3d76065393b787eb9797428966a1da36bb3b13567bdb67d5671 + "@polkadot/util": 13.0.2 + checksum: 025bb2179d77b73dd8af775192627fe31e985e365fbecf38d7903a663aa11b703fa3f23fbb65e53d0a9710cc087e0cb9a113b0a660d8e9b36de21c36c1bc40d7 languageName: node linkType: hard -"@polkadot/util@npm:12.3.2, @polkadot/util@npm:^12.0.0, @polkadot/util@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/util@npm:12.3.2" +"@polkadot/util@npm:13.0.2, @polkadot/util@npm:^13.0.0, @polkadot/util@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/util@npm:13.0.2" dependencies: - "@polkadot/x-bigint": 12.3.2 - "@polkadot/x-global": 12.3.2 - "@polkadot/x-textdecoder": 12.3.2 - "@polkadot/x-textencoder": 12.3.2 - "@types/bn.js": ^5.1.1 + "@polkadot/x-bigint": 13.0.2 + "@polkadot/x-global": 13.0.2 + "@polkadot/x-textdecoder": 13.0.2 + "@polkadot/x-textencoder": 13.0.2 + "@types/bn.js": ^5.1.5 bn.js: ^5.2.1 - tslib: ^2.5.3 - checksum: 53b5ac58bbae5d3aa867e0f1483fc0fd40e811919e573051225ab32e031ab81649be0f969ecb7c7a094c588f381d8ec1fa67160a65e3e2ef2180afe5677136cc + tslib: ^2.6.2 + checksum: c7d71898395d2e9fb994ed53be10e9b44e9cb6f6bd502ce31a48848dda032a9e3f462a6039759798023425c6e17d5a7515784f0a8c0ab74c1a0a2691b0ef3660 languageName: node linkType: hard -"@polkadot/wasm-bridge@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-bridge@npm:7.2.1" +"@polkadot/wasm-bridge@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-bridge@npm:7.3.2" dependencies: - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 6f4d255665f6c1552df9abcf8e99ee36b220c446c74e4da7ac21f3c578c3736695db41e816ef83226d98231c535df8daea6d2266c3090bdd8e7609fa87447de9 + checksum: 8c68b78cbd62347ebdf3fa66f2ffd1f7e883df71d770f5099ff652b083a79f1d7e9e7826a6acd8e986e9da0b07c0170a3f77b6a35726c6b24d856e3f8d08d201 languageName: node linkType: hard -"@polkadot/wasm-crypto-asmjs@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-asmjs@npm:7.2.1" +"@polkadot/wasm-crypto-asmjs@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-asmjs@npm:7.3.2" dependencies: - tslib: ^2.5.0 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: 9d7f2ac6f73cc2ed390941a35426763c73e6f20374eb11ed60b880a6f716c2773cb1fe1cddb9416ab669c75b25b7d99be25c8c91886bb676d6faf9b4658f8fd7 + checksum: 669ea001565301f9b1a8feecb0e301c854fc318e5605316b57be7e83d717e7ee8ac460001cd44b18075a3d028c32c4a605c0e0e2e95ae00865282321b009ed26 languageName: node linkType: hard -"@polkadot/wasm-crypto-init@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-init@npm:7.2.1" +"@polkadot/wasm-crypto-init@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-init@npm:7.3.2" dependencies: - "@polkadot/wasm-bridge": 7.2.1 - "@polkadot/wasm-crypto-asmjs": 7.2.1 - "@polkadot/wasm-crypto-wasm": 7.2.1 - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-bridge": 7.3.2 + "@polkadot/wasm-crypto-asmjs": 7.3.2 + "@polkadot/wasm-crypto-wasm": 7.3.2 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 97105a9e846e97d9d678526e5dd1b491cd71e705c759a8ace9e0e9a54aa045b2b512bdcdd524ea6684963b6cb0fc0a44043d2198bc680c893e1feaaf4d860e76 + checksum: af7bc62bba16f1fbbfd76601ecf18ed8f4dfc685807e2e89ef8e8d02f824d1a1ed1635e9c2448c6c12a9a183192b18943f9ce077d6b7781c4d43cdb5c45c9161 languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-wasm@npm:7.2.1" +"@polkadot/wasm-crypto-wasm@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-wasm@npm:7.3.2" dependencies: - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: f000fab2fc682a4d4d2029b483701a64091b9be0d75df82f3337a48d65ffdac8d76c828f46810cb5aae6b9ec77bdf3963ae8b8668106ea9e5c0c19f57637655d + checksum: e112ea3d4f8858a95fdaad47341b422db3db3256b7e7d709d1c3e0bc4c4bbdf81028eaa556b688078b32ff15be33af093b903c680f54eb1552072afede621a6a languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto@npm:7.2.1" +"@polkadot/wasm-crypto@npm:^7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto@npm:7.3.2" dependencies: - "@polkadot/wasm-bridge": 7.2.1 - "@polkadot/wasm-crypto-asmjs": 7.2.1 - "@polkadot/wasm-crypto-init": 7.2.1 - "@polkadot/wasm-crypto-wasm": 7.2.1 - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-bridge": 7.3.2 + "@polkadot/wasm-crypto-asmjs": 7.3.2 + "@polkadot/wasm-crypto-init": 7.3.2 + "@polkadot/wasm-crypto-wasm": 7.3.2 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: f42f2bc34cf76d1438893f72a233080196c9a95dd3c53444f582150c7f56b75c80b8b8b9b4a3d9015438a6f7438c6e40def46b1fe7ce3a367bcd280f2bf29c98 + checksum: 574006cdcc3e76af28cc79102726a79fdcd765ca5b45cbc4807d70917d82131b59f50b5cc07bd165b2863ed131b8764fef74b00c68ba5ec30a21c04c72061f8f languageName: node linkType: hard -"@polkadot/wasm-util@npm:7.2.1, @polkadot/wasm-util@npm:^7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-util@npm:7.2.1" +"@polkadot/wasm-util@npm:7.3.2, @polkadot/wasm-util@npm:^7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-util@npm:7.3.2" dependencies: - tslib: ^2.5.0 + tslib: ^2.6.2 peerDependencies: "@polkadot/util": "*" - checksum: 8df30296664807c27b01d37a3e9f124fdc22aef61e633b1a538a7c533f485a2aa756c43e67aac8d0c8383273432783b78e5528c5bc1ffcf508e7faaa5009e618 + checksum: 44bd445043714aac6d184ce02d62fbdb97a117fd4d8bdbf3f2c1d14f6911a7d87ed6bb4682035eb757524ade995f7f4f8aaa07c8a194f761884ded25a6b383a9 languageName: node linkType: hard -"@polkadot/x-bigint@npm:12.3.2, @polkadot/x-bigint@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/x-bigint@npm:12.3.2" +"@polkadot/x-bigint@npm:13.0.2, @polkadot/x-bigint@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-bigint@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: 0c88e28f1072cd2e5bc0efa3b8ede13f1084c8d56bb78a91f031ee128e572a5f74faa99c22be64182950194647a2081899dcfaa7e7ab16bbb3f9b9761515eb85 + "@polkadot/x-global": 13.0.2 + tslib: ^2.6.2 + checksum: a1c9d9ab3aa27f7a68a879c76cea38ca4757ae4802c6d2a7402dbfbf31468c4dd3c4f1e852e62c0a1bff18889fccac1ccbc38649bf96e9473948ea7d7c2899f3 languageName: node linkType: hard -"@polkadot/x-fetch@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/x-fetch@npm:12.3.2" +"@polkadot/x-fetch@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-fetch@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - node-fetch: ^3.3.1 - tslib: ^2.5.3 - checksum: 063bae74b5c197c5b2c603cc761aa830fe96a196d8cc0d9bc428670d1d0fa44d053d96b463783a9d989ec1032bda6397cb4f8772e65fed9d5f1089d04d7b54dc + "@polkadot/x-global": 13.0.2 + node-fetch: ^3.3.2 + tslib: ^2.6.2 + checksum: 459948a2b95601b0a39a7eb55277e80bd33e2df1ecab133dbe9823e020d3d5f2a64056911fc2072d0c328550c510e7e0ec45327b354530ae83306d536c616e29 languageName: node linkType: hard -"@polkadot/x-global@npm:12.3.2, @polkadot/x-global@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/x-global@npm:12.3.2" +"@polkadot/x-global@npm:13.0.2, @polkadot/x-global@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-global@npm:13.0.2" dependencies: - tslib: ^2.5.3 - checksum: 85bd4a3e89bacdf8159fe505b875fad0ce8cfc5ba65377b14981166d973339a2fa3128582112af51dfecea4b68b0501a960056138110195b5bea69c3a8c88e11 + tslib: ^2.6.2 + checksum: b487bf2a15d77681efae5e928364526102cff48207a871662515c500404ae58d9d08df813fd675c8bf0a2744dbf4648db6a0fe927993e597e8391349295560c8 languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-randomvalues@npm:12.3.2" +"@polkadot/x-randomvalues@npm:13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-randomvalues@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 + "@polkadot/x-global": 13.0.2 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.3.2 + "@polkadot/util": 13.0.2 "@polkadot/wasm-util": "*" - checksum: 809e0429a0e6f285ad0e2bf0b7dbe1f8b05cc3aacb9f7d8593fd0702e2f23ef7e3aab861d1493528670712c03426b36aacecf43b6fc97cc4036ee1ae41fa04dc + checksum: 3968ca273ccdc3055466a8bdeae64141ef20dd5451f7fc750eaef28465460e41d28cdd4eadedf3b4ca94024c9ebae023a8a04eb946b9fd17a1ff9c105ebfe39c languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-textdecoder@npm:12.3.2" +"@polkadot/x-textdecoder@npm:13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-textdecoder@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: d5b8810b325bad317e10f631f0d7c9c91e0db92ca37db7935e41569df8c926534aa4668a14b9b12d1d5263569239665bca8ad0089bf3b789a09dbf6f0303108f + "@polkadot/x-global": 13.0.2 + tslib: ^2.6.2 + checksum: 586c970c66a014471b5354d41a55aa6dbeaa4aec041153d294205d7f86f93cfb6cb5c274b6ef38b0923b515b531bc8608fea7cdc6116c6dc61c370d892b207e4 languageName: node linkType: hard -"@polkadot/x-textencoder@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-textencoder@npm:12.3.2" +"@polkadot/x-textencoder@npm:13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-textencoder@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: c383fab93904f6c47f87b1b111a002542c701844c82a62ead6bbbd19f23b58f87ebd47ec8578de7ed18b45668b43491cc60e44c343b9d59e80696e5c9357e962 + "@polkadot/x-global": 13.0.2 + tslib: ^2.6.2 + checksum: b2db5ab0fd94b8a13816f028f9fb52e0f00c43df4a727c01911902b5fc11bec476b02b92aee5a98adabf4696907e828752c6e0eb9bece79f0440675e4eb030c9 languageName: node linkType: hard -"@polkadot/x-ws@npm:^12.3.1": - version: 12.3.2 - resolution: "@polkadot/x-ws@npm:12.3.2" +"@polkadot/x-ws@npm:^13.0.2": + version: 13.0.2 + resolution: "@polkadot/x-ws@npm:13.0.2" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - ws: ^8.13.0 - checksum: 7bb18ada56bb7d441c1392ec459959ff7cfc27fd57953898cb19682ea2fd323b68946102e4fe1c5eb1eb89fa62eb2d8ea7be03382ef9a473cd8c74d039b875d1 + "@polkadot/x-global": 13.0.2 + tslib: ^2.6.2 + ws: ^8.16.0 + checksum: c5aad76a3e121016dd740eddaf5601b2d98b7e568da51b6a0ffe4bced6dfb7373a15067d0c5c267e6daed40ea55014ef4b875c5eaf395c8b3fcd9e85047d2dd9 languageName: node linkType: hard -"@scure/base@npm:1.1.1": - version: 1.1.1 - resolution: "@scure/base@npm:1.1.1" - checksum: b4fc810b492693e7e8d0107313ac74c3646970c198bbe26d7332820886fa4f09441991023ec9aa3a2a51246b74409ab5ebae2e8ef148bbc253da79ac49130309 +"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.5": + version: 1.1.7 + resolution: "@scure/base@npm:1.1.7" + checksum: d9084be9a2f27971df1684af9e40bb750e86f549345e1bb3227fb61673c0c83569c92c1cb0a4ddccb32650b39d3cd3c145603b926ba751c9bc60c27317549b20 languageName: node linkType: hard -"@substrate/connect-extension-protocol@npm:^1.0.1": - version: 1.0.1 - resolution: "@substrate/connect-extension-protocol@npm:1.0.1" - checksum: 116dee587e81e832e14c25038bd849438c9493c6089aa6c1bf1760780d463880d44d362ed983d57ac3695368ac46f3c9df3dbaed92f36de89626c9735cecd1e4 +"@substrate/connect-extension-protocol@npm:^2.0.0": + version: 2.0.0 + resolution: "@substrate/connect-extension-protocol@npm:2.0.0" + checksum: a7c6ff3fefc0784f28b1d253514c1d2951684fe3d06392dfd70299fa2184fbe040d2bd6e0f113e30a1920920b649d43668aa4565847778ab3334c7e445e880cf + languageName: node + linkType: hard + +"@substrate/connect-known-chains@npm:^1.1.4": + version: 1.2.0 + resolution: "@substrate/connect-known-chains@npm:1.2.0" + checksum: ab7c43fe9d32b371cad425088ef045e4dbe4382fad3fb3cefd13a5e41c71c86c385234f3ba155c4de711190c0660eee9520fdb846da28e8e577544e589024011 + languageName: node + linkType: hard + +"@substrate/connect@npm:0.8.10": + version: 0.8.10 + resolution: "@substrate/connect@npm:0.8.10" + dependencies: + "@substrate/connect-extension-protocol": ^2.0.0 + "@substrate/connect-known-chains": ^1.1.4 + "@substrate/light-client-extension-helpers": ^0.0.6 + smoldot: 2.0.22 + checksum: 2ed22ff5eefc547f9c3a7547f166b20c844372802cf406e6511844ed2f813b091f515611a720847e1b78848af1156d5cba403c9423c4ad32e4009daf014150bc languageName: node linkType: hard -"@substrate/connect@npm:0.7.26": - version: 0.7.26 - resolution: "@substrate/connect@npm:0.7.26" +"@substrate/light-client-extension-helpers@npm:^0.0.6": + version: 0.0.6 + resolution: "@substrate/light-client-extension-helpers@npm:0.0.6" dependencies: - "@substrate/connect-extension-protocol": ^1.0.1 - eventemitter3: ^4.0.7 - smoldot: 1.0.4 - checksum: 3179d241f073318d5973deb61c9c8d9b89ae28909a594b6b9fbcdfffd030a70ba58e8428eaa9d72484810bad10c93de1ad9c440b878d0fcfaaf4559d2e6f4502 + "@polkadot-api/json-rpc-provider": 0.0.1 + "@polkadot-api/json-rpc-provider-proxy": 0.0.1 + "@polkadot-api/observable-client": 0.1.0 + "@polkadot-api/substrate-client": 0.0.1 + "@substrate/connect-extension-protocol": ^2.0.0 + "@substrate/connect-known-chains": ^1.1.4 + rxjs: ^7.8.1 + peerDependencies: + smoldot: 2.x + checksum: a0cc169e6edf56cdbfd839a32487e31ad0bcb4cc9d4d50bac632c16f95d6ebf54638b268c1f7b8e651482e201f38411139a90071bc91268a2c01e5b50f39f338 languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.40.0": - version: 1.40.0 - resolution: "@substrate/ss58-registry@npm:1.40.0" - checksum: 474cb16b350e95fa7ca1020b70c6885c5c3d739472f506d175f24e9fd5a6d337d3c7e7a7fa44962199ed03fffb5d3b44b8af79a9811cb55ec34b3b75bb8e7f97 +"@substrate/ss58-registry@npm:^1.46.0": + version: 1.49.0 + resolution: "@substrate/ss58-registry@npm:1.49.0" + checksum: 917437915d5ba98c46c650dce2fbe1f6a7bbcf2a6fa058df2a751743c774db37d6b5dacab4c2ce8bdf9d52275b2d325fcc63f6f08d37e5428fa133ff72e19c56 languageName: node linkType: hard @@ -781,12 +1000,12 @@ __metadata: languageName: node linkType: hard -"@types/bn.js@npm:^5.1.1": - version: 5.1.1 - resolution: "@types/bn.js@npm:5.1.1" +"@types/bn.js@npm:^5.1.5": + version: 5.1.5 + resolution: "@types/bn.js@npm:5.1.5" dependencies: "@types/node": "*" - checksum: e50ed2dd3abe997e047caf90e0352c71e54fc388679735217978b4ceb7e336e51477791b715f49fd77195ac26dd296c7bad08a3be9750e235f9b2e1edb1b51c2 + checksum: c87b28c4af74545624f8a3dae5294b16aa190c222626e8d4b2e327b33b1a3f1eeb43e7a24d914a9774bca43d8cd6e1cb0325c1f4b3a244af6693a024e1d918e6 languageName: node linkType: hard @@ -827,6 +1046,29 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/eslint-plugin@npm:^7.0.2": + version: 7.18.0 + resolution: "@typescript-eslint/eslint-plugin@npm:7.18.0" + dependencies: + "@eslint-community/regexpp": ^4.10.0 + "@typescript-eslint/scope-manager": 7.18.0 + "@typescript-eslint/type-utils": 7.18.0 + "@typescript-eslint/utils": 7.18.0 + "@typescript-eslint/visitor-keys": 7.18.0 + graphemer: ^1.4.0 + ignore: ^5.3.1 + natural-compare: ^1.4.0 + ts-api-utils: ^1.3.0 + peerDependencies: + "@typescript-eslint/parser": ^7.0.0 + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: dfcf150628ca2d4ccdfc20b46b0eae075c2f16ef5e70d9d2f0d746acf4c69a09f962b93befee01a529f14bbeb3e817b5aba287d7dd0edc23396bc5ed1f448c3d + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:^5.37.0": version: 5.37.0 resolution: "@typescript-eslint/parser@npm:5.37.0" @@ -844,6 +1086,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:^7.0.2": + version: 7.18.0 + resolution: "@typescript-eslint/parser@npm:7.18.0" + dependencies: + "@typescript-eslint/scope-manager": 7.18.0 + "@typescript-eslint/types": 7.18.0 + "@typescript-eslint/typescript-estree": 7.18.0 + "@typescript-eslint/visitor-keys": 7.18.0 + debug: ^4.3.4 + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 132b56ac3b2d90b588d61d005a70f6af322860974225b60201cbf45abf7304d67b7d8a6f0ade1c188ac4e339884e78d6dcd450417f1481998f9ddd155bab0801 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/scope-manager@npm:5.37.0" @@ -854,6 +1114,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/scope-manager@npm:7.18.0" + dependencies: + "@typescript-eslint/types": 7.18.0 + "@typescript-eslint/visitor-keys": 7.18.0 + checksum: b982c6ac13d8c86bb3b949c6b4e465f3f60557c2ccf4cc229799827d462df56b9e4d3eaed7711d79b875422fc3d71ec1ebcb5195db72134d07c619e3c5506b57 + languageName: node + linkType: hard + "@typescript-eslint/type-utils@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/type-utils@npm:5.37.0" @@ -871,6 +1141,23 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/type-utils@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/type-utils@npm:7.18.0" + dependencies: + "@typescript-eslint/typescript-estree": 7.18.0 + "@typescript-eslint/utils": 7.18.0 + debug: ^4.3.4 + ts-api-utils: ^1.3.0 + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 68fd5df5146c1a08cde20d59b4b919acab06a1b06194fe4f7ba1b928674880249890785fbbc97394142f2ef5cff5a7fba9b8a940449e7d5605306505348e38bc + languageName: node + linkType: hard + "@typescript-eslint/types@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/types@npm:5.37.0" @@ -878,6 +1165,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/types@npm:7.18.0" + checksum: 7df2750cd146a0acd2d843208d69f153b458e024bbe12aab9e441ad2c56f47de3ddfeb329c4d1ea0079e2577fea4b8c1c1ce15315a8d49044586b04fedfe7a4d + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/typescript-estree@npm:5.37.0" @@ -896,6 +1190,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/typescript-estree@npm:7.18.0" + dependencies: + "@typescript-eslint/types": 7.18.0 + "@typescript-eslint/visitor-keys": 7.18.0 + debug: ^4.3.4 + globby: ^11.1.0 + is-glob: ^4.0.3 + minimatch: ^9.0.4 + semver: ^7.6.0 + ts-api-utils: ^1.3.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: c82d22ec9654973944f779eb4eb94c52f4a6eafaccce2f0231ff7757313f3a0d0256c3252f6dfe6d43f57171d09656478acb49a629a9d0c193fb959bc3f36116 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/utils@npm:5.37.0" @@ -912,6 +1225,20 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/utils@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/utils@npm:7.18.0" + dependencies: + "@eslint-community/eslint-utils": ^4.4.0 + "@typescript-eslint/scope-manager": 7.18.0 + "@typescript-eslint/types": 7.18.0 + "@typescript-eslint/typescript-estree": 7.18.0 + peerDependencies: + eslint: ^8.56.0 + checksum: 751dbc816dab8454b7dc6b26a56671dbec08e3f4ef94c2661ce1c0fc48fa2d05a64e03efe24cba2c22d03ba943cd3c5c7a5e1b7b03bbb446728aec1c640bd767 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:5.37.0": version: 5.37.0 resolution: "@typescript-eslint/visitor-keys@npm:5.37.0" @@ -922,6 +1249,23 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:7.18.0": + version: 7.18.0 + resolution: "@typescript-eslint/visitor-keys@npm:7.18.0" + dependencies: + "@typescript-eslint/types": 7.18.0 + eslint-visitor-keys: ^3.4.3 + checksum: 6e806a7cdb424c5498ea187a5a11d0fef7e4602a631be413e7d521e5aec1ab46ba00c76cfb18020adaa0a8c9802354a163bfa0deb74baa7d555526c7517bb158 + languageName: node + linkType: hard + +"@ungap/structured-clone@npm:^1.2.0": + version: 1.2.0 + resolution: "@ungap/structured-clone@npm:1.2.0" + checksum: 4f656b7b4672f2ce6e272f2427d8b0824ed11546a601d8d5412b9d7704e83db38a8d9f402ecdf2b9063fc164af842ad0ec4a55819f621ed7e7ea4d1efcc74524 + languageName: node + linkType: hard + "acorn-jsx@npm:^5.3.2": version: 5.3.2 resolution: "acorn-jsx@npm:5.3.2" @@ -947,6 +1291,15 @@ __metadata: languageName: node linkType: hard +"acorn@npm:^8.9.0": + version: 8.12.1 + resolution: "acorn@npm:8.12.1" + bin: + acorn: bin/acorn + checksum: 677880034aee5bdf7434cc2d25b641d7bedb0b5ef47868a78dadabedccf58e1c5457526d9d8249cd253f2df087e081c3fe7d903b448d8e19e5131a3065b83c07 + languageName: node + linkType: hard + "ajv@npm:^6.10.0, ajv@npm:^6.12.4": version: 6.12.6 resolution: "ajv@npm:6.12.6" @@ -1029,6 +1382,15 @@ __metadata: languageName: node linkType: hard +"brace-expansion@npm:^2.0.1": + version: 2.0.1 + resolution: "brace-expansion@npm:2.0.1" + dependencies: + balanced-match: ^1.0.0 + checksum: a61e7cd2e8a8505e9f0036b3b6108ba5e926b4b55089eeb5550cd04a471fe216c96d4fe7e4c7f995c728c554ae20ddfc4244cad10aef255e72b62930afd233d1 + languageName: node + linkType: hard + "braces@npm:^3.0.2": version: 3.0.2 resolution: "braces@npm:3.0.2" @@ -1045,6 +1407,13 @@ __metadata: languageName: node linkType: hard +"canonicalize@npm:^2.0.0": + version: 2.0.0 + resolution: "canonicalize@npm:2.0.0" + checksum: 541dee6e53c06e81b11241eba76197b6837b3e2a5951a175f57d75eb4c59599ec68566ee88aa2fb3dac6e6ca57d674ca3c0d9c75a855176ce78f0555b26caf39 + languageName: node + linkType: hard + "cbor-web@npm:^9.0.0": version: 9.0.0 resolution: "cbor-web@npm:9.0.0" @@ -1149,6 +1518,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.1": + version: 4.3.6 + resolution: "debug@npm:4.3.6" + dependencies: + ms: 2.1.2 + peerDependenciesMeta: + supports-color: + optional: true + checksum: 1630b748dea3c581295e02137a9f5cbe2c1d85fea35c1e6597a65ca2b16a6fce68cec61b299d480787ef310ba927dc8c92d3061faba0ad06c6a724672f66be7f + languageName: node + linkType: hard + "deep-is@npm:^0.1.3": version: 0.1.4 resolution: "deep-is@npm:0.1.4" @@ -1188,6 +1569,13 @@ __metadata: languageName: node linkType: hard +"dotenv@npm:^16.4.5": + version: 16.4.5 + resolution: "dotenv@npm:16.4.5" + checksum: 301a12c3d44fd49888b74eb9ccf9f07a1f5df43f489e7fcb89647a2edcd84c42d6bc349dc8df099cd18f07c35c7b04685c1a4f3e6a6a9e6b30f8d48c15b7f49c + languageName: node + linkType: hard + "error-stack-parser@npm:^1.3.6": version: 1.3.6 resolution: "error-stack-parser@npm:1.3.6" @@ -1232,6 +1620,28 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-unused-imports@npm:^3.1.0": + version: 3.2.0 + resolution: "eslint-plugin-unused-imports@npm:3.2.0" + dependencies: + eslint-rule-composer: ^0.3.0 + peerDependencies: + "@typescript-eslint/eslint-plugin": 6 - 7 + eslint: 8 + peerDependenciesMeta: + "@typescript-eslint/eslint-plugin": + optional: true + checksum: e85ae4f3af489294ef5e0969ab904fa87f9fa7c959ca0804f30845438db4aeb0428ddad7ab06a70608e93121626799977241b442fdf126a4d0667be57390c3d6 + languageName: node + linkType: hard + +"eslint-rule-composer@npm:^0.3.0": + version: 0.3.0 + resolution: "eslint-rule-composer@npm:0.3.0" + checksum: c2f57cded8d1c8f82483e0ce28861214347e24fd79fd4144667974cd334d718f4ba05080aaef2399e3bbe36f7d6632865110227e6b176ed6daa2d676df9281b1 + languageName: node + linkType: hard + "eslint-scope@npm:^5.1.1": version: 5.1.1 resolution: "eslint-scope@npm:5.1.1" @@ -1252,6 +1662,16 @@ __metadata: languageName: node linkType: hard +"eslint-scope@npm:^7.2.2": + version: 7.2.2 + resolution: "eslint-scope@npm:7.2.2" + dependencies: + esrecurse: ^4.3.0 + estraverse: ^5.2.0 + checksum: ec97dbf5fb04b94e8f4c5a91a7f0a6dd3c55e46bfc7bbcd0e3138c3a76977570e02ed89a1810c778dcd72072ff0e9621ba1379b4babe53921d71e2e4486fda3e + languageName: node + linkType: hard + "eslint-utils@npm:^3.0.0": version: 3.0.0 resolution: "eslint-utils@npm:3.0.0" @@ -1277,6 +1697,13 @@ __metadata: languageName: node linkType: hard +"eslint-visitor-keys@npm:^3.4.1, eslint-visitor-keys@npm:^3.4.3": + version: 3.4.3 + resolution: "eslint-visitor-keys@npm:3.4.3" + checksum: 36e9ef87fca698b6fd7ca5ca35d7b2b6eeaaf106572e2f7fd31c12d3bfdaccdb587bba6d3621067e5aece31c8c3a348b93922ab8f7b2cbc6aaab5e1d89040c60 + languageName: node + linkType: hard + "eslint@npm:^8.23.1": version: 8.23.1 resolution: "eslint@npm:8.23.1" @@ -1326,6 +1753,54 @@ __metadata: languageName: node linkType: hard +"eslint@npm:^8.57.0": + version: 8.57.0 + resolution: "eslint@npm:8.57.0" + dependencies: + "@eslint-community/eslint-utils": ^4.2.0 + "@eslint-community/regexpp": ^4.6.1 + "@eslint/eslintrc": ^2.1.4 + "@eslint/js": 8.57.0 + "@humanwhocodes/config-array": ^0.11.14 + "@humanwhocodes/module-importer": ^1.0.1 + "@nodelib/fs.walk": ^1.2.8 + "@ungap/structured-clone": ^1.2.0 + ajv: ^6.12.4 + chalk: ^4.0.0 + cross-spawn: ^7.0.2 + debug: ^4.3.2 + doctrine: ^3.0.0 + escape-string-regexp: ^4.0.0 + eslint-scope: ^7.2.2 + eslint-visitor-keys: ^3.4.3 + espree: ^9.6.1 + esquery: ^1.4.2 + esutils: ^2.0.2 + fast-deep-equal: ^3.1.3 + file-entry-cache: ^6.0.1 + find-up: ^5.0.0 + glob-parent: ^6.0.2 + globals: ^13.19.0 + graphemer: ^1.4.0 + ignore: ^5.2.0 + imurmurhash: ^0.1.4 + is-glob: ^4.0.0 + is-path-inside: ^3.0.3 + js-yaml: ^4.1.0 + json-stable-stringify-without-jsonify: ^1.0.1 + levn: ^0.4.1 + lodash.merge: ^4.6.2 + minimatch: ^3.1.2 + natural-compare: ^1.4.0 + optionator: ^0.9.3 + strip-ansi: ^6.0.1 + text-table: ^0.2.0 + bin: + eslint: bin/eslint.js + checksum: 3a48d7ff85ab420a8447e9810d8087aea5b1df9ef68c9151732b478de698389ee656fd895635b5f2871c89ee5a2652b3f343d11e9db6f8486880374ebc74a2d9 + languageName: node + linkType: hard + "espree@npm:^9.4.0": version: 9.4.0 resolution: "espree@npm:9.4.0" @@ -1337,6 +1812,17 @@ __metadata: languageName: node linkType: hard +"espree@npm:^9.6.0, espree@npm:^9.6.1": + version: 9.6.1 + resolution: "espree@npm:9.6.1" + dependencies: + acorn: ^8.9.0 + acorn-jsx: ^5.3.2 + eslint-visitor-keys: ^3.4.1 + checksum: eb8c149c7a2a77b3f33a5af80c10875c3abd65450f60b8af6db1bfcfa8f101e21c1e56a561c6dc13b848e18148d43469e7cd208506238554fb5395a9ea5a1ab9 + languageName: node + linkType: hard + "esquery@npm:^1.4.0": version: 1.4.0 resolution: "esquery@npm:1.4.0" @@ -1346,6 +1832,15 @@ __metadata: languageName: node linkType: hard +"esquery@npm:^1.4.2": + version: 1.6.0 + resolution: "esquery@npm:1.6.0" + dependencies: + estraverse: ^5.1.0 + checksum: 08ec4fe446d9ab27186da274d979558557fbdbbd10968fa9758552482720c54152a5640e08b9009e5a30706b66aba510692054d4129d32d0e12e05bbc0b96fb2 + languageName: node + linkType: hard + "esrecurse@npm:^4.3.0": version: 4.3.0 resolution: "esrecurse@npm:4.3.0" @@ -1376,13 +1871,6 @@ __metadata: languageName: node linkType: hard -"eventemitter3@npm:^4.0.7": - version: 4.0.7 - resolution: "eventemitter3@npm:4.0.7" - checksum: 1875311c42fcfe9c707b2712c32664a245629b42bb0a5a84439762dd0fd637fc54d078155ea83c2af9e0323c9ac13687e03cfba79b03af9f40c89b4960099374 - languageName: node - linkType: hard - "eventemitter3@npm:^5.0.1": version: 5.0.1 resolution: "eventemitter3@npm:5.0.1" @@ -1488,6 +1976,13 @@ __metadata: languageName: node linkType: hard +"foreach@npm:^2.0.4": + version: 2.0.6 + resolution: "foreach@npm:2.0.6" + checksum: f7b68494545ee41cbd0b0425ebf5386c265dc38ef2a9b0d5cd91a1b82172e939b4cf9387f8e0ebf6db4e368fc79ed323f2198424d5c774515ac3ed9b08901c0e + languageName: node + linkType: hard + "formdata-polyfill@npm:^4.0.10": version: 4.0.10 resolution: "formdata-polyfill@npm:4.0.10" @@ -1520,7 +2015,7 @@ __metadata: languageName: node linkType: hard -"glob-parent@npm:^6.0.1": +"glob-parent@npm:^6.0.1, glob-parent@npm:^6.0.2": version: 6.0.2 resolution: "glob-parent@npm:6.0.2" dependencies: @@ -1552,6 +2047,15 @@ __metadata: languageName: node linkType: hard +"globals@npm:^13.19.0": + version: 13.24.0 + resolution: "globals@npm:13.24.0" + dependencies: + type-fest: ^0.20.2 + checksum: 56066ef058f6867c04ff203b8a44c15b038346a62efbc3060052a1016be9f56f4cf0b2cd45b74b22b81e521a889fc7786c73691b0549c2f3a6e825b3d394f43c + languageName: node + linkType: hard + "globby@npm:^11.1.0": version: 11.1.0 resolution: "globby@npm:11.1.0" @@ -1573,6 +2077,13 @@ __metadata: languageName: node linkType: hard +"graphemer@npm:^1.4.0": + version: 1.4.0 + resolution: "graphemer@npm:1.4.0" + checksum: bab8f0be9b568857c7bec9fda95a89f87b783546d02951c40c33f84d05bb7da3fd10f863a9beb901463669b6583173a8c8cc6d6b306ea2b9b9d5d3d943c3a673 + languageName: node + linkType: hard + "has-flag@npm:^3.0.0": version: 3.0.0 resolution: "has-flag@npm:3.0.0" @@ -1594,6 +2105,13 @@ __metadata: languageName: node linkType: hard +"ignore@npm:^5.3.1": + version: 5.3.1 + resolution: "ignore@npm:5.3.1" + checksum: 71d7bb4c1dbe020f915fd881108cbe85a0db3d636a0ea3ba911393c53946711d13a9b1143c7e70db06d571a5822c0a324a6bcde5c9904e7ca5047f01f1bf8cd3 + languageName: node + linkType: hard + "import-fresh@npm:^3.0.0, import-fresh@npm:^3.2.1": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" @@ -1651,6 +2169,13 @@ __metadata: languageName: node linkType: hard +"is-path-inside@npm:^3.0.3": + version: 3.0.3 + resolution: "is-path-inside@npm:3.0.3" + checksum: abd50f06186a052b349c15e55b182326f1936c89a78bf6c8f2b707412517c097ce04bc49a0ca221787bc44e1049f51f09a2ffb63d22899051988d3a618ba13e9 + languageName: node + linkType: hard + "isexe@npm:^2.0.0": version: 2.0.0 resolution: "isexe@npm:2.0.0" @@ -1683,6 +2208,15 @@ __metadata: languageName: node linkType: hard +"json-pointer@npm:^0.6.2": + version: 0.6.2 + resolution: "json-pointer@npm:0.6.2" + dependencies: + foreach: ^2.0.4 + checksum: 668143014b16d7f90e6f0e6c2d756b00b799424f58d750794a79a24cbce595855b224f7861986aaff719579558fbab81fb83c7371f5e24aded9dc33b3838de30 + languageName: node + linkType: hard + "json-schema-traverse@npm:^0.4.1": version: 0.4.1 resolution: "json-schema-traverse@npm:0.4.1" @@ -1708,7 +2242,8 @@ __metadata: version: 0.0.0-use.local resolution: "kilt-did-utilities@workspace:." dependencies: - "@kiltprotocol/sdk-js": 0.33.2-dip-2 + "@kiltprotocol/augment-api": 1.11210.0-rc + "@kiltprotocol/sdk-js": 1.0.0-alpha.3 "@typescript-eslint/eslint-plugin": ^5.37.0 "@typescript-eslint/parser": ^5.37.0 dotenv: ^16.0.1 @@ -1747,13 +2282,6 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.21": - version: 4.17.21 - resolution: "lodash@npm:4.17.21" - checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 - languageName: node - linkType: hard - "lru-cache@npm:^6.0.0": version: 6.0.0 resolution: "lru-cache@npm:6.0.0" @@ -1787,7 +2315,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^3.0.4, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -1796,10 +2324,19 @@ __metadata: languageName: node linkType: hard -"mock-socket@npm:^9.2.1": - version: 9.2.1 - resolution: "mock-socket@npm:9.2.1" - checksum: daf07689563163dbcefbefe23b2a9784a75d0af31706f23ad535c6ab2abbcdefa2e91acddeb50a3c39009139e47a8f909cbb38e8137452193ccb9331637fee3e +"minimatch@npm:^9.0.4": + version: 9.0.5 + resolution: "minimatch@npm:9.0.5" + dependencies: + brace-expansion: ^2.0.1 + checksum: 2c035575eda1e50623c731ec6c14f65a85296268f749b9337005210bb2b34e2705f8ef1a358b188f69892286ab99dc42c8fb98a57bde55c8d81b3023c19cea28 + languageName: node + linkType: hard + +"mock-socket@npm:^9.3.1": + version: 9.3.1 + resolution: "mock-socket@npm:9.3.1" + checksum: cb2dde4fc5dde280dd5ccb78eaaa223382ee16437f46b86558017655584ad08c22e733bde2dd5cc86927def506b6caeb0147e3167b9a62d70d5cf19d44103853 languageName: node linkType: hard @@ -1817,15 +2354,14 @@ __metadata: languageName: node linkType: hard -"nock@npm:^13.3.1": - version: 13.3.1 - resolution: "nock@npm:13.3.1" +"nock@npm:^13.5.0": + version: 13.5.4 + resolution: "nock@npm:13.5.4" dependencies: debug: ^4.1.0 json-stringify-safe: ^5.0.1 - lodash: ^4.17.21 propagate: ^2.0.0 - checksum: 0f2a73e8432f6b5650656c53eef99f9e5bbde3df538dc2f07057edc4438cfc61a394c9d06dd82e60f6e86d42433f20f3c04364a1f088beee7bf03a24e3f0fdd0 + checksum: d31f924e34c87ae985edfb7b5a56e8a4dcfc3a072334ceb6d686326581f93090b3e23492663a64ce61b8df4f365b113231d926bc300bcfe9e5eb309c3e4b8628 languageName: node linkType: hard @@ -1836,14 +2372,14 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^3.3.1": - version: 3.3.1 - resolution: "node-fetch@npm:3.3.1" +"node-fetch@npm:^3.3.2": + version: 3.3.2 + resolution: "node-fetch@npm:3.3.2" dependencies: data-uri-to-buffer: ^4.0.0 fetch-blob: ^3.1.4 formdata-polyfill: ^4.0.10 - checksum: 62145fd3ba4770a76110bc31fdc0054ab2f5442b5ce96e9c4b39fc9e94a3d305560eec76e1165d9259eab866e02a8eecf9301062bb5dfc9f08a4d08b69d223dd + checksum: 06a04095a2ddf05b0830a0d5302699704d59bda3102894ea64c7b9d4c865ecdff2d90fd042df7f5bc40337266961cb6183dcc808ea4f3000d024f422b462da92 languageName: node linkType: hard @@ -1870,6 +2406,20 @@ __metadata: languageName: node linkType: hard +"optionator@npm:^0.9.3": + version: 0.9.4 + resolution: "optionator@npm:0.9.4" + dependencies: + deep-is: ^0.1.3 + fast-levenshtein: ^2.0.6 + levn: ^0.4.1 + prelude-ls: ^1.2.1 + type-check: ^0.4.0 + word-wrap: ^1.2.5 + checksum: ecbd010e3dc73e05d239976422d9ef54a82a13f37c11ca5911dff41c98a6c7f0f163b27f922c37e7f8340af9d36febd3b6e9cef508f3339d4c393d7276d716bb + languageName: node + linkType: hard + "p-limit@npm:^3.0.2": version: 3.1.0 resolution: "p-limit@npm:3.1.0" @@ -1888,13 +2438,6 @@ __metadata: languageName: node linkType: hard -"pako@npm:^2.0.4": - version: 2.0.4 - resolution: "pako@npm:2.0.4" - checksum: 82b9b0b99dd830c9103856a6dbd10f0cb2c8c32b9768184727ea381a99666de9a47a069d2e6efe6acf09336f363956b50835c196ef9311b34b7274d420eb0d88 - languageName: node - linkType: hard - "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -2026,6 +2569,13 @@ __metadata: languageName: node linkType: hard +"scale-ts@npm:^1.6.0": + version: 1.6.0 + resolution: "scale-ts@npm:1.6.0" + checksum: 2cd6d3e31ea78621fe2e068eedc3beb6a3cfc338c9033f04ec3e355b4b08e134febad655c54a80272a50737136a27436f9d14d6525b126e621a3b77524111056 + languageName: node + linkType: hard + "semver@npm:^7.3.7": version: 7.3.7 resolution: "semver@npm:7.3.7" @@ -2037,6 +2587,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.6.0": + version: 7.6.3 + resolution: "semver@npm:7.6.3" + bin: + semver: bin/semver.js + checksum: 4110ec5d015c9438f322257b1c51fe30276e5f766a3f64c09edd1d7ea7118ecbc3f379f3b69032bacf13116dc7abc4ad8ce0d7e2bd642e26b0d271b56b61a7d8 + languageName: node + linkType: hard + "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -2060,13 +2619,12 @@ __metadata: languageName: node linkType: hard -"smoldot@npm:1.0.4": - version: 1.0.4 - resolution: "smoldot@npm:1.0.4" +"smoldot@npm:2.0.22": + version: 2.0.22 + resolution: "smoldot@npm:2.0.22" dependencies: - pako: ^2.0.4 ws: ^8.8.1 - checksum: 81ecc38b98f7ac4dd093753e85956262608dca3c8a288c20a25fe1762a6afcdbe6f3622ea30a346df3f4145e0900ef0595e56e96e9e0de83c59f0649d1ab4786 + checksum: 383bc6a5481190d64302fad56e9e4120a484885aee5543b268887de425708f04e8b3b3b69893333dfd9fd0e596f006afaa7c7ee5ff260c5d2be929c60302d385 languageName: node linkType: hard @@ -2171,6 +2729,15 @@ __metadata: languageName: node linkType: hard +"ts-api-utils@npm:^1.3.0": + version: 1.3.0 + resolution: "ts-api-utils@npm:1.3.0" + peerDependencies: + typescript: ">=4.2.0" + checksum: c746ddabfdffbf16cb0b0db32bb287236a19e583057f8649ee7c49995bb776e1d3ef384685181c11a1a480369e022ca97512cb08c517b2d2bd82c83754c97012 + languageName: node + linkType: hard + "ts-node@npm:^10.9.1": version: 10.9.1 resolution: "ts-node@npm:10.9.1" @@ -2223,10 +2790,10 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.5.0, tslib@npm:^2.5.3": - version: 2.5.3 - resolution: "tslib@npm:2.5.3" - checksum: 88902b309afaf83259131c1e13da1dceb0ad1682a213143a1346a649143924d78cf3760c448b84d796938fd76127183894f8d85cbb3bf9c4fddbfcc140c0003c +"tslib@npm:^2.6.2": + version: 2.6.3 + resolution: "tslib@npm:2.6.3" + checksum: 74fce0e100f1ebd95b8995fbbd0e6c91bdd8f4c35c00d4da62e285a3363aaa534de40a80db30ecfd388ed7c313c42d930ee0eaf108e8114214b180eec3dbe6f5 languageName: node linkType: hard @@ -2302,12 +2869,12 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^9.0.0": - version: 9.0.0 - resolution: "uuid@npm:9.0.0" +"uuid@npm:^10.0.0": + version: 10.0.0 + resolution: "uuid@npm:10.0.0" bin: uuid: dist/bin/uuid - checksum: 8dd2c83c43ddc7e1c71e36b60aea40030a6505139af6bee0f382ebcd1a56f6cd3028f7f06ffb07f8cf6ced320b76aea275284b224b002b289f89fe89c389b028 + checksum: 4b81611ade2885d2313ddd8dc865d93d8dccc13ddf901745edca8f86d99bc46d7a330d678e7532e7ebf93ce616679fb19b2e3568873ac0c14c999032acb25869 languageName: node linkType: hard @@ -2318,6 +2885,13 @@ __metadata: languageName: node linkType: hard +"varint@npm:^6.0.0": + version: 6.0.0 + resolution: "varint@npm:6.0.0" + checksum: 7684113c9d497c01e40396e50169c502eb2176203219b96e1c5ac965a3e15b4892bd22b7e48d87148e10fffe638130516b6dbeedd0efde2b2d0395aa1772eea7 + languageName: node + linkType: hard + "web-streams-polyfill@npm:^3.0.3": version: 3.2.1 resolution: "web-streams-polyfill@npm:3.2.1" @@ -2343,6 +2917,13 @@ __metadata: languageName: node linkType: hard +"word-wrap@npm:^1.2.5": + version: 1.2.5 + resolution: "word-wrap@npm:1.2.5" + checksum: f93ba3586fc181f94afdaff3a6fef27920b4b6d9eaefed0f428f8e07adea2a7f54a5f2830ce59406c8416f033f86902b91eb824072354645eea687dff3691ccb + languageName: node + linkType: hard + "wrappy@npm:1": version: 1.0.2 resolution: "wrappy@npm:1.0.2" @@ -2350,9 +2931,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.13.0": - version: 8.13.0 - resolution: "ws@npm:8.13.0" +"ws@npm:^8.16.0": + version: 8.18.0 + resolution: "ws@npm:8.18.0" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -2361,7 +2942,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 53e991bbf928faf5dc6efac9b8eb9ab6497c69feeb94f963d648b7a3530a720b19ec2e0ec037344257e05a4f35bd9ad04d9de6f289615ffb133282031b18c61c + checksum: 91d4d35bc99ff6df483bdf029b9ea4bfd7af1f16fc91231a96777a63d263e1eabf486e13a2353970efc534f9faa43bdbf9ee76525af22f4752cbc5ebda333975 languageName: node linkType: hard From 42ebed3cd89650da9fd4a69b808a3b1e94b20eb6 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Wed, 31 Jul 2024 10:26:11 +0200 Subject: [PATCH 2/3] wip --- src/att-key-set.ts | 39 +++++++++++------------- src/auth-key-set.ts | 39 +++++++++++------------- src/call-sign.ts | 67 ++++++++++++++++-------------------------- src/del-key-set.ts | 39 +++++++++++------------- src/did-create.ts | 20 ++++++------- src/dip-parent-sign.ts | 8 +++-- src/utils.ts | 61 ++++++++++++++++++++------------------ 7 files changed, 124 insertions(+), 149 deletions(-) diff --git a/src/att-key-set.ts b/src/att-key-set.ts index 2b3830c..4255233 100644 --- a/src/att-key-set.ts +++ b/src/att-key-set.ts @@ -2,6 +2,8 @@ import 'dotenv/config' import * as Kilt from '@kiltprotocol/sdk-js' +import type { Did, KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -10,7 +12,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -25,7 +27,7 @@ async function main() { ) } - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as Did if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } @@ -38,29 +40,22 @@ async function main() { ) } - const fullDid: Kilt.DidDocument = { - uri: didUri, - authentication: [ - { - ...authKey, - // Not needed - id: '#key', - }, - ], - } + const { didDocument } = await Kilt.DidResolver.resolve(didUri) - const newAttKeyTx = api.tx.did.setAttestationKey( - Kilt.Did.publicKeyToChain(newAttKey) - ) + if (didDocument === undefined) { + throw new Error(`The specified DID ${didUri} is not a full DID.`) + } - const signedExtrinsic = await Kilt.Did.authorizeTx( - fullDid.uri, - newAttKeyTx, - utils.getKeypairTxSigningCallback(authKey), - submitterAddress - ) + const newAttKeyTx = await Kilt.DidHelpers.setVerificationMethod({ + api, + didDocument, + publicKey: newAttKey, + relationship: 'assertionMethod', + signers: await Kilt.getSignersForKeypair({ keypair: authKey }), + submitter: submitterAddress, + }).getSubmittable() - const encodedOperation = signedExtrinsic.toHex() + const encodedOperation = newAttKeyTx.txHex console.log( // eslint-disable-next-line max-len `New assertion method key operation: ${encodedOperation}. Please submit this via PolkadotJS with the account that was provided: ${submitterAddress}.` diff --git a/src/auth-key-set.ts b/src/auth-key-set.ts index 022848d..dbdf0c1 100644 --- a/src/auth-key-set.ts +++ b/src/auth-key-set.ts @@ -2,6 +2,8 @@ import 'dotenv/config' import * as Kilt from '@kiltprotocol/sdk-js' +import type { Did, KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -10,7 +12,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -25,7 +27,7 @@ async function main() { ) } - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as Did if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } @@ -38,29 +40,22 @@ async function main() { ) } - const fullDid: Kilt.DidDocument = { - uri: didUri, - authentication: [ - { - ...authKey, - // Not needed - id: '#key', - }, - ], - } + const { didDocument } = await Kilt.DidResolver.resolve(didUri) - const newAuthKeyTx = api.tx.did.setAuthenticationKey( - Kilt.Did.publicKeyToChain(newAuthKey) - ) + if (didDocument === undefined) { + throw new Error(`The specified DID ${didUri} is not a full DID.`) + } - const signedExtrinsic = await Kilt.Did.authorizeTx( - fullDid.uri, - newAuthKeyTx, - utils.getKeypairTxSigningCallback(authKey), - submitterAddress - ) + const newAuthKeyTx = await Kilt.DidHelpers.setVerificationMethod({ + api, + didDocument, + publicKey: newAuthKey, + relationship: 'authentication', + signers: await Kilt.getSignersForKeypair({ keypair: authKey }), + submitter: submitterAddress, + }).getSubmittable() - const encodedOperation = signedExtrinsic.toHex() + const encodedOperation = newAuthKeyTx.txHex console.log( // eslint-disable-next-line max-len `New authentication key operation: ${encodedOperation}. Please submit this via PolkadotJS with the account that was provided: ${submitterAddress}.` diff --git a/src/call-sign.ts b/src/call-sign.ts index ccbea34..fee88ff 100644 --- a/src/call-sign.ts +++ b/src/call-sign.ts @@ -1,7 +1,10 @@ import 'dotenv/config' +import * as Did from '@kiltprotocol/did' import * as Kilt from '@kiltprotocol/sdk-js' +import type { Did as DidIdentifier, KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -10,7 +13,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -20,42 +23,19 @@ async function main() { // eslint-disable-next-line max-len const authKey = utils.generateAuthenticationKey() ?? - Kilt.Utils.Crypto.makeKeypairFromUri('//Alice') + Kilt.generateKeypair({ seed: '//Alice' }) const assertionKey = utils.generateAttestationKey() const delegationKey = utils.generateDelegationKey() - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as DidIdentifier if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } - const fullDid: Kilt.DidDocument = { - uri: didUri, - authentication: [ - { - ...authKey, - // Not needed - id: '#key', - }, - ], - assertionMethod: assertionKey - ? [ - { - ...assertionKey, - // Not needed - id: '#key2', - }, - ] - : undefined, - capabilityDelegation: delegationKey - ? [ - { - ...delegationKey, - // Not needed - id: '#key3', - }, - ] - : undefined, + const { didDocument } = await Kilt.DidResolver.resolve(didUri) + + if (didDocument === undefined) { + throw new Error(`The specified DID ${didUri} is not a full DID.`) } const encodedCall = process.env[utils.envNames.encodedCall] @@ -63,30 +43,35 @@ async function main() { const { method, section } = api.registry.findMetaCall(decodedCall.callIndex) const extrinsic = api.tx[section][method](...decodedCall.args) - const requiredKey = (() => { - const requiredKey = Kilt.Did.getKeyRelationshipForTx(extrinsic) + const signers = await (() => { + const requiredKey = Did.getVerificationRelationshipForTx(extrinsic) switch (requiredKey) { case 'authentication': - return authKey + return Kilt.getSignersForKeypair({ keypair: authKey }) case 'assertionMethod': return assertionKey + ? Kilt.getSignersForKeypair({ keypair: assertionKey }) + : undefined case 'capabilityDelegation': return delegationKey + ? Kilt.getSignersForKeypair({ keypair: delegationKey }) + : undefined } })() - if (requiredKey === undefined) { + if (signers === undefined) { throw new Error( 'The DID key to authorize the operation is not part of the DID Document. Please add such a key before re-trying.' ) } - const signedExtrinsic = await Kilt.Did.authorizeTx( - fullDid.uri, - extrinsic, - utils.getKeypairTxSigningCallback(requiredKey), - submitterAddress - ) + const signedExtrinsic = await Kilt.DidHelpers.transact({ + api, + call: extrinsic, + didDocument, + signers, + submitter: submitterAddress, + }).getSubmittable() - const encodedOperation = signedExtrinsic.toHex() + const encodedOperation = signedExtrinsic.txHex console.log( // eslint-disable-next-line max-len `Encoded DID-authorized operation: ${encodedOperation}. Please submit this via PolkadotJS with the account that was provided: ${submitterAddress}.` diff --git a/src/del-key-set.ts b/src/del-key-set.ts index 2437463..b31d3e1 100644 --- a/src/del-key-set.ts +++ b/src/del-key-set.ts @@ -2,6 +2,8 @@ import 'dotenv/config' import * as Kilt from '@kiltprotocol/sdk-js' +import type { Did, KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -10,7 +12,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -25,7 +27,7 @@ async function main() { ) } - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as Did if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } @@ -38,29 +40,22 @@ async function main() { ) } - const fullDid: Kilt.DidDocument = { - uri: didUri, - authentication: [ - { - ...authKey, - // Not needed - id: '#key', - }, - ], - } + const { didDocument } = await Kilt.DidResolver.resolve(didUri) - const newDelKeyTx = api.tx.did.setAttestationKey( - Kilt.Did.publicKeyToChain(newDelKey) - ) + if (didDocument === undefined) { + throw new Error(`The specified DID ${didUri} is not a full DID.`) + } - const signedExtrinsic = await Kilt.Did.authorizeTx( - fullDid.uri, - newDelKeyTx, - utils.getKeypairTxSigningCallback(authKey), - submitterAddress - ) + const newDelKeyTx = await Kilt.DidHelpers.setVerificationMethod({ + api, + didDocument, + publicKey: newDelKey, + relationship: 'capabilityDelegation', + signers: await Kilt.getSignersForKeypair({ keypair: authKey }), + submitter: submitterAddress, + }).getSubmittable() - const encodedOperation = signedExtrinsic.toHex() + const encodedOperation = newDelKeyTx.txHex console.log( // eslint-disable-next-line max-len `New capability delegation key operation: ${encodedOperation}. Please submit this via PolkadotJS with the account that was provided: ${submitterAddress}.` diff --git a/src/did-create.ts b/src/did-create.ts index af43e62..c773914 100644 --- a/src/did-create.ts +++ b/src/did-create.ts @@ -61,19 +61,19 @@ async function main() { ], assertionMethod: assertionDidKey ? [ - { - publicKey: assertionDidKey.publicKey, - type: assertionDidKey.keyType as Did.DidSigningMethodType, - }, - ] + { + publicKey: assertionDidKey.publicKey, + type: assertionDidKey.keyType as Did.DidSigningMethodType, + }, + ] : undefined, capabilityDelegation: delegationDidKey ? [ - { - publicKey: delegationDidKey.publicKey, - type: delegationDidKey.keyType as Did.DidSigningMethodType, - }, - ] + { + publicKey: delegationDidKey.publicKey, + type: delegationDidKey.keyType as Did.DidSigningMethodType, + }, + ] : undefined, }, submitterAddress, diff --git a/src/dip-parent-sign.ts b/src/dip-parent-sign.ts index 344aede..49cd2e8 100644 --- a/src/dip-parent-sign.ts +++ b/src/dip-parent-sign.ts @@ -5,6 +5,8 @@ import { ApiPromise, WsProvider } from '@polkadot/api' import { dipProviderCalls, types } from '@kiltprotocol/type-definitions' import { cryptoWaitReady } from '@polkadot/util-crypto' +import type { Did, KiltAddress } from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -22,7 +24,7 @@ async function main() { } const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -33,11 +35,11 @@ async function main() { // eslint-disable-next-line max-len const authKey = utils.generateAuthenticationKey() ?? - Kilt.Utils.Crypto.makeKeypairFromUri('//Alice') + Kilt.generateKeypair({ seed: '//Alice' }) const assertionKey = utils.generateAttestationKey() const delegationKey = utils.generateDelegationKey() - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as Did if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } diff --git a/src/utils.ts b/src/utils.ts index 6d6d521..b9f6d1f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,9 +1,13 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { + Base58BtcMultibaseString, + Did as DidIdentifier, DidUrl, MultibaseKeyPair, SignatureVerificationRelationship, + SignerInterface, + SubmittableExtrinsic, VerificationMethod, VerificationRelationship, } from '@kiltprotocol/types' @@ -17,6 +21,7 @@ import { KeyringPair } from '@polkadot/keyring/types' import { blake2AsHex } from '@polkadot/util-crypto' import { u8aToHex } from '@polkadot/util' +import * as Did from '@kiltprotocol/did' import * as Kilt from '@kiltprotocol/sdk-js' export const envNames = { @@ -115,7 +120,7 @@ export function generateAuthenticationKey(): MultibaseKeyPair | undefined { authKeyMnemonic === undefined ? undefined : (process.env[envNames.authKeyType] as KeyringPair['type']) || - defaults.authKeyType + defaults.authKeyType if (authKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { @@ -146,7 +151,7 @@ export function generateAttestationKey(): MultibaseKeyPair | undefined { attKeyMnemonic === undefined ? undefined : (process.env[envNames.attKeyType] as KeyringPair['type']) || - defaults.attKeyType + defaults.attKeyType if (attKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: attKeyMnemonic, type: attKeyType }) } else { @@ -177,7 +182,7 @@ export function generateDelegationKey(): MultibaseKeyPair | undefined { delKeyMnemonic === undefined ? undefined : (process.env[envNames.delKeyType] as KeyringPair['type']) || - defaults.delKeyType + defaults.delKeyType if (delKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: delKeyMnemonic, type: delKeyType }) } else { @@ -208,7 +213,7 @@ export function generateNewAuthenticationKey(): MultibaseKeyPair | undefined { authKeyMnemonic === undefined ? undefined : (process.env[envNames.newAuthKeyType] as KeyringPair['type']) || - defaults.authKeyType + defaults.authKeyType if (authKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { @@ -300,7 +305,7 @@ export async function generateSiblingDipTx( const { proof: paraStateProof } = await providerApi.rpc.state.getReadProof( [ providerApi.query.dipProvider.identityCommitments.key( - Kilt.Did.toChain(did), + Did.toChain(did), version ), ], @@ -315,7 +320,7 @@ export async function generateSiblingDipTx( // eslint-disable-next-line @typescript-eslint/no-explicit-any ( (await providerApi.call.dipProvider.generateProof({ - identifier: Kilt.Did.toChain(did), + identifier: Did.toChain(did), version, keys: [keyId.substring(1)], accounts: [], @@ -326,7 +331,7 @@ export async function generateSiblingDipTx( providerApi.disconnect() const extrinsic = consumerApi.tx.dipConsumer.dispatchAs( - Kilt.Did.toChain(did), + Did.toChain(did), { [`V${version}`]: { paraStateRoot: { @@ -355,15 +360,15 @@ export async function generateSiblingDipTx( export async function generateParentDipTx( relayApi: ApiPromise, providerApi: ApiPromise, - did: Kilt.DidUri, + did: DidIdentifier, call: Call, submitterAccount: KeyringPair['address'], - keyId: Kilt.DidVerificationKey['id'], - didKeyRelationship: Kilt.VerificationKeyRelationship, + keyId: `#0x${string}`, + didKeyRelationship: VerificationRelationship, includeWeb3Name: boolean, version: number, - sign: Kilt.SignExtrinsicCallback -): Promise { + sign: SignerInterface +): Promise { const signature = await generateDipTxSignature( relayApi, did, @@ -423,7 +428,7 @@ export async function generateParentDipTx( const { proof: paraStateProof } = await providerApi.rpc.state.getReadProof( [ providerApi.query.dipProvider.identityCommitments.key( - Kilt.Did.toChain(did), + Did.toChain(did), version ), ], @@ -438,7 +443,7 @@ export async function generateParentDipTx( // eslint-disable-next-line @typescript-eslint/no-explicit-any ( (await providerApi.call.dipProvider.generateProof({ - identifier: Kilt.Did.toChain(did), + identifier: Did.toChain(did), version, keys: [keyId.substring(1)], accounts: [], @@ -449,7 +454,7 @@ export async function generateParentDipTx( providerApi.disconnect() const extrinsic = relayApi.tx.dipConsumer.dispatchAs( - Kilt.Did.toChain(did), + Did.toChain(did), { [`V${version}`]: { paraStateRoot: { @@ -480,12 +485,12 @@ export async function generateParentDipTx( async function generateDipTxSignature( api: ApiPromise, - did: Kilt.DidUri, + did: DidIdentifier, call: Call, submitterAccount: KeyringPair['address'], - didKeyRelationship: Kilt.VerificationKeyRelationship, - sign: Kilt.SignExtrinsicCallback -): Promise<[Kilt.Did.EncodedSignature, BN]> { + didKeyRelationship: VerificationRelationship, + sign: SignerInterface +): Promise<[Did.EncodedSignature, BN]> { const isDipCapable = api.tx.dipConsumer.dispatchAs !== undefined if (!isDipCapable) { throw new Error(`The target chain at does not seem to support DIP.`) @@ -498,7 +503,7 @@ async function generateDipTxSignature( process.env[envNames.identityDetailsType] ?? defaults.identityDetailsType const identityDetails = (await api.query.dipConsumer.identityEntries( - Kilt.Did.toChain(did) + Did.toChain(did) // eslint-disable-next-line @typescript-eslint/no-explicit-any )) || api.createType(identityDetailsType, null) console.log( @@ -521,20 +526,18 @@ async function generateDipTxSignature( ) .toU8a() console.log(`Encoded payload for signing: ${u8aToHex(signaturePayload)}`) - const signature = await sign({ + const signature = await sign.sign({ data: signaturePayload, - keyRelationship: didKeyRelationship, - did, }) return [ { - [signature.keyType]: signature.signature, - } as Kilt.Did.EncodedSignature, + [sign.algorithm]: signature, + } as Did.EncodedSignature, blockNumber.toBn(), ] } -export function hexifyDipSignature(signature: Kilt.Did.EncodedSignature) { +export function hexifyDipSignature(signature: Did.EncodedSignature) { const [signatureType, byteSignature] = Object.entries(signature)[0] const hexifiedSignature = { [signatureType]: u8aToHex(byteSignature), @@ -544,9 +547,9 @@ export function hexifyDipSignature(signature: Kilt.Did.EncodedSignature) { export function computeDidKeyId( api: ApiPromise, - publicKey: Kilt.KeyringPair['publicKey'], - keyType: Kilt.DidKey['type'] -): Kilt.DidKey['id'] { + didKey: Base58BtcMultibaseString, +): `#0x${string}` { + const { publicKey, keyType } = Did.multibaseKeyToDidKey(didKey) const didEncodedKey = api.createType('DidDidDetailsDidPublicKey', { publicVerificationKey: { [keyType]: publicKey, From d00e95ce2d7e4930bc0f724984568bdcaf4c3fd4 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Wed, 31 Jul 2024 10:50:23 +0200 Subject: [PATCH 3/3] Wip pt 2 --- src/did-create.ts | 2 +- src/dip-parent-sign.ts | 37 ++++++++++++++++++++------------ src/dip-sibling-sign.ts | 43 ++++++++++++++++++++++++------------- src/utils.ts | 47 ++++++++++++----------------------------- 4 files changed, 66 insertions(+), 63 deletions(-) diff --git a/src/did-create.ts b/src/did-create.ts index c773914..04ed595 100644 --- a/src/did-create.ts +++ b/src/did-create.ts @@ -77,7 +77,7 @@ async function main() { : undefined, }, submitterAddress, - utils.getKeypairTxSigningCallback(authKey) + await Kilt.getSignersForKeypair({ keypair: authKey }) ) const encodedOperation = fullDidCreationTx.toHex() diff --git a/src/dip-parent-sign.ts b/src/dip-parent-sign.ts index 49cd2e8..6e28db8 100644 --- a/src/dip-parent-sign.ts +++ b/src/dip-parent-sign.ts @@ -5,7 +5,12 @@ import { ApiPromise, WsProvider } from '@polkadot/api' import { dipProviderCalls, types } from '@kiltprotocol/type-definitions' import { cryptoWaitReady } from '@polkadot/util-crypto' -import type { Did, KiltAddress } from '@kiltprotocol/types' +import type { + Did, + KiltAddress, + MultibaseKeyPair, + SignerInterface, +} from '@kiltprotocol/types' import * as utils from './utils' @@ -51,22 +56,33 @@ async function main() { const encodedCall = process.env[utils.envNames.encodedCall] const decodedCall = consumerApi.createType('Call', encodedCall) - const [requiredKey, verificationMethod] = (() => { + const singingDetails = await (async () => { const providedMethod = utils.parseVerificationMethod() switch (providedMethod) { case 'authentication': - return [authKey, providedMethod] + return [authKey, await Kilt.getSignersForKeypair({ keypair: authKey })] case 'assertionMethod': - return [assertionKey, providedMethod] + return assertionKey + ? [ + assertionKey, + await Kilt.getSignersForKeypair({ keypair: assertionKey }), + ] + : undefined case 'capabilityDelegation': - return [delegationKey, providedMethod] + return delegationKey + ? [ + delegationKey, + await Kilt.getSignersForKeypair({ keypair: delegationKey }), + ] + : undefined } })() - if (requiredKey === undefined) { + if (singingDetails === undefined) { throw new Error( 'The DID key to authorize the operation is not part of the DID Document. Please add such a key before re-trying.' ) } + const [key, signers] = singingDetails as [MultibaseKeyPair, SignerInterface] // eslint-disable-next-line max-len const dipProofVersion = (() => { @@ -82,11 +98,7 @@ async function main() { runtime: dipProviderCalls, types, }) - const didKeyId = utils.computeDidKeyId( - providerApi, - requiredKey.publicKey, - requiredKey.type - ) + const didKeyId = utils.computeDidKeyId(providerApi, key.publicKeyMultibase) const includeWeb3Name = process.env[utils.envNames.includeWeb3Name]?.toLowerCase() === 'true' || @@ -98,10 +110,9 @@ async function main() { decodedCall, submitterAddress, didKeyId, - verificationMethod, includeWeb3Name, dipProofVersion, - utils.getKeypairTxSigningCallback(requiredKey) + signers ) const encodedOperation = signedExtrinsic.toHex() diff --git a/src/dip-sibling-sign.ts b/src/dip-sibling-sign.ts index 8cfd545..4e55c36 100644 --- a/src/dip-sibling-sign.ts +++ b/src/dip-sibling-sign.ts @@ -5,6 +5,13 @@ import { ApiPromise, WsProvider } from '@polkadot/api' import { dipProviderCalls, types } from '@kiltprotocol/type-definitions' import { cryptoWaitReady } from '@polkadot/util-crypto' +import type { + Did, + KiltAddress, + MultibaseKeyPair, + SignerInterface, +} from '@kiltprotocol/types' + import * as utils from './utils' async function main() { @@ -29,7 +36,7 @@ async function main() { const submitterAddress = process.env[ utils.envNames.submitterAddress - ] as Kilt.KiltAddress + ] as KiltAddress if (submitterAddress === undefined) { throw new Error( `No "${utils.envNames.submitterAddress}" env variable specified.` @@ -40,11 +47,11 @@ async function main() { // eslint-disable-next-line max-len const authKey = utils.generateAuthenticationKey() ?? - Kilt.Utils.Crypto.makeKeypairFromUri('//Alice') + Kilt.generateKeypair({ seed: '//Alice' }) const assertionKey = utils.generateAttestationKey() const delegationKey = utils.generateDelegationKey() - const didUri = process.env[utils.envNames.didUri] as Kilt.DidUri + const didUri = process.env[utils.envNames.didUri] as Did if (didUri === undefined) { throw new Error(`"${utils.envNames.didUri}" not specified.`) } @@ -56,22 +63,33 @@ async function main() { const encodedCall = process.env[utils.envNames.encodedCall] const decodedCall = consumerApi.createType('Call', encodedCall) - const [requiredKey, verificationMethod] = (() => { + const singingDetails = await (async () => { const providedMethod = utils.parseVerificationMethod() switch (providedMethod) { case 'authentication': - return [authKey, providedMethod] + return [authKey, await Kilt.getSignersForKeypair({ keypair: authKey })] case 'assertionMethod': - return [assertionKey, providedMethod] + return assertionKey + ? [ + assertionKey, + await Kilt.getSignersForKeypair({ keypair: assertionKey }), + ] + : undefined case 'capabilityDelegation': - return [delegationKey, providedMethod] + return delegationKey + ? [ + delegationKey, + await Kilt.getSignersForKeypair({ keypair: delegationKey }), + ] + : undefined } })() - if (requiredKey === undefined) { + if (singingDetails === undefined) { throw new Error( 'The DID key to authorize the operation is not part of the DID Document. Please add such a key before re-trying.' ) } + const [key, signers] = singingDetails as [MultibaseKeyPair, SignerInterface] // eslint-disable-next-line max-len const dipProofVersion = (() => { @@ -87,11 +105,7 @@ async function main() { runtime: dipProviderCalls, types, }) - const didKeyId = utils.computeDidKeyId( - providerApi, - requiredKey.publicKey, - requiredKey.type - ) + const didKeyId = utils.computeDidKeyId(providerApi, key.publicKeyMultibase) const includeWeb3Name = process.env[utils.envNames.includeWeb3Name]?.toLowerCase() === 'true' || @@ -104,10 +118,9 @@ async function main() { decodedCall, submitterAddress, didKeyId, - verificationMethod, includeWeb3Name, dipProofVersion, - utils.getKeypairTxSigningCallback(requiredKey) + signers ) const encodedOperation = signedExtrinsic.toHex() diff --git a/src/utils.ts b/src/utils.ts index b9f6d1f..02ed555 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -3,13 +3,10 @@ import type { Base58BtcMultibaseString, Did as DidIdentifier, - DidUrl, MultibaseKeyPair, SignatureVerificationRelationship, SignerInterface, SubmittableExtrinsic, - VerificationMethod, - VerificationRelationship, } from '@kiltprotocol/types' import type { BN } from '@polkadot/util' import type { Call } from '@polkadot/types/interfaces' @@ -77,15 +74,6 @@ export const defaults: Defaults = { dipProofVersion: 0, } -export function getKeypairTxSigningCallback( - signingKeypair: Kilt.KiltKeyringPair -): Kilt.Did.GetStoreTxSignCallback { - return async ({ data }) => ({ - signature: signingKeypair.sign(data), - keyType: signingKeypair.type, - }) -} - export function readWsAddress(): string { let wsAddress = process.env[envNames.wsAddress] if (wsAddress === undefined) { @@ -120,7 +108,7 @@ export function generateAuthenticationKey(): MultibaseKeyPair | undefined { authKeyMnemonic === undefined ? undefined : (process.env[envNames.authKeyType] as KeyringPair['type']) || - defaults.authKeyType + defaults.authKeyType if (authKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { @@ -151,7 +139,7 @@ export function generateAttestationKey(): MultibaseKeyPair | undefined { attKeyMnemonic === undefined ? undefined : (process.env[envNames.attKeyType] as KeyringPair['type']) || - defaults.attKeyType + defaults.attKeyType if (attKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: attKeyMnemonic, type: attKeyType }) } else { @@ -182,7 +170,7 @@ export function generateDelegationKey(): MultibaseKeyPair | undefined { delKeyMnemonic === undefined ? undefined : (process.env[envNames.delKeyType] as KeyringPair['type']) || - defaults.delKeyType + defaults.delKeyType if (delKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: delKeyMnemonic, type: delKeyType }) } else { @@ -213,7 +201,7 @@ export function generateNewAuthenticationKey(): MultibaseKeyPair | undefined { authKeyMnemonic === undefined ? undefined : (process.env[envNames.newAuthKeyType] as KeyringPair['type']) || - defaults.authKeyType + defaults.authKeyType if (authKeyMnemonic !== undefined) { return Kilt.generateKeypair({ seed: authKeyMnemonic, type: authKeyType }) } else { @@ -221,11 +209,11 @@ export function generateNewAuthenticationKey(): MultibaseKeyPair | undefined { } } -const validValues: Set = new Set([ +const validValues = new Set([ 'authentication', 'assertionMethod', 'capabilityDelegation', -]) +]) as Set export function parseVerificationMethod(): SignatureVerificationRelationship { const verificationMethod = process.env[envNames.verificationMethod] if (verificationMethod === undefined) { @@ -246,21 +234,19 @@ export async function generateSiblingDipTx( relayApi: ApiPromise, providerApi: ApiPromise, consumerApi: ApiPromise, - did: DidUrl, + did: DidIdentifier, call: Call, submitterAccount: KeyringPair['address'], - keyId: VerificationMethod['id'], - didKeyRelationship: VerificationRelationship, + keyId: `#0x${string}`, includeWeb3Name: boolean, version: number, - sign: SignExtrinsicCallback -): Promise { + sign: SignerInterface +): Promise { const signature = await generateDipTxSignature( consumerApi, did, call, submitterAccount, - didKeyRelationship, sign ) @@ -312,9 +298,7 @@ export async function generateSiblingDipTx( previousBlockHash ) console.log( - `DIP proof v${version} generated for the DID key ${keyId.substring( - 1 - )} (${didKeyRelationship}).` + `DIP proof v${version} generated for the DID key ${keyId.substring(1)}.` ) const dipProof = // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -364,7 +348,6 @@ export async function generateParentDipTx( call: Call, submitterAccount: KeyringPair['address'], keyId: `#0x${string}`, - didKeyRelationship: VerificationRelationship, includeWeb3Name: boolean, version: number, sign: SignerInterface @@ -374,7 +357,6 @@ export async function generateParentDipTx( did, call, submitterAccount, - didKeyRelationship, sign ) @@ -435,9 +417,7 @@ export async function generateParentDipTx( previousBlockHash ) console.log( - `DIP proof v${version} generated for the DID key ${keyId.substring( - 1 - )} (${didKeyRelationship}).` + `DIP proof v${version} generated for the DID key ${keyId.substring(1)}.` ) const dipProof = // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -488,7 +468,6 @@ async function generateDipTxSignature( did: DidIdentifier, call: Call, submitterAccount: KeyringPair['address'], - didKeyRelationship: VerificationRelationship, sign: SignerInterface ): Promise<[Did.EncodedSignature, BN]> { const isDipCapable = api.tx.dipConsumer.dispatchAs !== undefined @@ -547,7 +526,7 @@ export function hexifyDipSignature(signature: Did.EncodedSignature) { export function computeDidKeyId( api: ApiPromise, - didKey: Base58BtcMultibaseString, + didKey: Base58BtcMultibaseString ): `#0x${string}` { const { publicKey, keyType } = Did.multibaseKeyToDidKey(didKey) const didEncodedKey = api.createType('DidDidDetailsDidPublicKey', {