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§
- decode_
0x_ bytes - Decode a
0x-prefixed or bare hex string into raw bytes. - load_
signer - Decrypt the keystore at
keystore_pathusing the resolved password. - load_
signer_ and_ validate - Decrypt the keystore at
keystore_pathand validate against the expected address. - resolve_
keystore_ path - Resolve the clean PathBuf for the keystore, stripping any
file:prefix. - resolve_
password - Resolve the keystore password: env var wins over file. Trims trailing
\r/\nbut rejects a file that is otherwise empty. - resolve_
password_ with_ inline - Resolve the keystore password with an optional interactive/prompted inline password.
- resolve_
password_ with_ inline_ and_ missing_ hint - Resolve password with inline precedence, using a custom missing-password message on failure.
- resolve_
proxy_ rpc_ url - Resolve the authenticated Tempo RPC URL for the deployment.
- sign_
and_ send_ submission_ fee - Sign and broadcast an ERC-20 submission-fee transfer under the per-wallet lock.
- validate_
signer_ address - Validate that the decrypted signer address matches an expected address string, if given.