How amithathreya/iot_data_sharing works
This repository combines a post-quantum-secured IoT sensor pipeline with federated learning and blockchain audit. In the sensor workflow, Raspberry Pi publishers read or synthesize measurements, sign envelopes, and send them to RabbitMQ; consumers verify signatures and may stream metrics to Grafana or record hashes on Besu. A separate federated-learning workflow trains Raspberry Pi clients and aggregates rounds on a Flower server, which also audits model hashes on Besu. The graph includes listed but unsampled runtime modules; their connections are omitted where source evidence was unavailable.
Main entry points: dht11_consumer_grafana.py Grafana Consumer · client_xfl_2.py Layerwise Client · dht11_consumer.py Verified Consumer · SensorRegistry.sol Sensor Registry
Components 22
Sensing and Publishing
- Signed Publisher
raspberry files/pqc_project/publisher.py - Live Publisher
raspberry files/pqc_project/publisher_grafana.py - Continuous Reader
raspberry files/pqc_project/dht11_continious.py - DHT Publisher
raspberry files/pqc_project/dht11_publisher.py - Sensor Log
Message Processing
- Verified Consumer
wsl/pqc_project/dht11_consumer.py - Grafana Consumer
wsl/pqc_project/dht11_consumer_grafana.py - General Consumer
wsl/pqc_project/consumer.py - Alert Exporter
wsl/pqc_project/alert_exporter.py
Federated Learning
- Layerwise Client
raspberry files/pqc_project/client_xfl_2.py - Basic FL Client
raspberry files/pqc_project/client_xfl.py - FL Server
wsl/pqc_project/server_xfl.py
Blockchain Audit
- Sensor Registry
wsl/pqc_project/blockchain/SensorRegistry.sol - Contract Deployer
wsl/pqc_project/blockchain/deploy.py - Blockchain Aggregator
wsl/pqc_project/blockchain/aggregator.py - Contract Metadata
wsl/pqc_project/blockchain/contract.json
Other components
- DHT11 Sensor
- Simulated Sensor
- RabbitMQ
- Grafana
- Besu Network
wsl/besu-network/docker-compose.yml - Flower Server
Connections 26
- DHT11 Sensor → Live Publisher: reads measurements
raspberry files/pqc_project/publisher_grafana.py - Simulated Sensor → Signed Publisher: supplies readings
raspberry files/pqc_project/publisher.py - Live Publisher → RabbitMQ: publishes signed data
raspberry files/pqc_project/publisher_grafana.py - Signed Publisher → RabbitMQ: publishes signed data
raspberry files/pqc_project/publisher.py - Live Publisher → Grafana: streams metrics
raspberry files/pqc_project/publisher_grafana.py - Verified Consumer → RabbitMQ: consumes messages
wsl/pqc_project/dht11_consumer.py - Grafana Consumer → RabbitMQ: consumes messages
wsl/pqc_project/dht11_consumer_grafana.py - Grafana Consumer → Grafana: pushes metrics
wsl/pqc_project/dht11_consumer_grafana.py - Verified Consumer → Sensor Registry: records hashes
wsl/pqc_project/dht11_consumer.py - Grafana Consumer → Sensor Registry: records hashes
wsl/pqc_project/dht11_consumer_grafana.py - Verified Consumer → Besu Network: submits transactions
wsl/pqc_project/dht11_consumer.py - Grafana Consumer → Besu Network: submits transactions
wsl/pqc_project/dht11_consumer_grafana.py - Contract Deployer → Sensor Registry: deploys contract
wsl/pqc_project/blockchain/deploy.py - Contract Deployer → Besu Network: deploys contract
wsl/pqc_project/blockchain/deploy.py - Contract Deployer → Contract Metadata: writes metadata
wsl/pqc_project/blockchain/deploy.py - Verified Consumer → Contract Metadata: loads metadata
wsl/pqc_project/dht11_consumer.py - Grafana Consumer → Contract Metadata: loads metadata
wsl/pqc_project/dht11_consumer_grafana.py - Layerwise Client → DHT11 Sensor: reads measurements
raspberry files/pqc_project/client_xfl_2.py - Layerwise Client → Sensor Log: appends readings
raspberry files/pqc_project/client_xfl_2.py - Layerwise Client → Sensor Log: loads training data
raspberry files/pqc_project/client_xfl_2.py - Layerwise Client → RabbitMQ: publishes alerts
raspberry files/pqc_project/client_xfl_2.py - Layerwise Client → Flower Server: connects for training
raspberry files/pqc_project/client_xfl_2.py - Basic FL Client → Flower Server: connects for training
raspberry files/pqc_project/client_xfl.py - FL Server → Besu Network: audits model rounds
wsl/pqc_project/server_xfl.py - FL Server → Sensor Registry: records model hashes
wsl/pqc_project/server_xfl.py - FL Server → Contract Metadata: loads metadata
wsl/pqc_project/server_xfl.py