# priyalsingh23/final-project architecture

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

- Interactive diagram: https://gitdiagram.com/priyalsingh23/final-project
- Repository: https://github.com/priyalsingh23/final-project

## Overview

ShadowComm is an LPI secure-messaging and SDR research platform. Its principal workflow frames and encrypts a message, synthesizes a covert waveform, transmits it through a simulated or USRP radio path, then synchronizes, decodes, error-corrects, and decrypts the received signal. The README identifies lpi_v4 as the working deployment stack; the tree also contains a substantial lpi_research web/dashboard and transceiver implementation. The v4 relationships below rely on the README and SOURCE INDEX references; unsampled v4 training and GRC internals are represented only at their supported directory paths.

Main entry points: [`lpi_research/sdr/interface.py`](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/sdr/interface.py) (SDR interface), [`lpi_v4/tx_usrp.py`](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/tx_usrp.py) (v4 transmitter), [`lpi_v4/rx_usrp.py`](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/rx_usrp.py) (v4 receiver), [`lpi_v4/uhd_io.py`](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/uhd_io.py) (UHD radio I/O)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_v4["v4 deployment"]
  node_v4core["Waveform core<br/>[lpi_core.py]"]
  node_v4crypto["Crypto framing<br/>[lpi_crypto.py]"]
  node_v4tx["v4 transmitter<br/>[tx_usrp.py]"]
  node_v4rx["v4 receiver<br/>[rx_usrp.py]"]
  node_uhdio["UHD radio I/O<br/>[uhd_io.py]"]
  node_v4grc["GNU Radio blocks<br/>[lpi_grc.py]"]
end

subgraph group_research["Research transceiver"]
  node_sdrinterface["SDR interface<br/>[interface.py]"]
  node_researchcrypto["Secure framing<br/>[aes_engine.py]"]
  node_reedsolomon["Reed-Solomon FEC<br/>[reed_solomon.py]"]
  node_sync["Burst synchronization<br/>[sync.py]"]
  node_channel["RF channel model<br/>[channel.py]"]
end

subgraph group_analysis["Training and analysis"]
  node_v4train["Model training<br/>[lpi_train.py]"]
  node_v4eval["Field evaluation<br/>[lpi_eval.py]"]
  node_v4stats["Stealth statistics<br/>[lpi_stats.py]"]
  node_ganmodels["GAN models<br/>[generator.py]"]
  node_ganloader["Checkpoint loader"]
  node_ewmetrics["EW metrics<br/>[metrics.py]"]
end

subgraph group_operations["Web and radio"]
  node_researchapi["Transceiver API<br/>[main.py]"]
  node_history[("Transmission history<br/>[database.py]")]
end

node_operator(("Operator"))
node_radio{{"USRP radio"}}

node_operator -.->|"starts TX"| node_v4tx
node_v4tx -.->|"synthesizes"| node_v4core
node_v4tx -.->|"frames message"| node_v4crypto
node_v4tx -.->|"transmits through"| node_uhdio
node_uhdio -.->|"radio I/O"| node_radio
node_radio -.->|"received IQ"| node_uhdio
node_uhdio -.->|"delivers samples"| node_v4rx
node_v4rx -->|"decodes waveform"| node_v4core
node_v4rx -->|"decrypts frame"| node_v4crypto
node_v4rx -->|"reads samples"| node_uhdio
node_v4grc -.->|"supports radio TX"| node_v4tx
node_v4grc -.->|"supports radio RX"| node_v4rx
node_operator -.->|"trains model"| node_v4train
node_v4eval -->|"evaluates waveform"| node_v4core
node_v4eval -->|"checks framing"| node_v4crypto
node_v4eval -->|"computes metrics"| node_v4stats
node_researchapi -->|"runs transceiver"| node_sdrinterface
node_researchapi -->|"analyzes reception"| node_ewmetrics
node_researchapi -->|"logs result"| node_history
node_sdrinterface -->|"encrypts payload"| node_researchcrypto
node_sdrinterface -->|"corrects errors"| node_reedsolomon
node_sdrinterface -->|"synchronizes burst"| node_sync
node_sdrinterface -->|"loads models"| node_ganloader
node_ganloader -->|"loads generator"| node_ganmodels
node_researchapi -->|"simulates impairments"| node_channel
node_sdrinterface -.->|"optional USRP"| node_radio

click node_v4core "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_core.py"
click node_v4crypto "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_crypto.py"
click node_v4tx "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/tx_usrp.py"
click node_v4rx "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/rx_usrp.py"
click node_uhdio "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/uhd_io.py"
click node_v4grc "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_grc.py"
click node_v4train "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_train.py"
click node_v4eval "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_eval.py"
click node_v4stats "https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_stats.py"
click node_researchapi "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/app/main.py"
click node_history "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/app/database.py"
click node_sdrinterface "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/sdr/interface.py"
click node_researchcrypto "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/crypto/aes_engine.py"
click node_reedsolomon "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/fec/reed_solomon.py"
click node_sync "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/signal_processing/sync.py"
click node_ganmodels "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/generator.py"
click node_ganloader "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/checkpoint_loader.py"
click node_ewmetrics "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/metrics.py"
click node_channel "https://github.com/priyalsingh23/final-project/blob/main/lpi_research/signal_processing/channel.py"

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_v4core,node_v4crypto,node_v4tx,node_v4rx,node_uhdio,node_v4grc toneBlue
class node_sdrinterface,node_researchcrypto,node_reedsolomon,node_sync,node_channel toneAmber
class node_v4train,node_v4eval,node_v4stats,node_ganmodels,node_ganloader,node_ewmetrics toneMint
class node_researchapi,node_history toneRose
class node_operator,node_radio toneIndigo
```

## Components

### v4 deployment

- [Waveform core](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_core.py): `lpi_v4/lpi_core.py`
- [Crypto framing](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_crypto.py): `lpi_v4/lpi_crypto.py`
- [v4 transmitter](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/tx_usrp.py): `lpi_v4/tx_usrp.py`
- [v4 receiver](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/rx_usrp.py): `lpi_v4/rx_usrp.py`
- [UHD radio I/O](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/uhd_io.py): `lpi_v4/uhd_io.py`
- [GNU Radio blocks](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_grc.py): `lpi_v4/lpi_grc.py`

### Research transceiver

- [SDR interface](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/sdr/interface.py): `lpi_research/sdr/interface.py`
- [Secure framing](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/crypto/aes_engine.py): `lpi_research/crypto/aes_engine.py`
- [Reed-Solomon FEC](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/fec/reed_solomon.py): `lpi_research/fec/reed_solomon.py`
- [Burst synchronization](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/signal_processing/sync.py): `lpi_research/signal_processing/sync.py`
- [RF channel model](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/signal_processing/channel.py): `lpi_research/signal_processing/channel.py`

### Training and analysis

- [Model training](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_train.py): `lpi_v4/lpi_train.py`
- [Field evaluation](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_eval.py): `lpi_v4/lpi_eval.py`
- [Stealth statistics](https://github.com/priyalsingh23/final-project/blob/main/lpi_v4/lpi_stats.py): `lpi_v4/lpi_stats.py`
- [GAN models](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/generator.py): `lpi_research/gan/generator.py`
- [Checkpoint loader](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/checkpoint_loader.py): `lpi_research/gan/checkpoint_loader.py`
- [EW metrics](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/gan/metrics.py): `lpi_research/gan/metrics.py`

### Web and radio

- [Transceiver API](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/app/main.py): `lpi_research/app/main.py`
- [Transmission history](https://github.com/priyalsingh23/final-project/blob/main/lpi_research/app/database.py): `lpi_research/app/database.py`

### Other components

- **Operator**
- **USRP radio**

## Connections

- Operator → v4 transmitter: starts TX (evidence: `README.md`)
- v4 transmitter → Waveform core: synthesizes
- v4 transmitter → Crypto framing: frames message
- v4 transmitter → UHD radio I/O: transmits through
- UHD radio I/O → USRP radio: radio I/O
- USRP radio → UHD radio I/O: received IQ
- UHD radio I/O → v4 receiver: delivers samples (evidence: `lpi_v4/rx_usrp.py`)
- v4 receiver → Waveform core: decodes waveform (evidence: `lpi_v4/rx_usrp.py`)
- v4 receiver → Crypto framing: decrypts frame (evidence: `lpi_v4/rx_usrp.py`)
- v4 receiver → UHD radio I/O: reads samples (evidence: `lpi_v4/rx_usrp.py`)
- GNU Radio blocks → v4 transmitter: supports radio TX (evidence: `README.md`)
- GNU Radio blocks → v4 receiver: supports radio RX (evidence: `README.md`)
- Operator → Model training: trains model (evidence: `README.md`)
- Field evaluation → Waveform core: evaluates waveform (evidence: `lpi_v4/lpi_eval.py`)
- Field evaluation → Crypto framing: checks framing (evidence: `lpi_v4/lpi_eval.py`)
- Field evaluation → Stealth statistics: computes metrics (evidence: `lpi_v4/lpi_eval.py`)
- Transceiver API → SDR interface: runs transceiver (evidence: `lpi_research/app/main.py`)
- Transceiver API → EW metrics: analyzes reception (evidence: `lpi_research/app/main.py`)
- Transceiver API → Transmission history: logs result (evidence: `lpi_research/app/main.py`)
- SDR interface → Secure framing: encrypts payload (evidence: `lpi_research/sdr/interface.py`)
- SDR interface → Reed-Solomon FEC: corrects errors (evidence: `lpi_research/sdr/interface.py`)
- SDR interface → Burst synchronization: synchronizes burst (evidence: `lpi_research/sdr/interface.py`)
- SDR interface → Checkpoint loader: loads models (evidence: `lpi_research/sdr/interface.py`)
- Checkpoint loader → GAN models: loads generator (evidence: `lpi_research/gan/checkpoint_loader.py`)
- Transceiver API → RF channel model: simulates impairments (evidence: `lpi_research/app/main.py`)
- SDR interface → USRP radio: optional USRP
