From fc08c3e29db8284aad3494db6517701ba05597e0 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 8 Dec 2022 17:14:47 +0800 Subject: [PATCH] add hazardous-debug to modals bip-39 for convenient key printout during debug. flag is normally off. --- services/modals/Cargo.toml | 1 + services/modals/src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/modals/Cargo.toml b/services/modals/Cargo.toml index cb838091a..f9177049a 100644 --- a/services/modals/Cargo.toml +++ b/services/modals/Cargo.toml @@ -30,4 +30,5 @@ hosted = ["utralib/hosted"] renode = ["utralib/renode"] tts = [] ditherpunk = [] +hazardous-debug = [] default = [] diff --git a/services/modals/src/main.rs b/services/modals/src/main.rs index 814b3a921..774f4f094 100644 --- a/services/modals/src/main.rs +++ b/services/modals/src/main.rs @@ -539,6 +539,8 @@ fn wrapped_main() -> ! { let phrase = renderer_modal.gam.bytes_to_bip39(&config.bip39_data[..config.bip39_len as usize].to_vec()) .unwrap_or(vec![t!("bip39.invalid_bytes", xous::LANG).to_string()]); + #[cfg(feature = "hazardous-debug")] + log::info!("BIP-39 phrase: {:?}", phrase); for word in phrase { text.push_str(&word);