Skip to main content

Module keychain

Module keychain 

Source

Structsยง

AuthScopesJson
Newtype wrapper for parsed key-authorization --scopes JSON.
Doctor ๐Ÿ”’
Accumulated cast keychain doctor report.
DoctorCandidate ๐Ÿ”’
Candidate subject collected before the RPC chain is known.
DoctorContext ๐Ÿ”’
DoctorStep ๐Ÿ”’
DoctorSubject ๐Ÿ”’
Result of resolving a Tempo Accounts store entry for the doctor.
InspectedLimit ๐Ÿ”’
JsonCallScope ๐Ÿ”’
Represents a single scope entry in JSON format for --scopes.
JsonSelectorWithRecipients ๐Ÿ”’
KeyAuthorizationArgs
Common fields for cast key-authorization encode and cast key-authorization sign.
ScopesJson
Newtype wrapper for parsed --scopes JSON so clap can treat it as a single value.

Enumsยง

AllowedCallMatch ๐Ÿ”’
Outcome of TIP-1011 allowed-call matching.
AllowedCallsView ๐Ÿ”’
ChainTimestamp ๐Ÿ”’
DoctorStatus ๐Ÿ”’
JsonSelectorEntry ๐Ÿ”’
A selector entry can be either a plain string or an object with recipients.
KeyAuthorizationSubcommand
Tempo key-authorization artifact helpers.
KeyRegistration ๐Ÿ”’
KeychainPolicySubcommand
Higher-level access-key policy editing commands.
KeychainRootSigner ๐Ÿ”’
KeychainSubcommand
Tempo keychain management commands.
KeychainTxOutcome ๐Ÿ”’

Constantsยง

ACCOUNTS_STORE ๐Ÿ”’
ALLOWED_CALLS ๐Ÿ”’
CHAIN_ID ๐Ÿ”’
EXPIRING_NONCE ๐Ÿ”’
EXPIRY ๐Ÿ”’
FEE_TOKEN_BALANCE ๐Ÿ”’
HARDFORK ๐Ÿ”’
HARDFORK_UNKNOWN_HINT ๐Ÿ”’
KEY_REGISTRATION ๐Ÿ”’
LOCAL_SIGNING ๐Ÿ”’
REVOCATION ๐Ÿ”’
RPC ๐Ÿ”’
SPENDING_LIMITS ๐Ÿ”’
SPONSORSHIP ๐Ÿ”’
WIDEN_POLICY_HINT ๐Ÿ”’

Functionsยง

abi_key_type ๐Ÿ”’
The key type of an ABI signature type; None for values outside the known variants.
add_selector_rule_to_scope ๐Ÿ”’
Merges rule into scope; returns whether the scope changed.
address_label ๐Ÿ”’
address_label_with_address ๐Ÿ”’
allowed_calls_to_json ๐Ÿ”’
check_allowed_calls ๐Ÿ”’
Step 10 helper: allowed calls (TIP-1011) of the on-chain key, or of pending when the key is not registered yet.
check_authorization_spending_limits ๐Ÿ”’
Step 9 helper: spending limits of a pending key_authorization.
check_expiring_nonce ๐Ÿ”’
Validate TIP-1009 expiring-nonce options, if supplied.
check_expiring_nonce_window ๐Ÿ”’
check_expiry ๐Ÿ”’
Expiry check shared by on-chain keys (prefix empty) and pending authorizations (prefix = "key_authorization "). None means the key never expires.
check_fee_token_balance ๐Ÿ”’
Fee-token balance of the account paying for the transaction.
check_hardfork ๐Ÿ”’
check_local_signing_readiness ๐Ÿ”’
Step 4 helper: verify whether the local side can actually sign as the key.
check_spending_limits ๐Ÿ”’
Step 9 helper: spending limits of an on-chain key.
check_sponsorship ๐Ÿ”’
Validate sponsorship configuration, if supplied; returns the step and the fee payer.
collect_local_candidates ๐Ÿ”’
Step 1 helper: collect Tempo Accounts store candidates.
decode_and_validate_key_authorization ๐Ÿ”’
Decode a hex RLP key authorization (signed or unsigned) and validate its account binding.
diagnose_allowed_scopes ๐Ÿ”’
ensure_root_sender ๐Ÿ”’
Ensures what is signed by the expected root account when one is known.
fetch_chain_timestamp ๐Ÿ”’
format_duration_words ๐Ÿ”’
format_expiry ๐Ÿ”’
format_expiry_for_inspect ๐Ÿ”’
format_period_end ๐Ÿ”’
format_period_suffix ๐Ÿ”’
(period resets ...) for a non-zero period end, empty otherwise.
format_recipients ๐Ÿ”’
format_relative_timestamp ๐Ÿ”’
format_relative_timestamp_from ๐Ÿ”’
format_selector ๐Ÿ”’
format_timestamp_iso ๐Ÿ”’
format_utc ๐Ÿ”’
inspected_limit_to_json ๐Ÿ”’
key_entry_to_json ๐Ÿ”’
key_role ๐Ÿ”’
root when the key is the account EOA itself, admin when it is a T6 admin key, otherwise limited.
key_type_label ๐Ÿ”’
key_type_name ๐Ÿ”’
list_keys ๐Ÿ”’
cast keychain list / cast keychain show <wallet_address> โ€” display Tempo Accounts store entries, optionally filtered to one wallet.
load_accounts_store ๐Ÿ”’
match_allowed_call ๐Ÿ”’
Pure TIP-1011 matching logic.
parse_auth_limit ๐Ÿ”’
Parse a --limit TOKEN:AMOUNT[:PERIOD] flag value.
parse_auth_scope ๐Ÿ”’
parse_auth_scopes_json_wrapped ๐Ÿ”’
parse_auth_signature_type ๐Ÿ”’
parse_limit ๐Ÿ”’
parse_scopes_json ๐Ÿ”’
Parse --scopes JSON flag value.
parse_scopes_json_wrapped ๐Ÿ”’
parse_signature_type ๐Ÿ”’
print_allowed_calls ๐Ÿ”’
print_inspected_limits ๐Ÿ”’
print_key_entry ๐Ÿ”’
print_signed_key_authorization ๐Ÿ”’
redact_private_key_uri_tokens ๐Ÿ”’
remaining_limit ๐Ÿ”’
Remaining spending limit for token and, on T3+, the current period end.
resolve_key_metadata ๐Ÿ”’
Resolves the root account of key_address and its local Accounts store entry, if any.
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_check ๐Ÿ”’
cast keychain check / cast keychain info โ€” query on-chain key status.
run_inspect ๐Ÿ”’
cast keychain inspect <key_address> โ€” inspect on-chain key policy.
run_key_auth_inspect ๐Ÿ”’
cast key-authorization inspect โ€” decode a signed or unsigned key authorization and print its fields, including the T6 is_admin / account fields.
run_key_auth_sign ๐Ÿ”’
run_policy_add_call ๐Ÿ”’
cast keychain policy add-call โ€” merge a selector rule into a target scope.
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_signature ๐Ÿ”’
send_keychain_call ๐Ÿ”’
Send an AccountKeychain precompile call as a root-authorized transaction.
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.
tempo_accounts_store_path_display ๐Ÿ”’
validate_pending_key_authorization ๐Ÿ”’
Validates the local pending key_authorization, returning it with its pass detail.

Type Aliasesยง

Check ๐Ÿ”’
A doctor check as (name, label).