Evenly

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

Organisersigns oncemakes the link Rina pays46.60 USDG Bayu pays46.60 USDG Dewi pays46.60 USDG 0x7a3f…41c9 0x0e95…b27d 0xc41b…0f3a Organiser appview key: findspend key: move link, after the #USDG + gas tipannouncements
Dashed blue: the link travels person to person, never through a server. Solid: payments on chain, each to its own address.
  1. 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.
  2. 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.
  3. 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 announce call on the ERC-5564 Announcer.
  4. 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.

https://<site>/s#<payload> for the group, …#<payload>.<seat> for one person. The payload is base64url:

BytesFieldNotes
0version1
1flagsbit 0 = demo split
2..17secretrandom, seat tags come from it
18..83metaspend pub + view pub, compressed
84..87blockwhen the split was made; scans start here
88seats1 to 30
5 × namountsUSDG, 6 decimals, big-endian
resttitle, labels1 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.

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

USDG0x5fc5360d0400a0fd4f2af552add042d716f1d168
ERC-5564 Announcer0x55649E01B5Df198D18D95b5cc5051630cfD45564
ERC-6538 Registry0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 (not needed by Evenly)
Explorerrobinhoodchain.blockscout.com

Check it yourself

Limits and known gaps