@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.mjs CHANGED
@@ -12125,6 +12125,11 @@ var TrezorDeviceSession = class {
12125
12125
  requestData = {};
12126
12126
  continue;
12127
12127
  }
12128
+ if ((response.type === "PinMatrixRequest" || response.type === "PassphraseRequest") && this.connectionType === "ble" && this.protocol === "v1") {
12129
+ this.core = void 0;
12130
+ this.currentFeatures = void 0;
12131
+ throw thpPairingRefused("Trezor Bluetooth requires the encrypted THP protocol");
12132
+ }
12128
12133
  if (response.type === "PinMatrixRequest") {
12129
12134
  const pin = await this.handlePinMatrixRequest(
12130
12135
  response.message