RIP

Privacy-first price protection using ZK proofs & Ethereum Blobs - insure any purchase privately

RIP

Created At

ETHGlobal New Delhi

Project Description

RIP (Remorse Insurance Protocol) is a revolutionary privacy-preserving price protection system that lets users insure their online purchases against price drops without ever revealing what they bought or how much they paid. The system leverages two cutting-edge Ethereum technologies - EIP-4844 Blobs for 90% cheaper data storage and Groth16 Zero Knowledge Proofs for complete privacy. Users can shop on e-commerce platforms like Amazon, click a Chrome extension to purchase insurance with crypto, and automatically receive payouts when prices drop - all while maintaining complete anonymity. Unlike traditional insurance that requires extensive personal data and purchase details, RIP uses cryptographic commitments to hide all sensitive information. The protocol only stores a hash on-chain, while an oracle maintains current product prices in Ethereum Blobs. When prices drop, users generate ZK proofs to claim their payout without revealing their identity, the product they bought, or their purchase price. The system supports tiered premium pricing ($5-$100 based on product value), automatic claim processing, and instant USDC payouts. It represents the first practical implementation combining blob storage with ZK proofs for real-world commerce applications.

How it's Made

Frontend & User Interface

Chrome Extension: Custom-built extension that integrates directly with Amazon product pages, allowing one-click insurance purchases without leaving the shopping experience

Next.js Application: Modern web app deployed on Vercel providing a dashboard for users to manage policies, view claim history, and generate ZK proofs

Zero Knowledge Architecture

Circom Circuits (circuits/priceProtection.circom): Custom ZK circuit implementing Groth16 proving system with:

Poseidon hash commitments for purchase details Tiered premium validation (5 tiers from $1-$10,000) Merkle tree verification for price proofs Automatic payout calculation within the circuit

snarkjs Integration: Full trusted setup ceremony, proof generation, and verification key export Privacy Guarantees: Only commitment hash and merkle root are public - all purchase data remains private

Smart Contracts (Solidity)

InsuranceVault.sol: Core insurance logic handling policy creation, premium collection, and automated payouts MerkleRootBlobRegistry.sol: EIP-4844 blob integration for storing price data with 90% cost reduction Groth16Verifier.sol: On-chain ZK proof verification ensuring claims are valid without revealing data PYUSD for premium payments and claim payouts

Oracle System

Minimal Oracle (scripts/minimalOracle.ts): Streamlined 313-line implementation featuring:

Continuous price monitoring with state persistence Merkle tree construction using MerkleTreeJS Blob transaction creation and submission Automatic on-chain root synchronization Debug endpoints for testing and management

Data Storage Innovation

EIP-4844 Blobs: Leveraging Ethereum's newest data availability layer to store complete price histories at 1/10th the cost Merkle Trees: Building cryptographic proof trees with products as leaves, storing only the root on-chain State Management: Local persistence in merkle-tree.json with automatic recovery and rebuild capabilities

background image mobile

Join the mailing list

Get the latest news and updates