Expand description
Tempo network utilities.
Re-exportsΒ§
pub use auth::AccessKeyOutcome;pub use auth::EnsureAccessKeyConfig;pub use auth::ensure_access_key;
ModulesΒ§
- auth
- Tempo wallet device-code authorization flow.
- keystore π
- Tempo wallet keystore types and discovery helpers.
- registry π
- session π
- Tempo session registry and local lifecycle metadata.
- session_
policy π - Pure Tempo session policy construction.
- tip20 π
- Shared TIP-20 helpers.
StructsΒ§
- Generated
Session Key - Locally generated secp256k1 session key material.
- KeyEntry
- A single key entry in
keys.toml. - Keys
File - The top-level structure of
keys.toml. - Prepared
Session Authorization - Prepared local session metadata plus the Tempo authorization that the root must sign.
- Resolved
Session Signer - A live session key resolved into the signer and Tempo access-key metadata.
- Session
Authorization Request - Typed inputs needed to authorize a temporary session access key.
- Session
Call Scope - A single target scope in a session entry.
- Session
Entry - Persisted metadata for one temporary session.
- Session
KeyMaterial - Private key material for a temporary session access key.
- Session
Record - Top-level registry persisted in
wallet/sessions.toml. - Session
Selector Rule - A single selector rule in a session scope.
- Session
Spend Limit - Typed spending limit for a temporary session access key.
- Session
Token Limit - Spending limit stored for a session entry.
- Stored
Token Limit - Per-token spending limit stored in
keys.toml. - Tempo
Sponsor - Gas sponsor configuration for Tempo fee-payer signatures.
- Tempo
Sponsor Preview - User-visible sponsor digest metadata for a single outgoing Tempo transaction.
EnumsΒ§
- KeyType
- Cryptographic key type.
- Session
Status - Status of a local session entry.
- Tip20
Logo UriValidation Error - Wallet
Type - Wallet type matching
tempo-commonβsWalletTypeenum.
ConstantsΒ§
- DEFAULT_
TEMPO_ HOME - Default Tempo home directory relative to the userβs home.
- TEMPO_
BROWSER_ GAS_ BUFFER - Conservative gas buffer for browser wallet transactions on Tempo chains.
- TEMPO_
HOME_ ENV - Environment variable to override the Tempo home directory.
- TEMPO_
PRIVATE_ KEY_ ENV - Environment variable for an ephemeral Tempo private key.
- TIP20_
ALLOWED_ LOGO_ URI_ SCHEMES - TIP20_
MAX_ LOGO_ URI_ BYTES - WALLET_
KEYS_ PATH - Relative path from Tempo home to the wallet keys file.
- WALLET_
SESSIONS_ PATH - Relative path from Tempo home to the session registry file.
FunctionsΒ§
- decode_
key_ authorization - Decodes a hex-encoded, RLP-encoded key authorization.
- mark_
expired_ session_ entries - Mark expired live sessions in the registry and persist the status updates.
- read_
live_ session_ key - Read a live session-scoped key entry by session id.
- read_
session_ entry - Read a session entry by id, returning parse/read errors to the caller.
- read_
session_ record - Read and parse the Tempo session registry.
- read_
tempo_ keys_ file - Read and parse the Tempo wallet keys file.
- redacted_
debug π - Placeholder rendered by
Debugimpls in place of secret key material. - remove_
session_ entry - Atomically remove a session from the registry.
- resolve_
fee_ token - Resolves an explicit Tempo fee token or the canonical default for a known Tempo network.
- resolve_
live_ session_ signer - Resolve a live session key into a signer and access-key configuration.
- resolve_
tempo_ sponsor_ signer - Resolves a
--tempo.sponsor-signerURI into a Foundry wallet signer. - session_
registry_ path - Returns the path to the Tempo session registry file.
- tempo_
home - Resolve the Tempo home directory.
- tempo_
keys_ path - Returns the path to the Tempo wallet keys file.
- update_
session_ status - Atomically update a session status in the registry.
- update_
session_ status_ if - Atomically update a session status only when the current status matches
current. - upsert_
session_ entry - Atomically upsert a
SessionEntryinto the session registry. - validate_
tip20_ logo_ uri