You are building a fully decentralized peer-to-peer ridehailing mobile app. Zero centralized servers. The entire system runs on user devices and the Solana blockchain.
- A rider opens the app, sets a destination, and the app calculates a fare client-side using Haversine distance.
- The rider posts a ride request on-chain containing a blinded zone ID (ZK proof of zone membership), the offered fare, and escrowed SOL.
- Nearby drivers discover the request via libp2p GossipSub and on-chain queries.
- Drivers submit offers on-chain — they can accept the rider's fare or counter-offer (capped at 2x the rider's price).
