From fc4d0ac3ad58f3888ac760acb7e39d96c1d7fa34 Mon Sep 17 00:00:00 2001 From: chaitanyapotti Date: Fri, 20 Mar 2026 17:58:46 +0800 Subject: [PATCH 1/3] bump scure/base packages --- package-lock.json | 44 +++++++++++++++++-- packages/seed-phrase/package.json | 4 +- .../src/MetamaskSeedPhraseFormat.ts | 2 +- packages/share-serialization/package.json | 2 +- packages/share-serialization/src/utils.ts | 2 +- 5 files changed, 45 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 12254a7d..2f2b4af7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19909,8 +19909,8 @@ "version": "17.2.0", "license": "MIT", "dependencies": { - "@scure/bip32": "^1.7.0", - "@scure/bip39": "^1.6.0", + "@scure/bip32": "^2.0.1", + "@scure/bip39": "^2.0.1", "@tkey/common-types": "^17.2.0", "@toruslabs/metadata-helpers": "^8.2.0" }, @@ -19925,6 +19925,42 @@ "@babel/runtime": "7.x" } }, + "packages/seed-phrase/node_modules/@scure/base": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-2.0.0.tgz", + "integrity": "sha512-3E1kpuZginKkek01ovG8krQ0Z44E3DHPjc5S2rjJw9lZn3KSQOs8S7wqikF/AH7iRanHypj85uGyxk0XAyC37w==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "packages/seed-phrase/node_modules/@scure/bip32": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-2.0.1.tgz", + "integrity": "sha512-4Md1NI5BzoVP+bhyJaY3K6yMesEFzNS1sE/cP+9nuvE7p/b0kx9XbpDHHFl8dHtufcbdHRUUQdRqLIPHN/s7yA==", + "license": "MIT", + "dependencies": { + "@noble/curves": "2.0.1", + "@noble/hashes": "2.0.1", + "@scure/base": "2.0.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "packages/seed-phrase/node_modules/@scure/bip39": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-2.0.1.tgz", + "integrity": "sha512-PsxdFj/d2AcJcZDX1FXN3dDgitDDTmwf78rKZq1a6c1P1Nan1X/Sxc7667zU3U+AN60g7SxxP0YCVw2H/hBycg==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "2.0.1", + "@scure/base": "2.0.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "packages/service-provider-base": { "name": "@tkey/service-provider-base", "version": "17.2.0", @@ -19993,9 +20029,9 @@ "version": "17.2.0", "license": "MIT", "dependencies": { + "@noble/hashes": "^2.0.1", "@tkey/common-types": "^17.2.0", - "@toruslabs/metadata-helpers": "^8.2.0", - "ethereum-cryptography": "^3.2.0" + "@toruslabs/metadata-helpers": "^8.2.0" }, "devDependencies": { "vitest": "4.1.0" diff --git a/packages/seed-phrase/package.json b/packages/seed-phrase/package.json index 1276e1e1..9ac7db40 100644 --- a/packages/seed-phrase/package.json +++ b/packages/seed-phrase/package.json @@ -41,8 +41,8 @@ "@babel/runtime": "7.x" }, "dependencies": { - "@scure/bip32": "^1.7.0", - "@scure/bip39": "^1.6.0", + "@scure/bip32": "^2.0.1", + "@scure/bip39": "^2.0.1", "@tkey/common-types": "^17.2.0", "@toruslabs/metadata-helpers": "^8.2.0" }, diff --git a/packages/seed-phrase/src/MetamaskSeedPhraseFormat.ts b/packages/seed-phrase/src/MetamaskSeedPhraseFormat.ts index 93983eff..8c47418d 100644 --- a/packages/seed-phrase/src/MetamaskSeedPhraseFormat.ts +++ b/packages/seed-phrase/src/MetamaskSeedPhraseFormat.ts @@ -1,6 +1,6 @@ import { HDKey } from "@scure/bip32"; import { entropyToMnemonic, mnemonicToSeedSync, validateMnemonic } from "@scure/bip39"; -import { wordlist } from "@scure/bip39/wordlists/english"; +import { wordlist } from "@scure/bip39/wordlists/english.js"; import { generateAddressFromPublicKey, generateID, diff --git a/packages/share-serialization/package.json b/packages/share-serialization/package.json index f05a92f5..b8168f67 100644 --- a/packages/share-serialization/package.json +++ b/packages/share-serialization/package.json @@ -48,7 +48,7 @@ "dependencies": { "@tkey/common-types": "^17.2.0", "@toruslabs/metadata-helpers": "^8.2.0", - "ethereum-cryptography": "^3.2.0" + "@noble/hashes": "^2.0.1" }, "bugs": { "url": "https://github.com/tkey/tkey/issues" diff --git a/packages/share-serialization/src/utils.ts b/packages/share-serialization/src/utils.ts index f08d44ba..bcb888c5 100644 --- a/packages/share-serialization/src/utils.ts +++ b/packages/share-serialization/src/utils.ts @@ -1,5 +1,5 @@ +import { sha256 } from "@noble/hashes/sha2.js"; import { bytesToHex, hexToBytes } from "@toruslabs/metadata-helpers"; -import { sha256 } from "ethereum-cryptography/sha256"; import ShareSerializationError from "./errors"; From 65dca08fd858d6bc5421ee31425859d18c23ff50 Mon Sep 17 00:00:00 2001 From: chaitanyapotti Date: Fri, 20 Mar 2026 18:02:21 +0800 Subject: [PATCH 2/3] v17.2.1 --- lerna.json | 2 +- package-lock.json | 10 +++++----- packages/default/package.json | 6 +++--- packages/seed-phrase/package.json | 2 +- packages/share-serialization/package.json | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lerna.json b/lerna.json index e76bc782..d7a5a156 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "17.2.0", + "version": "17.2.1", "packages": ["packages/*"], "npmClient": "npm" } diff --git a/package-lock.json b/package-lock.json index 2f2b4af7..bdc98fac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19837,21 +19837,21 @@ }, "packages/default": { "name": "@tkey/default", - "version": "17.2.0", + "version": "17.2.1", "license": "MIT", "dependencies": { "@tkey/common-types": "^17.2.0", "@tkey/core": "^17.2.0", "@tkey/service-provider-base": "^17.2.0", "@tkey/service-provider-torus": "^17.2.0", - "@tkey/share-serialization": "^17.2.0", + "@tkey/share-serialization": "^17.2.1", "@tkey/share-transfer": "^17.2.0", "@tkey/storage-layer-torus": "^17.2.0" }, "devDependencies": { "@tkey/private-keys": "^17.2.0", "@tkey/security-questions": "^17.2.0", - "@tkey/seed-phrase": "^17.2.0", + "@tkey/seed-phrase": "^17.2.1", "@toruslabs/eccrypto": "^7.0.0", "@toruslabs/http-helpers": "^9.0.0", "viem": "^2.47.5", @@ -19906,7 +19906,7 @@ }, "packages/seed-phrase": { "name": "@tkey/seed-phrase", - "version": "17.2.0", + "version": "17.2.1", "license": "MIT", "dependencies": { "@scure/bip32": "^2.0.1", @@ -20026,7 +20026,7 @@ }, "packages/share-serialization": { "name": "@tkey/share-serialization", - "version": "17.2.0", + "version": "17.2.1", "license": "MIT", "dependencies": { "@noble/hashes": "^2.0.1", diff --git a/packages/default/package.json b/packages/default/package.json index f72d9fdd..64f7905d 100644 --- a/packages/default/package.json +++ b/packages/default/package.json @@ -1,6 +1,6 @@ { "name": "@tkey/default", - "version": "17.2.0", + "version": "17.2.1", "description": "TKey default library", "main": "dist/lib.cjs/index.js", "module": "dist/lib.esm/index.js", @@ -39,14 +39,14 @@ "@tkey/core": "^17.2.0", "@tkey/service-provider-base": "^17.2.0", "@tkey/service-provider-torus": "^17.2.0", - "@tkey/share-serialization": "^17.2.0", + "@tkey/share-serialization": "^17.2.1", "@tkey/share-transfer": "^17.2.0", "@tkey/storage-layer-torus": "^17.2.0" }, "devDependencies": { "@tkey/private-keys": "^17.2.0", "@tkey/security-questions": "^17.2.0", - "@tkey/seed-phrase": "^17.2.0", + "@tkey/seed-phrase": "^17.2.1", "@toruslabs/eccrypto": "^7.0.0", "@toruslabs/http-helpers": "^9.0.0", "viem": "^2.47.5", diff --git a/packages/seed-phrase/package.json b/packages/seed-phrase/package.json index 9ac7db40..a4038e04 100644 --- a/packages/seed-phrase/package.json +++ b/packages/seed-phrase/package.json @@ -1,6 +1,6 @@ { "name": "@tkey/seed-phrase", - "version": "17.2.0", + "version": "17.2.1", "description": "TKey Seed Phrase Module", "author": "Torus Labs", "homepage": "https://github.com/tkey/tkey#readme", diff --git a/packages/share-serialization/package.json b/packages/share-serialization/package.json index b8168f67..e98b5b15 100644 --- a/packages/share-serialization/package.json +++ b/packages/share-serialization/package.json @@ -1,6 +1,6 @@ { "name": "@tkey/share-serialization", - "version": "17.2.0", + "version": "17.2.1", "description": "TKey share serialization module", "author": "Torus Labs", "homepage": "https://github.com/tkey/tkey#readme", @@ -46,9 +46,9 @@ "vitest": "4.1.0" }, "dependencies": { + "@noble/hashes": "^2.0.1", "@tkey/common-types": "^17.2.0", - "@toruslabs/metadata-helpers": "^8.2.0", - "@noble/hashes": "^2.0.1" + "@toruslabs/metadata-helpers": "^8.2.0" }, "bugs": { "url": "https://github.com/tkey/tkey/issues" From d8db7ada7f81a3d006d5a598ad980dd20d8dd5fa Mon Sep 17 00:00:00 2001 From: chaitanyapotti Date: Fri, 20 Mar 2026 18:04:06 +0800 Subject: [PATCH 3/3] update ci --- .github/workflows/backward.yml | 2 +- .github/workflows/buildMocks.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backward.yml b/.github/workflows/backward.yml index 2ae88095..6927bde6 100644 --- a/.github/workflows/backward.yml +++ b/.github/workflows/backward.yml @@ -46,7 +46,7 @@ jobs: npm run pack:lerna - name: Clone comp tests - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: tkey/backward-compatibility-tests path: backward-compatibility-tests diff --git a/.github/workflows/buildMocks.yml b/.github/workflows/buildMocks.yml index 567f7f9d..e917f399 100644 --- a/.github/workflows/buildMocks.yml +++ b/.github/workflows/buildMocks.yml @@ -38,7 +38,7 @@ jobs: npm run pack:lerna - name: Clone comp tests - uses: actions/checkout@master + uses: actions/checkout@v6 with: repository: tkey/backward-compatibility-tests path: ./backward-compatibility-tests @@ -59,7 +59,7 @@ jobs: cd ./backward-compatibility-tests npm run build-mocks - - uses: EndBug/add-and-commit@v7 + - uses: EndBug/add-and-commit@v9 with: author_name: Auto branch: master