# seismicsystems/seismic architecture

> Architecture diagram of the GitHub repository seismicsystems/seismic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seismicsystems/seismic
- Repository: https://github.com/seismicsystems/seismic

## Overview

Seismic is a privacy-enabled EVM developer stack. Its client workflow configures a wallet and encryption state, prepares shielded contract calls or transactions, and submits them to an EVM node; SRC20 viewing-key event watching is a separate client capability. The TEE CLI supports selecting network and node context, scaffolding and assembling a network, and configuring or verifying node cohorts. The repository also contains TypeScript clients and React integrations, but sampled implementation evidence is concentrated in the Python SDK and Rust CLI, so their internal links are not expanded here.

Main entry points: [`clients/py/src/seismic_web3/transaction/send.py`](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction/send.py) (Shielded Send), [`clients/py/src/seismic_web3/contract/shielded.py`](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/contract/shielded.py) (Contract API), [`clients/py/src/seismic_web3/client.py`](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/client.py) (Client Factories), [`clients/py/src/seismic_web3/module.py`](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/module.py) (Seismic API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sdk["Client SDK"]
  node_wallet["Client Factories<br/>[client.py]"]
  node_namespaces["Seismic API<br/>[module.py]"]
  node_shielded_contract["Contract API<br/>[shielded.py]"]
  node_src20_watch["SRC20 Watchers<br/>[watch.py]"]
end

subgraph group_privacy["Privacy Transactions"]
  node_types["Transaction Types"]
  node_crypto["Encryption State<br/>[client.py]"]
  node_abi["Contract ABI<br/>[abi.py]"]
  node_gas["Gas Payment<br/>[gas_payment.py]"]
  node_send["Shielded Send<br/>[send.py]"]
  node_serialize["Transaction Serialization<br/>[serialize.py]"]
  node_rpc["Seismic RPC<br/>[rpc.py]"]
end

subgraph group_networks["Network Operations"]
  node_context["Context Commands<br/>[cmd.rs]"]
  node_context_state["Context Selection<br/>[lib.rs]"]
  node_network_init["Network Scaffold<br/>[init.rs]"]
  node_network_assemble["Network Assembly<br/>[assemble.rs]"]
  node_network_image["Image Handling<br/>[image.rs]"]
end

subgraph group_nodes["Node Operations"]
  node_cohort["Cohort Configure<br/>[cohort.rs]"]
  node_status["Node Status<br/>[status.rs]"]
end

node_developer(("Developer"))
node_evm["EVM Node"]
node_tee["TEE Node"]

node_developer -->|"creates client"| node_wallet
node_wallet -->|"derives keys"| node_crypto
node_wallet -->|"attaches API"| node_namespaces
node_namespaces -->|"creates wrapper"| node_shielded_contract
node_shielded_contract -->|"encodes calls"| node_abi
node_shielded_contract -->|"submits calls"| node_send
node_shielded_contract -->|"selects fees"| node_gas
node_send -->|"encrypts payload"| node_crypto
node_send -->|"builds metadata"| node_types
node_send -->|"uses fee choice"| node_gas
node_send -->|"serializes transaction"| node_serialize
node_send -->|"sends RPC"| node_evm
node_namespaces -->|"fetches TEE key"| node_rpc
node_src20_watch -->|"polls event logs"| node_evm
node_developer -->|"selects network"| node_context
node_context -->|"resolves selection"| node_context_state
node_developer -->|"scaffolds network"| node_network_init
node_network_init -->|"starts founding"| node_network_assemble
node_network_assemble -->|"handles image"| node_network_image
node_developer -->|"configures cohort"| node_cohort
node_cohort -->|"reports node status"| node_status
node_cohort -.->|"verifies launch"| node_tee

click node_wallet "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/client.py"
click node_namespaces "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/module.py"
click node_shielded_contract "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/contract/shielded.py"
click node_src20_watch "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/src20/watch.py"
click node_types "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction_types.py"
click node_crypto "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/client.py"
click node_abi "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/contract/abi.py"
click node_gas "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/gas_payment.py"
click node_send "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction/send.py"
click node_serialize "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction/serialize.py"
click node_rpc "https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/rpc.py"
click node_context "https://github.com/seismicsystems/seismic/blob/main/tee/cli/context/src/cmd.rs"
click node_context_state "https://github.com/seismicsystems/seismic/blob/main/tee/cli/context/src/lib.rs"
click node_network_init "https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/init.rs"
click node_network_assemble "https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/assemble.rs"
click node_network_image "https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/image.rs"
click node_cohort "https://github.com/seismicsystems/seismic/blob/main/tee/cli/node/src/cohort.rs"
click node_status "https://github.com/seismicsystems/seismic/blob/main/tee/cli/node/src/status.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_wallet,node_namespaces,node_shielded_contract,node_src20_watch toneBlue
class node_types,node_crypto,node_abi,node_gas,node_send,node_serialize,node_rpc toneAmber
class node_context,node_context_state,node_network_init,node_network_assemble,node_network_image toneMint
class node_cohort,node_status toneRose
class node_developer,node_evm,node_tee toneIndigo
```

## Components

### Client SDK

- [Client Factories](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/client.py): `clients/py/src/seismic_web3/client.py`
- [Seismic API](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/module.py): `clients/py/src/seismic_web3/module.py`
- [Contract API](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/contract/shielded.py): `clients/py/src/seismic_web3/contract/shielded.py`
- [SRC20 Watchers](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/src20/watch.py): `clients/py/src/seismic_web3/src20/watch.py`

### Privacy Transactions

- [Transaction Types](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction_types.py): `clients/py/src/seismic_web3/transaction_types.py`
- [Encryption State](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/client.py): `clients/py/src/seismic_web3/client.py`
- [Contract ABI](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/contract/abi.py): `clients/py/src/seismic_web3/contract/abi.py`
- [Gas Payment](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/gas_payment.py): `clients/py/src/seismic_web3/gas_payment.py`
- [Shielded Send](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction/send.py): `clients/py/src/seismic_web3/transaction/send.py`
- [Transaction Serialization](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/transaction/serialize.py): `clients/py/src/seismic_web3/transaction/serialize.py`
- [Seismic RPC](https://github.com/seismicsystems/seismic/blob/main/clients/py/src/seismic_web3/rpc.py): `clients/py/src/seismic_web3/rpc.py`

### Network Operations

- [Context Commands](https://github.com/seismicsystems/seismic/blob/main/tee/cli/context/src/cmd.rs): `tee/cli/context/src/cmd.rs`
- [Context Selection](https://github.com/seismicsystems/seismic/blob/main/tee/cli/context/src/lib.rs): `tee/cli/context/src/lib.rs`
- [Network Scaffold](https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/init.rs): `tee/cli/network/src/init.rs`
- [Network Assembly](https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/assemble.rs): `tee/cli/network/src/assemble.rs`
- [Image Handling](https://github.com/seismicsystems/seismic/blob/main/tee/cli/network/src/image.rs): `tee/cli/network/src/image.rs`

### Node Operations

- [Cohort Configure](https://github.com/seismicsystems/seismic/blob/main/tee/cli/node/src/cohort.rs): `tee/cli/node/src/cohort.rs`
- [Node Status](https://github.com/seismicsystems/seismic/blob/main/tee/cli/node/src/status.rs): `tee/cli/node/src/status.rs`

### Other components

- **Developer**
- **EVM Node**
- **TEE Node**

## Connections

- Developer → Client Factories: creates client (evidence: `clients/py/src/seismic_web3/client.py`)
- Client Factories → Encryption State: derives keys (evidence: `clients/py/src/seismic_web3/client.py`)
- Client Factories → Seismic API: attaches API (evidence: `clients/py/src/seismic_web3/client.py`)
- Seismic API → Contract API: creates wrapper (evidence: `clients/py/src/seismic_web3/module.py`)
- Contract API → Contract ABI: encodes calls (evidence: `clients/py/src/seismic_web3/contract/shielded.py`)
- Contract API → Shielded Send: submits calls (evidence: `clients/py/src/seismic_web3/contract/shielded.py`)
- Contract API → Gas Payment: selects fees (evidence: `clients/py/src/seismic_web3/contract/shielded.py`)
- Shielded Send → Encryption State: encrypts payload (evidence: `clients/py/src/seismic_web3/transaction/send.py`)
- Shielded Send → Transaction Types: builds metadata (evidence: `clients/py/src/seismic_web3/transaction/send.py`)
- Shielded Send → Gas Payment: uses fee choice (evidence: `clients/py/src/seismic_web3/transaction/send.py`)
- Shielded Send → Transaction Serialization: serializes transaction (evidence: `clients/py/src/seismic_web3/transaction/send.py`)
- Shielded Send → EVM Node: sends RPC (evidence: `clients/py/src/seismic_web3/transaction/send.py`)
- Seismic API → Seismic RPC: fetches TEE key (evidence: `clients/py/src/seismic_web3/module.py`)
- SRC20 Watchers → EVM Node: polls event logs (evidence: `clients/py/src/seismic_web3/src20/watch.py`)
- Developer → Context Commands: selects network (evidence: `tee/cli/context/src/cmd.rs`)
- Context Commands → Context Selection: resolves selection (evidence: `tee/cli/context/src/lib.rs`)
- Developer → Network Scaffold: scaffolds network (evidence: `tee/cli/network/src/init.rs`)
- Network Scaffold → Network Assembly: starts founding (evidence: `tee/cli/network/src/init.rs`)
- Network Assembly → Image Handling: handles image (evidence: `tee/cli/network/src/assemble.rs`)
- Developer → Cohort Configure: configures cohort (evidence: `tee/cli/node/src/cohort.rs`)
- Cohort Configure → Node Status: reports node status (evidence: `tee/cli/node/src/cohort.rs`)
- Cohort Configure → TEE Node: verifies launch
