VarunaSetu
A physics-informed, spatially aware research prototype that verifies rooftop rainwater-harvesting telemetry before it is stored or credited toward water allocation.
Telemetry from rooftop harvesting devices is checked against physical bounds and against what neighbouring devices report, before anything is committed. Accepted events go into a hash-chained, signed ledger, conflicting claims wait in escrow for corroboration, and a dashboard and a virtual city simulator let the whole pipeline be inspected and tested.
Proves
- Go services
- Spatial data (PostGIS, H3)
- Applied cryptography
- Idempotent APIs
- Simulation and modelling
Decisions that carry it
- Verify first, credit second. Telemetry is validated against physical bounds and radar-based checks before it is committed or credited toward allocation, never after.
- A stateless verification core. The verifier is a Go library with no storage of its own: bound checks, median and MAD Z-scores, reason codes and spatial context. Verification logic stays separate from persistence.
- Neighbours as witnesses. Readings are compared with nearby devices through H3 spatial cells, so one device cannot quietly claim what its surroundings contradict.
- Conflicts wait in escrow. Disputed claims are held by an escrow state machine, with a background sweeper and neighbour corroboration, instead of being resolved on the spot.
- A tamper-evident history. Every accepted event is appended to a SHA-256 hash-chained ledger that issues Ed25519-signed checkpoints, so tampering can be detected afterwards. Devices carry identity and replay protection, and the API uses durable idempotency control.
Built with
- Go
- Python
- React + Vite + TypeScript
- PostgreSQL + PostGIS
- Supabase (configurable)
- H3 spatial index
- NetworkX
- SHA-256 hash chain
- Ed25519
- Docker Compose