1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

fix: keystone sign request break (#19349)

This commit is contained in:
Soralit 2023-06-01 06:06:20 +08:00 committed by GitHub
parent 58c0ac8b53
commit 63b810f0db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 295 deletions

View File

@ -528,8 +528,8 @@
"@keystonehq/metamask-airgapped-keyring": {
"packages": {
"@ethereumjs/tx": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true,
"browserify>buffer": true,
"browserify>events": true,
@ -541,60 +541,18 @@
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": {
"globals": {
"TextEncoder": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": {
"packages": {
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true,
@ -2011,15 +1969,6 @@
"browserify>buffer": true
}
},
"@ngraveio/bc-ur>crc>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"@ngraveio/bc-ur>jsbi": {
"globals": {
"define": true

View File

@ -528,8 +528,8 @@
"@keystonehq/metamask-airgapped-keyring": {
"packages": {
"@ethereumjs/tx": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true,
"browserify>buffer": true,
"browserify>events": true,
@ -541,60 +541,18 @@
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": {
"globals": {
"TextEncoder": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": {
"packages": {
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true,
@ -2489,15 +2447,6 @@
"browserify>buffer": true
}
},
"@ngraveio/bc-ur>crc>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"@ngraveio/bc-ur>jsbi": {
"globals": {
"define": true

View File

@ -528,8 +528,8 @@
"@keystonehq/metamask-airgapped-keyring": {
"packages": {
"@ethereumjs/tx": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true,
"browserify>buffer": true,
"browserify>events": true,
@ -541,60 +541,18 @@
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": {
"globals": {
"TextEncoder": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": {
"packages": {
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true,
@ -2489,15 +2447,6 @@
"browserify>buffer": true
}
},
"@ngraveio/bc-ur>crc>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"@ngraveio/bc-ur>jsbi": {
"globals": {
"define": true

View File

@ -528,8 +528,8 @@
"@keystonehq/metamask-airgapped-keyring": {
"packages": {
"@ethereumjs/tx": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": true,
"browserify>buffer": true,
"browserify>events": true,
@ -541,60 +541,18 @@
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": {
"globals": {
"TextEncoder": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth>hdkey": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": true,
"browserify>buffer": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry": {
"globals": {
"define": true
},
"packages": {
"@ngraveio/bc-ur": true,
"@ngraveio/bc-ur>crc>buffer": true,
"browserify>buffer": true,
"ethereumjs-wallet>bs58check": true,
"wait-on>rxjs>tslib": true
}
},
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": {
"packages": {
"@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true,
@ -2011,15 +1969,6 @@
"browserify>buffer": true
}
},
"@ngraveio/bc-ur>crc>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"@ngraveio/bc-ur>jsbi": {
"globals": {
"define": true

View File

@ -212,8 +212,8 @@
"@ethersproject/providers": "^5.7.2",
"@formatjs/intl-relativetimeformat": "^5.2.6",
"@fortawesome/fontawesome-free": "^5.13.0",
"@keystonehq/bc-ur-registry-eth": "^0.12.1",
"@keystonehq/metamask-airgapped-keyring": "^0.9.2",
"@keystonehq/bc-ur-registry-eth": "^0.19.1",
"@keystonehq/metamask-airgapped-keyring": "^0.13.1",
"@lavamoat/snow": "^1.5.0",
"@material-ui/core": "^4.11.0",
"@metamask-institutional/custody-controller": "0.2.6",

103
yarn.lock
View File

@ -3444,88 +3444,54 @@ __metadata:
languageName: node
linkType: hard
"@keystonehq/base-eth-keyring@npm:^0.10.2":
version: 0.10.2
resolution: "@keystonehq/base-eth-keyring@npm:0.10.2"
"@keystonehq/base-eth-keyring@npm:^0.14.1":
version: 0.14.1
resolution: "@keystonehq/base-eth-keyring@npm:0.14.1"
dependencies:
"@ethereumjs/tx": ^4.0.2
"@ethereumjs/util": ^8.0.0
"@keystonehq/bc-ur-registry-eth": ^0.15.2
"@keystonehq/bc-ur-registry-eth": ^0.19.1
hdkey: ^2.0.1
rlp: ^3.0.0
uuid: ^8.3.2
checksum: 689e204a70828508ed9ca9da8d943cf948c7f8e84c17053944f13cfbd69d2b96bb9694542fe48753cad7a985a2e9bd80e1fc0c7b5f78158e6dc7e8487ecec2d1
checksum: 2d61de9584631c68991686173a5356070a619a6f2873a822db35af56b8b7ee7b20b544374e0cd1972b139703362b56f5c566485eaea5a48644e34809af45b0a5
languageName: node
linkType: hard
"@keystonehq/bc-ur-registry-eth@npm:^0.12.1":
version: 0.12.1
resolution: "@keystonehq/bc-ur-registry-eth@npm:0.12.1"
"@keystonehq/bc-ur-registry-eth@npm:^0.19.1":
version: 0.19.1
resolution: "@keystonehq/bc-ur-registry-eth@npm:0.19.1"
dependencies:
"@ethereumjs/util": ^8.0.0
"@keystonehq/bc-ur-registry": ^0.5.0-alpha.5
"@keystonehq/bc-ur-registry": ^0.6.0
hdkey: ^2.0.1
uuid: ^8.3.2
checksum: 74c2b13cd2277478fb8a4932caf71f12a60c58b2d02322f8ee905eee11d6391deaeca712fe861955fb2b68ea0eaa0ff7155a31c66cd39d59433f2baffaf6c2ac
checksum: 51ca3ac78e68bec6b8ba1f1b938734fb7442f8b7b67f1befb8465d3b52ba1254fd5a0cf9f85825ab6a144b1c677cd6efb40a35fe4933f0e2df1fd5c4dda3c2fa
languageName: node
linkType: hard
"@keystonehq/bc-ur-registry-eth@npm:^0.15.2":
version: 0.15.2
resolution: "@keystonehq/bc-ur-registry-eth@npm:0.15.2"
dependencies:
"@ethereumjs/util": ^8.0.0
"@keystonehq/bc-ur-registry": 0.5.4
hdkey: ^2.0.1
uuid: ^8.3.2
checksum: 8541040c3eea59aa39d6a9b9f17acfe505956b01ffa977e54c51c14f45b6b8af4ca3dd594866934dd06939fbd752a3d5b1ba46e017df86362c2c67de52005860
languageName: node
linkType: hard
"@keystonehq/bc-ur-registry@npm:0.5.0-alpha.5":
version: 0.5.0-alpha.5
resolution: "@keystonehq/bc-ur-registry@npm:0.5.0-alpha.5"
dependencies:
"@ngraveio/bc-ur": ^1.1.5
base58check: ^2.0.0
tslib: ^2.3.0
checksum: 9d0a028db36494f5d28281ed67fc17c191c4b9e72ee5088f79ed5a874cc0d958018aeafa4dc9997e10425afa5b59f0e75e8760297056d9b756837ac7b69460aa
languageName: node
linkType: hard
"@keystonehq/bc-ur-registry@npm:0.5.4":
version: 0.5.4
resolution: "@keystonehq/bc-ur-registry@npm:0.5.4"
"@keystonehq/bc-ur-registry@npm:^0.6.0":
version: 0.6.0
resolution: "@keystonehq/bc-ur-registry@npm:0.6.0"
dependencies:
"@ngraveio/bc-ur": ^1.1.5
bs58check: ^2.1.2
tslib: ^2.3.0
checksum: d8e4b8c4cd2a7b21fad2e24895f7b32937b64f93d0f1540833be9dcb36062a44c8fc21204502f046c0e771370ba7ff6ce2356438028229813b4f15b2ecb714c6
checksum: a86a8775a065d422349b6624856693ca96bf00f82f1f63d23da33fe9d357e14dabf023902fbc9dd9a918ef420ea4d083b1196539e482a26cb85b691fe8b101af
languageName: node
linkType: hard
"@keystonehq/bc-ur-registry@patch:@keystonehq/bc-ur-registry@npm%3A0.5.0-alpha.5#./.yarn/patches/@keystonehq-bc-ur-registry-npm-0.5.0-alpha.5-b95c7992a6.patch::locator=metamask-crx%40workspace%3A.":
version: 0.5.0-alpha.5
resolution: "@keystonehq/bc-ur-registry@patch:@keystonehq/bc-ur-registry@npm%3A0.5.0-alpha.5#./.yarn/patches/@keystonehq-bc-ur-registry-npm-0.5.0-alpha.5-b95c7992a6.patch::version=0.5.0-alpha.5&hash=2b9ed1&locator=metamask-crx%40workspace%3A."
dependencies:
"@ngraveio/bc-ur": ^1.1.5
base58check: ^2.0.0
tslib: ^2.3.0
checksum: b215552f10c34a92c8651fae8b0d2794ea92f0a1261a40c4370a63fdb88945ee650e333f516ad368c1ebe84c41246337bf7579064471769f19869f8b4e7a88b2
languageName: node
linkType: hard
"@keystonehq/metamask-airgapped-keyring@npm:^0.9.2":
version: 0.9.2
resolution: "@keystonehq/metamask-airgapped-keyring@npm:0.9.2"
"@keystonehq/metamask-airgapped-keyring@npm:^0.13.1":
version: 0.13.1
resolution: "@keystonehq/metamask-airgapped-keyring@npm:0.13.1"
dependencies:
"@ethereumjs/tx": ^4.0.2
"@keystonehq/base-eth-keyring": ^0.10.2
"@keystonehq/bc-ur-registry-eth": ^0.15.2
"@keystonehq/base-eth-keyring": ^0.14.1
"@keystonehq/bc-ur-registry-eth": ^0.19.1
"@metamask/obs-store": ^7.0.0
rlp: ^2.2.6
uuid: ^8.3.2
checksum: 6ac0868a26d152e51d4a9e7c02c197ec6a6bc0cb56f99ec211c10b28b9acb33cce903fa87297bbbe547c61417b81c59324ee95da96b2a8cd0a2daadc772f9d6e
checksum: 9d9f4743c8017d90da7aeaf58a3f74113aac9852f40f6354ecc864126910e5dd15688d7b25539f0f6672308e551abe7319f1ce794a7a699b9b567cf40d2037ab
languageName: node
linkType: hard
@ -10365,13 +10331,6 @@ __metadata:
languageName: node
linkType: hard
"base-x@npm:^1.1.0":
version: 1.1.0
resolution: "base-x@npm:1.1.0"
checksum: 54e24c32919442627fe48aaa76338f8ff02187b42eae6e75e829eef3e44e37f43b128a271733322a7c798626ac7f4fb06184db2ef0ce1da7f37c448ef6f76e26
languageName: node
linkType: hard
"base-x@npm:^4.0.0":
version: 4.0.0
resolution: "base-x@npm:4.0.0"
@ -10388,15 +10347,6 @@ __metadata:
languageName: node
linkType: hard
"base58check@npm:^2.0.0":
version: 2.0.0
resolution: "base58check@npm:2.0.0"
dependencies:
bs58: ^3.0.0
checksum: 19f77522a38d66d5c9cc16411880e258899a6807b31477e3ac33ebaa64555126e9b29e7d5d2be88748aae8b1d05f91e5eb3aef4847a033af25b8a0c0f995b037
languageName: node
linkType: hard
"base64-arraybuffer@npm:^0.1.5":
version: 0.1.5
resolution: "base64-arraybuffer@npm:0.1.5"
@ -11143,15 +11093,6 @@ __metadata:
languageName: node
linkType: hard
"bs58@npm:^3.0.0":
version: 3.1.0
resolution: "bs58@npm:3.1.0"
dependencies:
base-x: ^1.1.0
checksum: 6d757a49958c43bc630f3b327511ce3ee065307c24240aa86189f72df0a4a8245c7ce7e7abad209b637f155006952c7b8f04bb4aa6ee4212a891882424bca82e
languageName: node
linkType: hard
"bs58@npm:^4.0.0, bs58@npm:^4.0.1":
version: 4.0.1
resolution: "bs58@npm:4.0.1"
@ -23955,8 +23896,8 @@ __metadata:
"@formatjs/intl-relativetimeformat": ^5.2.6
"@fortawesome/fontawesome-free": ^5.13.0
"@json-rpc-specification/meta-schema": ^1.0.6
"@keystonehq/bc-ur-registry-eth": ^0.12.1
"@keystonehq/metamask-airgapped-keyring": ^0.9.2
"@keystonehq/bc-ur-registry-eth": ^0.19.1
"@keystonehq/metamask-airgapped-keyring": ^0.13.1
"@lavamoat/allow-scripts": ^2.0.3
"@lavamoat/lavapack": ^5.0.0
"@lavamoat/snow": ^1.5.0