Inspiration

We were inspired by the impossible choice that patients face today: either share their entire genome for personalized treatment and risk permanent exposure, or forfeit access to precision medicine entirely. This choice became devastatingly real when incidents like 23andMe's breach happened, which exposed 6.9 million users' genetic data. Hackers specifically targeted and sold Jewish and Chinese customers' DNA profiles on the dark web. Unlike passwords, genetic data can't be changed. This data leak is permanent, and can affect families across generations. Watching family members navigate BRCA testing as the 23andMe breach unfolded crystallized the problem for us: centralized genetic databases are honeypots waiting to be exploited. We realized Midnight blockchain's zero-knowledge proof infrastructure offers a third path. With HelixChain, there's no database to breach, as patients prove only what's medically necessary without ever sharing raw genetic data.

What it does

HelixChain enables patients to cryptographically prove specific genetic traits (BRCA1/2 mutations, CYP2D6 drug metabolism markers) without revealing their complete genomic sequence. Patients upload pre-extracted variant data, which gets encrypted and stored on IPFS. Using Midnight's Compact circuits, we generate zero-knowledge proofs that doctors can verify on-chain. Researchers access aggregated mutation frequencies across populations while individual privacy remains absolute. Three distinct portals serve patients, healthcare providers, and researchers with real-time WebSocket updates and glass morphism UI.

How we built it

We separated concerns across our 4-person team: Dev 1 handled patient portal and wallet integration (React/TypeScript), Dev 2 built doctor/researcher portals with data visualizations (Recharts/Three.js), Dev 3 implemented the backend API with proof generation queue (Express/Bull/Redis), and Dev 4 created ZK circuits in Compact language with Halo2 proving system. The architecture uses PostgreSQL for audit trails, Redis for proof caching, IPFS for encrypted genome storage, and Socket.io for real-time notifications. We integrated Lace wallet for Midnight testnet authentication and implemented AES-256-GCM encryption before any data transmission.

Challenges we ran into

Proof generation performance was our biggest bottleneck, with complex circuits taking 30+ seconds initially. We solved this by implementing a Redis-backed queue system with progress updates every 500ms. Another issue was IPFS gateway reliability, which required implementing fallback strategies with local PostgreSQL storage. Coordinating the ProofSDK integration between blockchain and backend developers also required careful interface design and extensive mock data during parallel development.

Accomplishments that we're proud of

Successfully generating real zero-knowledge proofs for genetic mutations using not just mock data, but Midnight's Compact language. Our glass morphism UI with 60fps animations creates a premium experience unusual for blockchain applications. The three-portal system elegantly separates concerns while maintaining data sovereignty. We achieved sub-10 second proof generation for boolean traits and implemented comprehensive fallback systems ensuring 100% reliability.

What we learned

Zero-knowledge proofs require careful circuit design, which seems simple conceptually but actually becomes complex in implementation. The importance of mock data and parallel development paths in hackathons cannot be overstated. IPFS works best as a content-addressable store, not a reliable database. WebSocket integration dramatically improves UX for blockchain applications. Most importantly, healthcare applications demand exceptional error handling because lives depend on its reliability.

What's next for HelixChain

Immediate priorities include optimizing proof generation to sub-5 seconds and implementing batch verification for multiple traits. We plan to add support for pharmacogenomic panels covering 50+ drug-gene interactions and integrate with electronic health record systems via HL7 FHIR standards. Long-term vision includes hardware security module integration for key management and partnerships with genetic testing laboratories for direct data ingestion. The ultimate goal is to become the privacy layer for the $100 billion genetic testing industry. Privacy concerns prevent 40% of eligible patients from testing, and HelixChain unlocks this untapped demand.

Built With

Share this project:

Updates