Decentralized neural data consent platform for Kenya — encrypt brain data on Filecoin, grant/revoke researcher access via Lit Protocol, get SMS alerts via Africa's Talking. Built for PL Genesis Hackathon 2026.
# CortexVault Kenya
> **Decentralized neural data consent for community health research in Kenya.**
A patient-facing consent wallet where users store encrypted biosignal data on Filecoin, grant and revoke researcher access via Lit Protocol's programmable conditions, and receive SMS notifications when their data is accessed — mobile-first, bilingual (English / Swahili).
Built for the **PL Genesis Hackathon 2026** — Cognitive Sovereignty & Neural Data Rights track.
**Live Link →**
**Watch Demo**
github.com
---
## How It Works
### Patient flow
1. Connect with a wallet address (or use demo mode)
2. Upload an EEG session — encrypted with Lit Protocol, stored on Storacha/Filecoin
3. Grant a researcher access: set their name, purpose, and an expiry date
4. View the full audit log of every access event
5. Revoke access at any time — the researcher is blocked immediately
6. Receive an SMS: *"Dr. Odhiambo accessed your brain data on March 30"*
### Researcher flow
1. Connect with a wallet address
2. See all datasets patients have granted access to
3. Click to decrypt and view (Lit Protocol checks conditions on-chain)
4. After revocation, decryption fails with *"Access revoked by data owner"*
---
## Tech Stack
| Layer | Tool |
|---|---|
| Frontend | Next.js 14 + Tailwind CSS + shadcn/ui |
| Storage | Storacha (`@web3-storage/w3up-client`) |
| Access control | Lit Protocol v8 SDK |
| SMS notifications | Africa's Talking API |
| Demo data | PhysioNet EEG Motor Movement dataset |
| Deployment | Vercel |
---
## Project Structure
```
app/
├── page.tsx # Landing / language selector
├── patient/
│ ├── page.tsx # Patient dashboard (consents, audit log, ethics)
│ └── upload/page.tsx # EEG upload flow
├── researcher/
│ └── page.tsx # Researcher portal
└── api/
├── upload/route.ts # Storacha upload handler
├── grant/route.ts # Lit Pro …