Skip to main content

Module session

Module session 

Source
Expand description

Tempo temporary access-key lifecycle backed by the canonical Accounts store.

Re-exportsΒ§

use super::KeyType; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::Selector; πŸ”’
use alloy_primitives::U256; πŸ”’
use eyre::ensure; πŸ”’
use foundry_wallets::TempoAccountsWallet; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use std::fmt; πŸ”’
use std::num::NonZeroU64; πŸ”’
use std::time::SystemTime; πŸ”’
use tempo_alloy::accounts::TempoAccountsStore; πŸ”’
use tempo_primitives::transaction::CallScope; πŸ”’
use tempo_primitives::transaction::KeyAuthorization; πŸ”’
use tempo_primitives::transaction::SelectorRule; πŸ”’
use tempo_primitives::transaction::SignatureType; πŸ”’
use tempo_primitives::transaction::SignedKeyAuthorization; πŸ”’
use tempo_primitives::transaction::TokenLimit; πŸ”’

StructsΒ§

CanonicalCallScope πŸ”’
CanonicalSelectorRule πŸ”’
CanonicalTokenLimit πŸ”’
ResolvedSessionSigner
A live managed key pinned into an Accounts wallet.
SessionCallScope
SessionEntry
Foundry’s command-facing view of one Accounts access key.
SessionKeyMaterial
Transient key material used while adding an access key to the Accounts store.
SessionSelectorRule
SessionTokenLimit
Spending limit attached to a managed access key.

EnumsΒ§

SessionStatus
Status derived from a managed access key’s Accounts record.

FunctionsΒ§

canonical_authorization_limits πŸ”’
canonical_authorization_scope πŸ”’
canonical_authorization_selector_rules πŸ”’
canonical_session_limits πŸ”’
canonical_session_scope πŸ”’
canonical_session_selector_rules πŸ”’
mark_expired_session_entries
Retire expired managed access keys and return the number changed.
parse_limit πŸ”’
read_session_entries πŸ”’
read_session_entry
resolve_live_session_signer
Resolve a live managed key from the Accounts store and pin it for signing.
retire_session_entry
Retire local signing material in store.json for the selected managed key.
upsert_session_entry
Add a generated access key to the canonical Accounts store.
validate_session_authorization_policy πŸ”’
validate_signed_session_authorization πŸ”’
Validate that a signed authorization describes the command-facing managed key.