StructsΒ§
- Anvil
Node πInfo - Auth
Scopes Json - Newtype wrapper for parsed key-authorization
--scopesJSON. - Doctor
Candidate π - Candidate subject collected before the RPC chain is known.
- Doctor
Context π - Doctor
Step π - Doctor
Subject π - Result of resolving a local registry entry for the doctor.
- Inspected
Limit π - Json
Call πScope - Represents a single scope entry in JSON format for
--scopes. - Json
Selector πWith Recipients - KeyAuthorization
Args - Common fields for
cast key-authorization encodeandcast key-authorization sign. - KeyMetadata π
- Local
Candidate πResolution - Local
Limit πMetadata - Scopes
Json - Newtype wrapper for parsed
--scopesJSON so clap can treat it as a single value. - Sponsorship
Diagnosis π - Valid
KeyAuthorization π
EnumsΒ§
- Allowed
Call πMatch - Outcome of TIP-1011 allowed-call matching.
- Allowed
Calls πView - Chain
Timestamp π - Doctor
Status π - Json
Selector πEntry - A selector entry can be either a plain string or an object with recipients.
- KeyAuthorization
Subcommand - Tempo key-authorization artifact helpers.
- KeyRegistration
State π - Keychain
Policy Subcommand - Higher-level access-key policy editing commands.
- Keychain
Root πSigner - Keychain
Subcommand - Tempo keychain management commands.
- Keychain
TxOutcome π
FunctionsΒ§
- abi_
scope_ πto_ auth_ scope - active_
from_ πanvil_ node_ info - add_
selector_ πrule_ to_ scope - address_
label π - address_
label_ πwith_ address - allowed_
calls_ πto_ json - anvil_
tempo_ πhardfork_ active - auth_
signature_ πtype_ label - auth_
signature_ πtype_ name - call_
scope_ πto_ json - check_
allowed_ πcalls - Step 8 helper: allowed calls (TIP-1011).
- check_
authorization_ πallowed_ calls - check_
authorization_ πexpiry - check_
authorization_ πspending_ limits - check_
expiring_ πnonce - Step 12 helper: validate TIP-1009 expiring-nonce options, if supplied.
- check_
expiring_ πnonce_ window - check_
fee_ πtoken_ balance - Step 9 helper: fee-token balance on the root account.
- check_
hardfork π - check_
key_ πexpiry - check_
local_ πsigning_ readiness - Step 4 helper: verify whether the local side can actually sign as the key.
- check_
spending_ πlimits - Step 7 helper: spending limits.
- check_
sponsorship π - Step 13 helper: validate sponsorship configuration, if supplied.
- collect_
local_ πcandidates - Step 1 helper: collect local registry candidates.
- decode_
and_ πvalidate_ key_ authorization - Decode a hex RLP key authorization (signed or unsigned) and validate its account binding.
- decoded_
entry_ πkey_ authorization - diagnose_
allowed_ πscopes - encode_
key_ πauthorization - ensure_
key_ πauthorization_ root_ sender - Ensures key authorization artifacts are signed by the expected root account.
- ensure_
root_ πsender - Ensures AccountKeychain calls with a known root account use that root as the signer.
- ensure_
tempo_ πprecompile_ active - Fails early with
requirementwhen a Tempo precompile is not active yet: a pre-fork call would succeed as a silent no-op instead of reverting. Prefers the hardfork query and falls back to checking the precompileβs code when the RPC lacks the method. - fetch_
chain_ πtimestamp - finalize_
doctor π - Render the doctor result and return.
- format_
authorization_ πlimits - format_
duration_ πwords - format_
expiry π - format_
expiry_ πfor_ inspect - format_
period_ πend - format_
recipients π - format_
relative_ πtimestamp - format_
relative_ πtimestamp_ from - format_
selector π - format_
timestamp_ πiso - inspected_
limit_ πto_ json - is_
rpc_ πmethod_ not_ found - is_
tempo_ πhardfork_ active - key_
entry_ πeffective_ key - key_
entry_ πto_ json - key_
metadata_ πfrom_ entry - key_
type_ πlabel - key_
type_ πmatches_ authorization - key_
type_ πname - load_
keys_ πfile - local_
key_ πrole - Classify a local key entryβs role for display.
- match_
allowed_ πcall - Pure TIP-1011 matching logic. Extracted so it can be unit-tested.
- parse_
auth_ πlimit - Parse a key-authorization
--limit TOKEN:AMOUNT[:PERIOD]flag value. - parse_
auth_ πscope - parse_
auth_ πscopes_ json_ wrapped - parse_
auth_ πsignature_ type - parse_
limit π - Parse a
--limit TOKEN:AMOUNTflag value. - parse_
scopes_ πjson - Parse
--scopesJSON flag value. - parse_
scopes_ πjson_ wrapped - Parse
--scopesJSON flag value into the newtype wrapper. - parse_
signature_ πtype - print_
allowed_ πcalls - print_
doctor_ πstep - print_
inspected_ πlimits - print_
key_ πentry - print_
signed_ πkey_ authorization - redact_
private_ πkey_ uri_ tokens - resolve_
key_ πmetadata - resolve_
keychain_ πroot_ signer - Resolve the root-authorized signer used for AccountKeychain policy changes.
- run_
authorize π cast keychain authorize/cast keychain authβ authorize a key on-chain.- run_
burn_ πwitness cast keychain burn-witnessβ burn a TIP-1053 key authorization witness.- run_
check π cast keychain check/cast keychain infoβ query on-chain key status.- run_
doctor π cast keychain doctorβ diagnose access-key signing failures.- run_
inspect π cast keychain inspect <key_address>β inspect on-chain key policy.- run_
is_ πadmin cast keychain is-adminβ check whether a key is the root or an active admin key (T6).- run_
is_ πwitness_ burned cast keychain is-witness-burnedβ check TIP-1053 witness burn state.- run_
key_ πauth_ encode - run_
key_ πauth_ inspect cast key-authorization inspectβ decode a signed or unsigned key authorization and print its fields, including the T6is_admin/accountfields.- run_
key_ πauth_ sign - run_
list π cast keychain listβ display all entries from keys.toml.- run_
policy_ πadd_ call cast keychain policy add-callβ merge a selector rule into a target scope.- run_
policy_ πset_ limit cast keychain policy set-limitβ update a spending limit amount.- run_
remaining_ πlimit cast keychain rlβ query remaining spending limit.- run_
remove_ πscope cast keychain rsβ remove call scope for a target.- run_
revoke π cast keychain revoke/cast keychain revβ revoke a key on-chain.- run_
set_ πscope cast keychain ssβ set allowed call scopes.- run_
show π cast keychain show <wallet_address>β show keys for a specific wallet.- run_
update_ πlimit cast keychain ulβ update spending limit.- run_
verify_ πkeychain cast keychain verify/verify-adminβ verify a Tempo keychain signature (T6).- sanitize_
sponsor_ πconfig_ error - select_
subject_ πfor_ chain - Step 3 helper: filter candidates to the RPC chain id and pick a single entry.
- selector_
hex π - selector_
rule_ πto_ json - selector_
signature π - send_
keychain_ πtx - Send calldata to the Tempo AccountKeychain precompile as a root-authorized transaction.
- send_
keychain_ πtx_ with_ root_ signer - Send AccountKeychain calldata with an already-resolved root signer.
- signature_
type_ πlabel - signature_
type_ πname - tempo_
keys_ πpath_ display - unix_
timestamp_ πnow - validate_
admin_ πkey_ authorization - Enforce the T6 admin access-key invariants when constructing a key authorization.
- validate_
pending_ πkey_ authorization - wallet_
type_ πname