From ca276bf563990cfd795f52a66e8021c23bde7279 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 1 Nov 2024 15:55:58 +0000 Subject: [PATCH] gui(installer): remove prompts for spending paths --- gui/src/installer/prompt.rs | 4 ---- gui/src/installer/view/editor/template/custom.rs | 3 --- 2 files changed, 7 deletions(-) diff --git a/gui/src/installer/prompt.rs b/gui/src/installer/prompt.rs index 3eafa48a..de1c44e1 100644 --- a/gui/src/installer/prompt.rs +++ b/gui/src/installer/prompt.rs @@ -1,9 +1,5 @@ pub const BACKUP_DESCRIPTOR_MESSAGE: &str = "The descriptor is necessary to recover your funds. The backup of your key (via mnemonics, sometimes called 'seed words') is not enough. Please make sure you have backed up both your private key and your descriptor."; pub const BACKUP_DESCRIPTOR_HELP: &str = "In Bitcoin, the coins are locked using a Script (related to the 'address'). In order to recover your funds you need to know both the Scripts you have participated in (your 'addresses'), and be able to sign a transaction that spends from those. For the ability to sign, you back up your private key, this is your mnemonic ('seed words'). For finding the coins that belong to you, you back up a template of your Script (your 'addresses'), this is your descriptor. However, note the descriptor need not be stored as securely as the private key. A thief who steals your descriptor but not your private key cannot steal your funds."; -pub const DEFINE_DESCRIPTOR_PRIMARY_PATH_TOOLTIP: &str = - "Set key(s) that can be used to spend coins immediately, with no time restriction."; -pub const DEFINE_DESCRIPTOR_RECOVERY_PATH_TOOLTIP: &str = - "Set key(s) that can be used to spend coins after a defined period of time.\n Different sets of keys can be set to become available at different times."; pub const DEFINE_DESCRIPTOR_FINGERPRINT_TOOLTIP: &str = "The alias is applied on all the keys derived from the same seed"; pub const REGISTER_DESCRIPTOR_HELP: &str = "To be used with the wallet, a signing device needs the descriptor. If the descriptor contains one or more keys imported from an external signing device, the descriptor must be registered on it. Registration confirms that the device is able to handle the policy. Registration on a device is not a substitute for backing up the descriptor."; diff --git a/gui/src/installer/view/editor/template/custom.rs b/gui/src/installer/view/editor/template/custom.rs index 82d424f8..1d8497b7 100644 --- a/gui/src/installer/view/editor/template/custom.rs +++ b/gui/src/installer/view/editor/template/custom.rs @@ -12,7 +12,6 @@ use liana_ui::{ use crate::installer::{ message::{self, Message}, - prompt, step::descriptor::editor::key::Key, view::{ editor::{define_descriptor_advanced_settings, defined_key, path, undefined_key}, @@ -97,7 +96,6 @@ pub fn custom_template<'a>( }, move || define_descriptor_advanced_settings(use_taproot), )) - .push(p1_regular(prompt::DEFINE_DESCRIPTOR_PRIMARY_PATH_TOOLTIP).style(color::GREY_2)) .push( path( color::GREEN, @@ -137,7 +135,6 @@ pub fn custom_template<'a>( ) .map(|msg| Message::DefineDescriptor(message::DefineDescriptor::Path(0, msg))), ) - .push(p1_regular(prompt::DEFINE_DESCRIPTOR_RECOVERY_PATH_TOOLTIP).style(color::GREY_2)) .push(recovery_paths.into_iter().enumerate().fold( Column::new().spacing(20), |col, (i, p)| {