Decentralized peer review for experiments with type-specific reputation rewards


PoX (Proof-of-X) is a blockchain-based reputation protocol that rewards validated scientific experiments with type-aware incentives. Scientists earn on-chain reputation by submitting analytical chemistry data (HPLC, NMR, PXRD, MS/MS) to decentralized storage (Filecoin Cloud), where cryptographic proofs enable trustless verification and beyond.
This is but the foundation of what will become the entire on-chain system for ChimiaDAO's network of on-demand chemical synthesis laboratory, following on from our Proof-of-Synthesis NFT contract which can be found here - https://ethglobal.com/showcase/chimiadao-xsmjg
Architecture:
• PoXRegistryV2.sol: Registers experiments with auto-detected types (Like HPLC, NMR) based on difficulty scores. Stores Filecoin CIDs + cryptographic hashes (dataHash + metricsHash) for fraud proofs—not full data (500× gas savings). • PeerReviewManager.sol: Type-specific reputation multipliers (PXRD 3×, NMR 2×, HPLC 1×) based on real scientific error rates. Economic model: $5.50/hour for NMR reviews if 1 reputation point = $0.10. • Reputation.sol: Non-transferable, domain-specific social capital with time-decay (prevents hoarding). Authorization controls restrict who can adjust reputation. • Security hardened: Input validation, overflow protection, 0.01 ETH challenge stakes, ReentrancyGuard, emergency pausability. 11/11 tests passing, Grade A security.
Off-Chain Computation (TypeScript + Python): • Python scripts generate synthetic HPLC/NMR/VOC traces with realistic physics (Gaussian/Lorentzian peaks, noise, J-coupling). • TypeScript SDK (packages/experiments) computes deterministic difficulty scores: D = 1 + α·peaks + β·noise + γ·ln(resolution). Same seed → same output → reproducible verification. • Set of synthetic NMR experiments generated with Lorentzian lineshapes, chemical shift regions, multiplet patterns (singlets, doublets, triplets). • 25 synthetic experiments on-chain (16 HPLC, 7 NMR, 2 Air Quality).
Decentralized Storage (Synapse/FilOzone on Filecoin): • Synapse SDK uploads raw experimental data to Filecoin, returns CID. • EVM-compatible: same wallet for blockchain + storage (no separate auth). • Smart contracts store CIDs, not data → fraud proofs download via CID, recompute hashes, challenge if mismatch.
Indexing (The Graph Protocol): • Subgraph indexes ExperimentRegistered events with LLM-readable metadata. • Structured lab journal: enables queries like "Show me all HPLC separations of caffeine." • GraphQL API consumed by Next.js dashboard.
Frontend (Next.js 16 + React 19 + Recharts): • Real-time dashboard at localhost:3000/experiments. • Fetches on-chain metadata, downloads traces from Filecoin, renders chromatograms. • Type-specific badges (NMR purple, HPLC blue). • Auto-refresh every 30 seconds for live blockchain monitoring.
Deployment (Foundry): • Deployed to Filecoin Calibration testnet (Chain ID: 314159). • Total deployment cost: 0.0000379 ETH (213M gas). • Automated scripts + manual deployment guides (DEPLOY_V2_MANUAL.md).

