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 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 12254a7d..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,11 +19906,11 @@ }, "packages/seed-phrase": { "name": "@tkey/seed-phrase", - "version": "17.2.0", + "version": "17.2.1", "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", @@ -19990,12 +20026,12 @@ }, "packages/share-serialization": { "name": "@tkey/share-serialization", - "version": "17.2.0", + "version": "17.2.1", "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/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 1276e1e1..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", @@ -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..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", - "ethereum-cryptography": "^3.2.0" + "@toruslabs/metadata-helpers": "^8.2.0" }, "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";