How a private split works.
Evenly splits a bill in USDG on Robinhood Chain (chain 4663). Each person pays their share to a fresh stealth address made from the organiser's public keys, using the ERC-5564 standard. The organiser collects with one wallet signature. There is no Evenly contract: only USDG, the standard Announcer, and the wallets of the people involved.
The flow
- The organiser opens the app. Live mode asks the wallet to sign the fixed message
Evenly keys v1. Two keys come out of the signature. - The app builds the split (title, seats, amounts) and encodes it, with the organiser's public stealth keys and a random 16-byte secret, into the link fragment.
- Each payer opens their link. Their browser derives a one-time stealth address from the public keys, then their wallet sends three transactions: the USDG, a 0.00005 ETH gas tip, and an
announcecall on the ERC-5564 Announcer. - Anyone holding the link can see which seats are paid. Only the organiser's view key can tell which addresses are theirs, and only the spend key can move the money.
What is public, and what is not
Public
- Each payer's wallet, the amount and the time
- That the payment went to a stealth address
- The announcement: address, one-time public key, view tag, token, amount, 8-byte seat tag
Not on chain
- Which wallet the organiser uses
- That several payments belong to one person or one bill
- The title, names and seat count
This is not anonymity. Payers are as visible as in any transfer. If the organiser moves several shares into one wallet, that wallet becomes linked to all of them. The app points this out when you move a share, and lets you leave shares where they are or send them to an address you choose.
People who hold the link can see the split's names and which seats are paid, by design: it lets the group see progress. Send links privately.
Keys
Signature sig of the key message, split in two 32-byte halves: spend = keccak256(r) mod n, view = keccak256(s) mod n. The meta-address is st:eth:0x + compressed spend public key + compressed view public key (66 bytes). Nothing is stored; the same wallet always gives the same keys. Demo mode uses random keys kept in the browser.
Stealth derivation is ERC-5564 scheme 1 (secp256k1 with view tags): the payer picks an ephemeral key e, computes h = keccak256(e × V), and pays to the address of S + h×G. The organiser opens it with spend + h.
Link format
https://<site>/s#<payload> for the group, …#<payload>.<seat> for one person. The payload is base64url:
| Bytes | Field | Notes |
|---|---|---|
0 | version | 1 |
1 | flags | bit 0 = demo split |
2..17 | secret | random, seat tags come from it |
18..83 | meta | spend pub + view pub, compressed |
84..87 | block | when the split was made; scans start here |
88 | seats | 1 to 30 |
5 × n | amounts | USDG, 6 decimals, big-endian |
| rest | title, labels | 1 length byte + UTF-8 each; title up to 48 bytes, labels up to 20 |
Seat tags
tag(seat) = keccak256("evenly:seat" || secret || uint8(seat))[0..8]
metadata = viewTag (1) || 0xa9059cbb (4) || USDG (20) || amount (32) || tag (8)
The first 57 bytes are the ERC-5564 metadata any stealth wallet understands. The tag is ours. Without the secret the tag is noise, and two seats of the same split carry unrelated tags.
When a seat counts as paid
A seat is paid when there is an announcement with its tag and a USDG transfer of at least the seat amount to the announced address, in the ~60,000 blocks before the announcement. An announcement without the money behind it is ignored. Less than the share shows as short.
Status API
The server keeps one flag per split: open or closed. It is keyed by id = sha256(meta || salt)[0..8] where salt = keccak256("evenly:salt" || secret)[0..16]. The server sees the meta and the salt when the organiser changes the flag, never the secret, so it cannot compute seat tags.
GET /api/split?id=0x1a2b… → { "id": "0x…", "closed": false, "at": null }
POST /api/split { "meta": "st:eth:0x…", "salt": "0x…", "closed": true, "sig": "0x…" }
sig = secp256k1 over sha256("Evenly close <id>") with the spend key (64-byte r||s)
→ { "id": "0x…", "closed": true, "at": 1795030628000 }
Rate limits: 120 API calls and 900 RPC calls per minute per IP; 30 status changes per hour.
Contracts
| USDG | 0x5fc5360d0400a0fd4f2af552add042d716f1d168 |
| ERC-5564 Announcer | 0x55649E01B5Df198D18D95b5cc5051630cfD45564 |
| ERC-6538 Registry | 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 (not needed by Evenly) |
| Explorer | robinhoodchain.blockscout.com |
Check it yourself
- Before each payment the pay page shows the three calls with their target and arguments. Your wallet shows the same.
- Every paid seat in the app links to its transaction on Blockscout.
- The site reads the chain through its own
/rpcrelay, which only forwards read calls and already-signed transactions. A signed transaction cannot be changed on the way.
Limits and known gaps
- USDG only. Up to 30 seats per split, about 1.09M USDG per seat.
- Your split list lives in this browser. Download a backup in My splits if you switch devices; the keys themselves come back from your wallet.
- Collect scans from the oldest split this browser knows about. Shares from splits made elsewhere appear after you restore that backup.
- Payers need a little ETH on Robinhood Chain for gas.