mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-11 07:02:41 +00:00
chore(core): remove button request from pairing screens
[no changelog]
This commit is contained in:
parent
af005845a2
commit
2665833e3e
@ -202,9 +202,9 @@ class PairingContext(Context):
|
|||||||
trezorui_api.show_simple(
|
trezorui_api.show_simple(
|
||||||
title="Copy the following",
|
title="Copy the following",
|
||||||
text=self._get_code_code_entry_str(),
|
text=self._get_code_code_entry_str(),
|
||||||
|
button="Cancel",
|
||||||
),
|
),
|
||||||
br_name="pairing_code_entry",
|
br_name=None,
|
||||||
br_code=ButtonRequestType.Other,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _show_nfc_screen(self) -> UiResult:
|
async def _show_nfc_screen(self) -> UiResult:
|
||||||
@ -214,9 +214,9 @@ class PairingContext(Context):
|
|||||||
trezorui_api.show_simple(
|
trezorui_api.show_simple(
|
||||||
title="NFC Pairing",
|
title="NFC Pairing",
|
||||||
text="Move your device close to Trezor",
|
text="Move your device close to Trezor",
|
||||||
|
button="Cancel",
|
||||||
),
|
),
|
||||||
br_name="pairing_nfc",
|
br_name=None,
|
||||||
br_code=ButtonRequestType.Other,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _show_qr_code_screen(self) -> UiResult:
|
async def _show_qr_code_screen(self) -> UiResult:
|
||||||
@ -232,7 +232,7 @@ class PairingContext(Context):
|
|||||||
path="",
|
path="",
|
||||||
xpubs=[],
|
xpubs=[],
|
||||||
),
|
),
|
||||||
br_name="pairing_qr_code",
|
br_name=None,
|
||||||
br_code=ButtonRequestType.Other,
|
br_code=ButtonRequestType.Other,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -133,8 +133,6 @@ def test_pairing_qr_code(client: Client) -> None:
|
|||||||
protocol._read_message(ThpPairingPreparationsFinished)
|
protocol._read_message(ThpPairingPreparationsFinished)
|
||||||
|
|
||||||
# QR Code shown
|
# QR Code shown
|
||||||
protocol._read_message(ButtonRequest)
|
|
||||||
protocol._send_message(ButtonAck())
|
|
||||||
|
|
||||||
# Read code from "Trezor's display" using debuglink
|
# Read code from "Trezor's display" using debuglink
|
||||||
|
|
||||||
@ -184,8 +182,6 @@ def test_pairing_code_entry(client: Client) -> None:
|
|||||||
cpace_trezor_public_key = cpace_trezor.cpace_trezor_public_key
|
cpace_trezor_public_key = cpace_trezor.cpace_trezor_public_key
|
||||||
|
|
||||||
# Code Entry code shown
|
# Code Entry code shown
|
||||||
protocol._read_message(ButtonRequest)
|
|
||||||
protocol._send_message(ButtonAck())
|
|
||||||
|
|
||||||
pairing_info = client.debug.pairing_info(
|
pairing_info = client.debug.pairing_info(
|
||||||
thp_channel_id=protocol.channel_id.to_bytes(2, "big")
|
thp_channel_id=protocol.channel_id.to_bytes(2, "big")
|
||||||
@ -246,8 +242,6 @@ def _nfc_pairing(client: Client, protocol: ProtocolV2):
|
|||||||
protocol._read_message(ThpPairingPreparationsFinished)
|
protocol._read_message(ThpPairingPreparationsFinished)
|
||||||
|
|
||||||
# NFC screen shown
|
# NFC screen shown
|
||||||
protocol._read_message(ButtonRequest)
|
|
||||||
protocol._send_message(ButtonAck())
|
|
||||||
|
|
||||||
nfc_secret_host = random.randbytes(16)
|
nfc_secret_host = random.randbytes(16)
|
||||||
# Read `nfc_secret` and `handshake_hash` from Trezor using debuglink
|
# Read `nfc_secret` and `handshake_hash` from Trezor using debuglink
|
||||||
|
Loading…
Reference in New Issue
Block a user