reth_primitives/transaction/mod.rs
1//! Transaction types.
2
3use crate::Recovered;
4pub use alloy_consensus::transaction::PooledTransaction;
5use once_cell as _;
6#[allow(deprecated)]
7pub use pooled::PooledTransactionsElementEcRecovered;
8pub use reth_primitives_traits::{
9 sync::{LazyLock, OnceLock},
10 transaction::{
11 error::{
12 InvalidTransactionError, TransactionConversionError, TryFromRecoveredTransactionError,
13 },
14 signed::SignedTransaction,
15 },
16 FillTxEnv, WithEncoded,
17};
18pub use signature::{recover_signer, recover_signer_unchecked};
19pub use tx_type::TxType;
20
21/// Handling transaction signature operations, including signature recovery,
22/// applying chain IDs, and EIP-2 validation.
23pub mod signature;
24pub mod util;
25
26mod pooled;
27mod tx_type;
28
29/// Signed transaction.
30pub use reth_ethereum_primitives::{Transaction, TransactionSigned};
31
32/// Type alias kept for backward compatibility.
33#[deprecated(note = "Use `Recovered` instead")]
34pub type TransactionSignedEcRecovered<T = TransactionSigned> = Recovered<T>;