Skip to main content

resolve_password_with_inline

Function resolve_password_with_inline 

Source
pub fn resolve_password_with_inline(
    inline_password: Option<&str>,
    password_file: Option<&Path>,
) -> Result<Zeroizing<String>, CmdError>
Expand description

Resolve the keystore password with an optional interactive/prompted inline password.

Precedence:

  1. inline_password (interactive prompt, avoids being second-guessed by stale env vars)
  2. TASKFAST_WALLET_PASSWORD environment variable (warns if used)
  3. password_file contents (single line required, trimmed of trailing CR/LF)