arrows-split-up-and-leftTransaction Types

Seismic transaction types and data structures in seismic-alloy

Core data structures for building, signing, encrypting, and submitting Seismic transactions.

Overview

seismic-alloy defines several transaction types that extend Alloy's standard Ethereum types with Seismic-specific encryption and privacy features. These types live in the seismic-alloy-consensus crate and are re-exported through the prelude.

Type Summary

Type
Description
Use Case

Encrypted Seismic transaction (type 0x4A)

Privacy-preserving contract calls and state changes

Encryption metadata and security parameters

Attached to every TxSeismic for key exchange, nonce, and expiry

Additional Authenticated Data (AAD) context

AEAD encryption binding -- ensures ciphertext is tied to tx params

Standard EVM transaction fields

Subset of tx fields used in AAD construction

Signed transaction wrapper enum

Network submission -- wraps all supported tx types including Seismic

Transaction Lifecycle

TransactionRequest           Build with seismic_foundry_tx_builder()
       |
       v
SeismicTransactionRequest    Mark as seismic with .seismic()
       |
       v
TxSeismic                    Filled by filler pipeline (nonce, gas, elements)
       |
       v
Signed<TxSeismic>            Signed with wallet private key
       |
       v
SeismicTxEnvelope::Seismic   Wrapped in envelope for RLP encoding
       |
       v
Network                      Broadcast via send_raw_transaction

Relationship Between Types

Crate Location

These types are defined in seismic-alloy-consensus and re-exported through seismic-alloy-prelude:

Page
Description

The core Seismic transaction struct with all fields and methods

Encryption parameters, builder methods, and crypto helpers

AAD generation for AEAD encryption

Signed transaction wrapper for network submission

See Also

Last updated