Expand description
Tempo session registry and local lifecycle metadata.
Structsยง
- Canonical
Call ๐Scope - Canonical target scope used for order-independent policy comparisons.
- Canonical
Selector ๐Rule - Canonical selector rule used for order-independent policy comparisons.
- Canonical
Token ๐Limit - Canonical spending limit used for order-independent policy comparisons.
- Resolved
Session Signer - A live session key resolved into the signer and Tempo access-key metadata.
- 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
Token Limit - Spending limit stored for a session entry.
Enumsยง
- Session
Status - Status of a local session entry.
Constantsยง
- SESSIONS_
HEADER ๐ - WALLET_
SESSIONS_ PATH - Relative path from Tempo home to the session registry file.
Functionsยง
- authorization_
limits ๐ - Converts signed authorization limits into canonical form for session comparison.
- authorization_
scope ๐ - Converts signed authorization scope into canonical form for session comparison.
- authorization_
selector_ ๐rules - Converts signed authorization selector rules into canonical form for session comparison.
- key_
type_ ๐to_ signature_ type - Maps stored session key types to Tempo authorization signature types.
- mark_
expired_ session_ entries - Mark expired live sessions in the registry and persist the status updates.
- mutate_
session_ ๐record - parse_
session_ ๐limit - Parses a stored session spending limit from decimal or 0x-prefixed hex.
- 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.
- remove_
session_ entry - Atomically remove a session from the registry.
- resolve_
live_ session_ signer - Resolve a live session key into a signer and access-key configuration.
- session_
authorization_ ๐limits - Converts stored session limits into canonical form for authorization comparison.
- session_
authorization_ ๐scope - Converts stored session scope into canonical form for authorization comparison.
- session_
authorization_ ๐selector_ rules - Converts stored selector rules into canonical form for authorization comparison.
- session_
registry_ path - Returns the path to the Tempo session registry file.
- set_
session_ ๐status - 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_
session_ ๐authorization_ policy - Ensures authorization expiry, limits, and call scope match the stored session policy.
- validate_
signed_ ๐session_ authorization - Ensures a signed authorization matches stored session identity, key type, signer, and policy.