BombayLocal

Zero-knowledge, offline transit pass for Mumbai locals: prove your pass, not your identity.

BombayLocal

Created At

ETHGlobal Mumbai

Winner of

Ethereum Foundation

Ethereum Foundation - Best CROPS App: Censorship Resistant, Open Source, Private, Secure 1st place

Project Description

Mumbai’s local trains carry around 9.5 million journeys a day, but ticket enforcement doesn’t scale. Ticket checkers catch about 8,000 passengers a day, less than 1% of an estimated 1.86 million ticketless travellers, an estimated unrecovered loss of $372,000 per day. Checks are manual, entry and exit points are unstructured, and the network was built for a different era.

The obvious fix, digitising every check, creates a worse problem. If every scan produces an identity-linked record (who, where, when), that data becomes a map of someone’s daily routine. Real transit breaches show the risk: Blue Bus Egypt (2026) exposed passenger records and travel itineraries, Transport for London (2024) exposed personal and financial information, TransitSecure (UK) exposed location data that could reveal home-to-work routines, and a ransomware attack on the Maryland Transit Administration (2025) put passenger identity data and critical services at risk.

BombayLocal asks: what if you could prove you have a valid pass without revealing who you are? Your pass lives as a private credential on your phone. When a ticket checker asks, your phone generates a zero-knowledge proof and shows it as a dynamic QR code. The checker’s device verifies it instantly, even with no internet connection, and shows VALID.

No identity at every checkpoint. No central record of every journey. Just proof that you have a valid pass. Open. Scan. Go.

How it's Made

BombayLocal lets a ticket checker verify a Mumbai local train pass offline, without learning who the passenger is. The checker's phone confirms one fact: this pass is valid right now.

THE STACK

  • ZK circuit: circom 2.2.3 with Groth16 (5,697 constraints). It proves that a pass leaf, Poseidon(secretHash, validUntil, class), is in a Merkle tree, is valid today, and has a given class.
  • Smart contract: a Solidity Registry on Ethereum Sepolia, built and tested with Foundry and verified on Etherscan. It stores one 32-byte Merkle root per batch of purchases (57,651 gas per root).
  • Issuer: a Node 22 service that batches purchases, adds leaves to the Merkle tree and publishes roots. It only handles buying a pass.
  • Apps: two native Android apps (passenger and ticket checker) and a browser demo with two virtual phones. All of them share one protocol library for Poseidon, the Merkle tree, the QR codec and signatures.

HOW IT FITS TOGETHER

  1. Buy: the passenger's phone creates a secret in the Android Keystore and sends the issuer only its hash. Payment is simulated.
  2. Publish: about a minute later the issuer posts the new Merkle root on Ethereum and publishes the pass hashes, revocations and a signed root to Arkiv.
  3. Refresh: the phone rebuilds the Merkle tree from Arkiv records, checks it matches the root on Ethereum, and finds its own leaf. The issuer is never contacted.
  4. Prove: the phone makes a Groth16 proof and shows it as a QR code (427 bytes, 641 Base45 characters, QR version 16-M) that changes every 10 minutes.
  5. Check: the scanner verifies the issuer's signature, the root's expiry and the proof with no network, in about 50 ms (median on a Nothing Phone). A code shown twice turns Amber, three times Red.

HOW WE USE ARKIV Arkiv is our data layer, used through @arkiv-network/sdk on the Rabdi testnet. Pass hashes, revocations, signed roots, the scanner list and the verification key all live there as expiring public records, written by two wallets (issuer and authority). Queries filter on $creator and $owner, so readers only trust records written by the right wallet. The passenger app, the scanner and our audit page all read the data back. This is what makes the system censorship-resistant: if the issuer goes offline or is blocked, existing passes keep refreshing from Arkiv and Ethereum for up to 36 hours. You can test it by setting the app's Issuer URL to https://issuer.invalid. Refresh and scanning still work; only buying a new pass fails.

HACKY / NOTABLE BITS

  • Fitting a Groth16 proof into a scannable QR: a compact binary format encoded as Base45 and rotated every 10 minutes.
  • Proof generation takes about 3.5 s on a vivo Y100, which misses our 3 s target. So proofs are generated ahead of time, never at scan time.
  • The scanner only trusts chain state when two independent RPC providers agree.
  • A live audit page re-checks every public claim in the browser against Sepolia and Arkiv, and CI runs the same checks.
  • The project began as "Unlink", so the old name survives in the signing tag, the Arkiv tags and the verified contract source.
  • Built with Claude Code under a SPEC.md and module plan written by me, with a fresh-context agent reviewing each module. Full disclosure is in the README and docs/AI_USE.md.
background image mobile

Join the mailing list

Get the latest news and updates

BombayLocal | ETHGlobal