Skip to main content

insert_session_access_key_for_remaining_transactions

Function insert_session_access_key_for_remaining_transactions 

Source
pub(crate) fn insert_session_access_key_for_remaining_transactions(
    access_keys: &mut HashMap<SignerScope, (WalletSigner, TempoAccessKeyConfig)>,
    session: ResolvedSessionSigner,
    remaining_transactions: &[RemainingScriptTransaction],
) -> Result<()>
Expand description

Inserts this session access key when it covers the remaining transaction set.

Transactions from the session root on any other chain are rejected up front, so callers do not accidentally fall back to a long-lived root signer for the same session account.