Mesh network
The network's offline transport is based on BitChat, an open-source, public-domain app that sends encrypted messages between phones over Bluetooth Low Energy (BLE), with no internet, accounts or servers. CONTINGENCY's mobile apps will be a fork of BitChat with a payment layer added.
What BitChat provides#
- Peer discovery. Phones find other participating phones within Bluetooth range.
- Multi-hop relay. A message can pass through up to 7 phones to reach someone out of direct range.
- End-to-end encryption. Messages use the Noise Protocol, so relaying phones can't read them.
- Store and forward. If the next phone isn't in range, a relay holds the message until it is.
- No accounts. There are no phone numbers, emails or servers.
- Emergency wipe. A user can erase keys and history instantly.
What CONTINGENCY adds#
- A payment packet type that carries a voucher across the mesh
- A wallet, with keys protected by the phone's secure hardware and biometric confirmation on every payment
- A settlement queue that submits carried vouchers when any connection returns
- Low-power relay settings for long outages
Limits#
The mesh is a best-effort transport:
- Range per hop depends on the phones, obstacles and radio interference.
- A message only gets through if enough participating phones form a path.
- Delivery can take minutes or days, and isn't guaranteed.
- Mobile browsers can't run Bluetooth relays, so the mesh needs the native apps.
None of this affects whether a voucher is valid. It only affects whether and when it reaches someone who can settle it.