Steps 1 to 4 run on your device; step 5 runs wherever the proof is checked.
A five-step animated figure in isometric pixel blocks, using the synthetic sample genome “im”.
Step 1, Read: the raw text file is parsed in the browser. A rule moves across a flat slab and fills it with 2,402 small squares, one per record, in genome order. Nothing is uploaded.
Step 2, Classify: six orange blocks rise out of the slab, one for each panel position, and stack into three towers labelled CYP2C19, CYP2C9 and SLCO1B1. CPIC rules give CYP2C19 intermediate metabolizer, CYP2C9 intermediate metabolizer, SLCO1B1 decreased function.
Step 3, Commit: every record is salted and hashed, and the hashes fold in pairs into a stepped pyramid. The orange block on top is the Merkle root, computed in this tab, which changes on every visit because the salt is random.
Step 4, Prove: the root is sealed into a dark chip, the Jolt proof, about 85 KB and zero-knowledge. The slab and pyramid below are marked as private input.
Step 5, Verify: the chip slides onto a verifier's card on another device. The card lists the three phenotypes, each checked, the commitment, and the genotypes received: none. A stamp marks the proof as valid after about half a second.
Synthetic sample “im”; the salt is new on each visit. Proof size and times: Syntelea, Apple Silicon Mac, 16 GB. Rules: CPIC 2022 (CYP2C19, SLCO1B1) and 2020 (CYP2C9), cpicpgx.org.