Skip to main content

resolve_session_or_wallet_signer

Function resolve_session_or_wallet_signer 

Source
pub(crate) async fn resolve_session_or_wallet_signer(
    tempo: &TempoOpts,
    wallet: &WalletOpts,
    chain_id: u64,
) -> Result<(Option<WalletSigner>, Option<TempoAccessKeyConfig>)>
Expand description

Resolves a command signer, preferring an explicitly selected Tempo session.

Session resolution is fail-closed: when --tempo.session or TEMPO_SESSION_ID is set, wallet signer options are rejected by [TempoOpts::session_signer_for_wallet] instead of falling back to a long-lived signer.