From 416a300fb6b4e412e3889fdf8231beab5572bc7f Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Tue, 13 Jan 2026 15:06:46 +0000 Subject: [PATCH] remove address index from qr code The index is not required and should not be revealed. --- liana-gui/src/app/state/receive.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/liana-gui/src/app/state/receive.rs b/liana-gui/src/app/state/receive.rs index 4df5012f7..6838f33c8 100644 --- a/liana-gui/src/app/state/receive.rs +++ b/liana-gui/src/app/state/receive.rs @@ -287,8 +287,8 @@ impl State for ReceivePanel { } } Message::View(view::Message::ShowQrCode(i)) => { - if let (Some(address), Some(index)) = (self.address(i), self.derivation_index(i)) { - if let Some(modal) = ShowQrCodeModal::new(address, *index) { + if let Some(address) = self.address(i) { + if let Some(modal) = ShowQrCodeModal::new(address) { self.modal = Modal::ShowQrCode(modal); } } @@ -420,8 +420,8 @@ pub struct ShowQrCodeModal { } impl ShowQrCodeModal { - pub fn new(address: &Address, index: ChildNumber) -> Option { - qr_code::Data::new(format!("bitcoin:{}?index={}", address, index)) + pub fn new(address: &Address) -> Option { + qr_code::Data::new(format!("bitcoin:{}", address)) .ok() .map(|qr_code| Self { qr_code,