Concepts
Private payroll
A payroll run is a list of private payments, nothing more. There is no second pool and no payroll contract. The phone proves each payment with the same join-split it uses for any other transfer, then the testnet sponsor submits it.
The list
One row per person. A header is optional.
name,address,amount
Ada,batin1…,1500
Bo,,800
- Address is a batin1 address. That person sees the payment next time their app syncs.
- A blank address becomes a payment link. The link is cash until someone claims it, and the sender can take it back from Activity while it is unclaimed.
- One asset per run, SEI or USDC, and at most 40 people. Each payment is proved on the phone, one after another. A desktop proof is about a second. A phone is slower, and the page has to stay open for the whole run. Stopping waits for the proof already running. People already paid stay paid.
- The list, the results file and any payday reminder stay on the phone, encrypted with the same key as the activity log. The results file is the sender's record. It is not a proof. See Proofs for one reader.
What the chain shows
Each person is one private transfer: two nullifiers and two commitments, no name and no amount. A claim link is the same kind of transfer, into a note the link can spend.
What stays public is unchanged. The deposit that filled the balance shows the depositor, the asset and the amount. A later withdrawal shows whoever cashes out, the asset and the amount. Paying from a balance that was already in the pool hides the payroll total. Depositing the exact sum on payday does not.
One payment can spend two notes. A list walks in order and can use the change from earlier rows. If a row is still too big for two notes, combine first, or put the smaller payments above it.
Payday
You can ask this phone to remind you every week, every two weeks, every month, or once. The reminder is encrypted with the list. Nothing is sent until you press pay. Batin cannot pay on a timer, because no server holds the key. An on-chain schedule would publish the wages, so there isn't one.
A missed payday stays on the page until you pay that list or skip it. A cap, if you set one, turns Pay off when the list is larger than the cap, so a typo cannot send ten times the run. Paying the list a second time pays everyone on it again, including people the last run already paid. Use "Pay the rest" only for the rows that stopped.
What this is not
It is not a salary system. There is no employee directory and no tax form.
Source: apps/web/content/docs/payroll.md