How MediChain Works
A decentralized system for ensuring clinical trial integrity from registration to final verdict.
1. Protocol Snapshot
When a trial is registered, the system creates an immutable snapshot of the ClinicalTrials.gov page. This captures the original hypothesis, endpoints, and sample size as ground truth.
2. Document Fetching
When results are submitted, the system fetches the publication URL, preprint, and registry page. It sanitizes all content and creates bounded snapshots for analysis.
3. LLM Integrity Check
Multiple independent LLM validators assess the results against the protocol. They check for endpoint switching, p-hacking, sample size discrepancies, and other integrity risks.
4. Consensus & Verdict
Validators compare verdicts, scores, and flagged issues. If consensus indicates suspected fraud with high confidence, the trial enters a flagged state and a 14-day appeal window opens.
5. Appeal Process
Regulators review flagged trials. They can dismiss the appeal (releasing the bond) or confirm fraud (slashing the bond). All decisions are recorded immutably.
6. Transparency
All trials, reports, flags, and appeals are publicly queryable. The dashboard provides real-time visibility into trial statuses, scores, and integrity flags.
Technical Architecture
MediChain uses a three-tier architecture:
Wallet Auth
Pydantic Validation
Smart Contracts