@onekeyfe/hwk-trezor-core 1.2.8-alpha.50 → 1.2.8-alpha.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12140,6 +12140,11 @@ var TrezorDeviceSession = class {
12140
12140
  requestData = {};
12141
12141
  continue;
12142
12142
  }
12143
+ if ((response.type === "PinMatrixRequest" || response.type === "PassphraseRequest") && this.connectionType === "ble" && this.protocol === "v1") {
12144
+ this.core = void 0;
12145
+ this.currentFeatures = void 0;
12146
+ throw thpPairingRefused("Trezor Bluetooth requires the encrypted THP protocol");
12147
+ }
12143
12148
  if (response.type === "PinMatrixRequest") {
12144
12149
  const pin = await this.handlePinMatrixRequest(
12145
12150
  response.message