How harsh-singh-2023/tamper-evident-digital-twin works
This repository implements tamper-evident synchronization for industrial digital-twin state, with a live integrity dashboard, attack simulations, and a benchmarking suite. The main workflow accepts telemetry, hashes and stores its payload off-chain, then anchors a record on Hyperledger Fabric; the dashboard separately compares incoming payload hashes with the ledger and displays events. Sampled source supports the sync, ledger, and dashboard flows. Attack and benchmark capabilities are also documented, but their broader implementations were not inspected; those branches are shown at directory level.
Main entry points: attack.js Attack injection · index.js Sync API · server.js Stream verifier · chaincode.go State contract
Components 16
State synchronization
- Sync API
sync-service/index.js - Fabric connection
sync-service/fabric.js - IPFS storage
Ledger
- State contract
chaincode/chaincode.go - Fabric ledger
Live monitoring
- Stream verifier
dashboard/backend/server.js - Dashboard Fabric access
sync-service/fabric.js - Live event feed
dashboard/backend/server.js - Security dashboard
dashboard/frontend/src/App.jsx
Resilience evaluation
- Attack injection
attack-injection/attack.js - Benchmark suite
benchmark - Per-update policy
benchmark/workload/per-update.js - Batched policy
benchmark/workload/batched.js - Deviation policy
benchmark/workload/deviation-triggered.js
Other components
- Telemetry source
- Test operator
Connections 18
- Telemetry source → Sync API: submits telemetry
sync-service/index.js - Sync API → IPFS storage: stores payload
sync-service/index.js - Sync API → Fabric connection: initializes connection
sync-service/index.js - Sync API → State contract: submits record
sync-service/index.js - State contract → Fabric ledger: writes and reads
chaincode/chaincode.go - Telemetry source → Stream verifier: posts telemetry
dashboard/backend/server.js - Stream verifier → Dashboard Fabric access: initializes connection
dashboard/backend/server.js - Stream verifier → State contract: queries latest record
dashboard/backend/server.js - Stream verifier → Live event feed: emits event
dashboard/backend/server.js - Live event feed → Security dashboard: sends state updates
dashboard/frontend/src/App.jsx - Test operator → Attack injection: runs attacks
attack-injection/attack.js - Attack injection → Sync API: replays payload
attack-injection/attack.js - Attack injection → Fabric connection: connects directly
attack-injection/attack.js - Attack injection → State contract: submits rogue record
attack-injection/attack.js - Attack injection → Stream verifier: tests spoofing
- Benchmark suite → Per-update policy: measures policy
README.md - Benchmark suite → Batched policy: measures policy
README.md - Benchmark suite → Deviation policy: measures policy
README.md