#include "lite_wallet_lifecycle_ui_adapter.h" // The lite-wallet lifecycle UI adapter declares the live LiteWalletLifecycleUiExecutionInput DTO // (and its request-intent / prerequisites sub-structs) that Settings drives the App-owned // controller with. The former dry-run "readiness" executor and its status/issue reporting were // removed as dead scaffolding. The only out-of-line definitions here are the pure passphrase rules // Settings applies to NEW passphrases. namespace dragonx { namespace wallet { bool liteEncryptPassphraseValid(std::string_view pass, std::string_view confirm) { return pass.size() >= kLiteMinNewPassphraseLength && pass == confirm; } bool liteLifecyclePassphraseAcceptable(LiteWalletLifecycleOperation operation, std::string_view pass, std::string_view confirm) { if (operation == LiteWalletLifecycleOperation::OpenExisting) return true; if (pass.empty()) return true; return liteEncryptPassphraseValid(pass, confirm); } } // namespace wallet } // namespace dragonx