From 61976bf833ce09046d9afe928c5989b81bba3543 Mon Sep 17 00:00:00 2001 From: Qkin-Keystone Date: Tue, 24 Nov 2026 10:50:08 +0800 Subject: [PATCH 1/2] feat(keyring-eth-qr): validate Ethereum derivation paths --- packages/keyring-eth-qr/CHANGELOG.md | 1 + packages/keyring-eth-qr/package.json | 2 +- yarn.lock | 27 +++++++++++++++++++++++++-- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/packages/keyring-eth-qr/CHANGELOG.md b/packages/keyring-eth-qr/CHANGELOG.md index 045317aed..68660a280 100644 --- a/packages/keyring-eth-qr/CHANGELOG.md +++ b/packages/keyring-eth-qr/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Bump `@metamask/keyring-sdk` from `^4.2.1` to `^4.3.0` ([#720](https://github.com/MetaMask/accounts/pull/720)) +- Bump `@keystonehq/bc-ur-registry-eth` from `^0.19.1` to `^0.23.2` ([#TODO](https://github.com/MetaMask/accounts/pull/TODO)) ### Fixed diff --git a/packages/keyring-eth-qr/package.json b/packages/keyring-eth-qr/package.json index 3e21f9006..9d34b14b2 100644 --- a/packages/keyring-eth-qr/package.json +++ b/packages/keyring-eth-qr/package.json @@ -72,7 +72,7 @@ "@ethereumjs/rlp": "^5.0.2", "@ethereumjs/tx": "^5.4.0", "@ethereumjs/util": "^9.1.0", - "@keystonehq/bc-ur-registry-eth": "^0.19.1", + "@keystonehq/bc-ur-registry-eth": "^0.23.2", "@metamask/eth-sig-util": "^10.0.0", "@metamask/keyring-api": "^24.3.0", "@metamask/keyring-sdk": "^4.3.0", diff --git a/yarn.lock b/yarn.lock index f9e09e32d..1b8665083 100644 --- a/yarn.lock +++ b/yarn.lock @@ -619,7 +619,7 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/util@npm:9.1.0, @ethereumjs/util@npm:^9.0.1, @ethereumjs/util@npm:^9.1.0": +"@ethereumjs/util@npm:9.1.0, @ethereumjs/util@npm:^9.0.1, @ethereumjs/util@npm:^9.0.3, @ethereumjs/util@npm:^9.1.0": version: 9.1.0 resolution: "@ethereumjs/util@npm:9.1.0" dependencies: @@ -1339,6 +1339,18 @@ __metadata: languageName: node linkType: hard +"@keystonehq/bc-ur-registry-eth@npm:^0.23.2": + version: 0.23.2 + resolution: "@keystonehq/bc-ur-registry-eth@npm:0.23.2" + dependencies: + "@ethereumjs/util": "npm:^9.0.3" + "@keystonehq/bc-ur-registry": "npm:^0.7.0" + hdkey: "npm:^2.0.1" + uuid: "npm:^8.3.2" + checksum: 10/35e7ba1e8cd44ac925f1f0ce062e3bbb8090b4e958b7f5cfc23c805137fcc91439c618e01b7286e750f0f153fc00089833d5debd0bbd6872204da42334f11a0e + languageName: node + linkType: hard + "@keystonehq/bc-ur-registry@npm:^0.6.0": version: 0.6.4 resolution: "@keystonehq/bc-ur-registry@npm:0.6.4" @@ -1350,6 +1362,17 @@ __metadata: languageName: node linkType: hard +"@keystonehq/bc-ur-registry@npm:^0.7.0": + version: 0.7.1 + resolution: "@keystonehq/bc-ur-registry@npm:0.7.1" + dependencies: + "@ngraveio/bc-ur": "npm:^1.1.5" + bs58check: "npm:^2.1.2" + tslib: "npm:^2.3.0" + checksum: 10/6dd2a86ef83d385af93c1064097669baf06965cb051a123731109699eefc512ddf446a622c29e2afd3e559a5e5f98f1e7373e66179e7e027363111b450bc28f7 + languageName: node + linkType: hard + "@keystonehq/metamask-airgapped-keyring@npm:^0.15.2": version: 0.15.2 resolution: "@keystonehq/metamask-airgapped-keyring@npm:0.15.2" @@ -2066,7 +2089,7 @@ __metadata: "@ethereumjs/rlp": "npm:^5.0.2" "@ethereumjs/tx": "npm:^5.4.0" "@ethereumjs/util": "npm:^9.1.0" - "@keystonehq/bc-ur-registry-eth": "npm:^0.19.1" + "@keystonehq/bc-ur-registry-eth": "npm:^0.23.2" "@keystonehq/metamask-airgapped-keyring": "npm:^0.15.2" "@lavamoat/allow-scripts": "npm:^5.1.0" "@lavamoat/preinstall-always-fail": "npm:^3.0.1" From dbe82d9d4d20ac31061d39a222ea3d83d2d8c867 Mon Sep 17 00:00:00 2001 From: Qkin-Keystone Date: Fri, 27 Nov 2026 11:33:49 +0800 Subject: [PATCH 2/2] chore(keyring-eth-qr): update changelog PR link --- packages/keyring-eth-qr/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/keyring-eth-qr/CHANGELOG.md b/packages/keyring-eth-qr/CHANGELOG.md index 68660a280..f26f0e4b0 100644 --- a/packages/keyring-eth-qr/CHANGELOG.md +++ b/packages/keyring-eth-qr/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Bump `@metamask/keyring-sdk` from `^4.2.1` to `^4.3.0` ([#720](https://github.com/MetaMask/accounts/pull/720)) -- Bump `@keystonehq/bc-ur-registry-eth` from `^0.19.1` to `^0.23.2` ([#TODO](https://github.com/MetaMask/accounts/pull/TODO)) +- Bump `@keystonehq/bc-ur-registry-eth` from `^0.19.1` to `^0.23.2` ([#715](https://github.com/MetaMask/accounts/pull/715)) ### Fixed