Skip to main content

Module configurable_key_auth

Module configurable_key_auth 

Source
Expand description

Tempo access keys authorized by a configurable accountโ€™s owners (T14, TIP-1111).

cast keychain authorize sends authorizeKey from the account in a 0x05 transaction. cast key-authorization sign signs an inline key authorization: the owners approve configurable_account_digest(authorization.signature_hash(), account, version), and their approvals form its 0x05 signature. The accountโ€™s configuration is read from the chain, as cast wallet does.

Re-exportsยง

use crate::cmd::auth::confirm_and_build; ๐Ÿ”’
use crate::cmd::send::SendOptions; ๐Ÿ”’
use crate::cmd::send::cast_send_with_configurable_account; ๐Ÿ”’
use crate::tempo::apply_fee_payment; ๐Ÿ”’
use crate::tempo::print_expires; ๐Ÿ”’
use crate::tempo::resolve_configurable_account; ๐Ÿ”’
use crate::tempo::tempo_provider; ๐Ÿ”’
use crate::tx::CastTxBuilder; ๐Ÿ”’
use crate::tx::SendTxOpts; ๐Ÿ”’
use crate::tx::apply_poll_interval; ๐Ÿ”’
use alloy_ens::NameOrAddress; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_provider::Provider; ๐Ÿ”’
use alloy_signer::Signer; ๐Ÿ”’
use clap::Args; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::WrapErr; ๐Ÿ”’
use foundry_cli::opts::TransactionOpts; ๐Ÿ”’
use foundry_cli::utils::LoadConfig; ๐Ÿ”’
use foundry_cli::utils::resolve_lane; ๐Ÿ”’
use foundry_common::tempo::configurable_account::combine_approvals; ๐Ÿ”’
use foundry_common::tempo::configurable_account::current_config; ๐Ÿ”’
use foundry_common::tempo::configurable_account::parse_owner_signature; ๐Ÿ”’
use foundry_wallets::WalletSigner; ๐Ÿ”’
use tempo_alloy::TempoNetwork; ๐Ÿ”’
use tempo_contracts::precompiles::ACCOUNT_KEYCHAIN_ADDRESS; ๐Ÿ”’
use tempo_primitives::transaction::KeyAuthorization; ๐Ÿ”’
use tempo_primitives::transaction::PrimitiveSignature; ๐Ÿ”’
use tempo_primitives::transaction::SignedKeyAuthorization; ๐Ÿ”’
use tempo_primitives::transaction::configurable_account_digest; ๐Ÿ”’

Structsยง

ConfigurableAccountArgs
Sign a key authorization as a Tempo configurable accountโ€™s owners (T14, TIP-1111).

Functionsยง

send_keychain_tx_as_configurable_account ๐Ÿ”’
Sends calldata to the AccountKeychain precompile from the configurable account that --tempo.configurable-account names, in a 0x05 transaction that its local owners approve (T14): the wallet signer, --tempo.owner and the Tempo Accounts store, as cast send does.