Skip to content

Commit 528ed6d

Browse files
committed
Merge branch 'noise-optional' into staging/ble
2 parents f4b1249 + df6fa8f commit 528ed6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rust/bitbox02-rust/src/hww/noise.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ pub(crate) async fn process(
106106
bitbox02_noise::HandshakeResult::Done => {
107107
let already_verified =
108108
memory::check_noise_remote_static_pubkey(&state.remote_static_pubkey()?);
109-
if already_verified {
109+
// When communicating over BLE, we don't require noise pairing code
110+
// confirmation, as BLE already requires pairing with a pairing code.
111+
if bitbox02::communication_mode_ble_enabled() || already_verified {
110112
state.set_pairing_verified()?;
111113
usb_out.push(0); // let app know we don't require verification
112114
} else {

0 commit comments

Comments
 (0)