Expand description
Shared keystore + password resolution for post / settle / escrow.
All three subcommands accept the same triad (--keystore,
--wallet-password-file, --wallet-address) and resolve the keystore via
the same two-step process:
- Password:
TASKFAST_WALLET_PASSWORDenv wins (preserves CI); else read from--wallet-password-file, trim trailing newline, reject empty. - Keystore: strip the optional
file:scheme prefix (taskfast initwrites that form toTEMPO_KEY_SOURCE), thenkeystore::load(File { path }, password).
Exposed as free functions (not a flattened clap struct) so each caller
keeps its existing Args struct — renaming those would churn wiremock
tests that import them by name.
Functions§
- load_
signer - Decrypt the keystore at
keystore_refusing the resolved password. - resolve_
password - Resolve the keystore password: env var wins over file. Trims trailing
\r/\nbut rejects a file that is otherwise empty.