Skip to main content

load_signer

Function load_signer 

Source
pub fn load_signer(
    keystore_ref: Option<&str>,
    password_file: Option<&Path>,
    purpose: &str,
) -> Result<PrivateKeySigner, CmdError>
Expand description

Decrypt the keystore at keystore_ref using the resolved password.

purpose is interpolated into the “missing –keystore” usage error so the operator sees which flow demanded a signer (e.g. “submission fee”, “settlement approval”, “escrow approval”).