gui(installer): remove prompts for spending paths

This commit is contained in:
Michael Mallan 2024-11-01 15:55:58 +00:00
parent 3764c972f2
commit ca276bf563
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB
2 changed files with 0 additions and 7 deletions

View File

@ -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.";

View File

@ -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)| {