Tilly registerTilly

Docs

Tilly is a till for businesses that take Solana payments. Customers pay by QR or link, the money lands in a shielded balance on Helius Privacy Rings, and your accountant exports the books with a view key.

How a payment works

  1. You or a cashier create an invoice: amount, asset (USDC, SOL or a token), memo, expiry.
  2. Tilly binds the invoice to a fresh receiver from your pool. One receiver per invoice, never reused.
  3. The customer pays one of two ways:
    • Regular wallet (Phantom, Solflare): a Solana Pay transaction request. The wallet asks our endpoint for the transaction and signs one Rings deposit with two entries: your receiver (amount minus fee) and Tilly's fee.
    • Shielded balance: a transfer inside Rings from the payer's shielded owner to your receiver and Tilly.
  4. Tilly reads the amount from the receiver's notes with your view key, marks the invoice paid and fires your webhook.

Invoice states: open, paid, underpaid, overpaid (refund flow), expired (a late payment is still credited and flagged), settled after you consolidate.

A plain Solana Pay transfer request cannot call Rings. Wallets that only support transfers can use an optional intake address that Tilly shields within a minute. It is custodial for that minute and off by default.

Who sees what

Rings hides amounts, not owners. Who deposits, who withdraws and the Rings owner tags are public on the default ring, which is the only one live today.

EventPublicHidden
Customer pays from a regular walletPayer wallet, amount, receiver tag, fee entryNothing on the way in; the money is shielded from then on
Customer pays from a shielded balancePayer ring tag, receiver tag, fee tagAmounts
Two invoicesTwo unrelated fresh receiversThat both are yours, until you consolidate them
Consolidation, payouts, refunds inside the shieldOwner tags on both sidesAmounts
Withdraw to a public walletWithdraw owner, destination, amountWhich sales it came from

So a tracker or Bubblemaps cannot add up your daily takings or tie invoices together, but anyone who decodes Rings sees which tags move money to which. Tilly says it plainly instead of promising that nobody can link anything.

Keys and custody

By default Tilly cannot move your money. Your wallet derives a merchant root in the browser and uploads only receivers' public data and view keys. Payouts, refunds and consolidation are signed in your browser.

  • Leaked view keys expose your sales history. They cannot spend.
  • Opt-in and capped: a refund pocket held by Tilly (up to 200 USDC a day), the intake path above, and keeper-held receivers (up to 2,000 USDC per merchant) if your browser cannot sync from view keys.

Staff passkeys

You add staff with a wallet-signed message. Each staff member uses a passkey on their own device; every action is a passkey signature over tilly:v1:<action>:<sha256(payload)>:<expiry>:<nonce> that Tilly checks (P-256, nonce, expiry, sign count).

  • Cashier: create invoices, see their status.
  • Manager: plus refunds up to a cap and CSV export.

Passkeys authorize requests to Tilly only. Rings keys are Ed25519; a passkey can never own or move a note.

CSV and webhooks

Your accountant gets the receivers' view keys (or a read token) and exports GET /api/export.csv?from&to:

ts,invoice_id,sig,asset,amount,fee,payer_tag,path,status,memo

Webhooks fire on invoice.paid, invoice.overpaid, invoice.expired and refund.sent. Retries at 1 m, 5 m, 30 m, 2 h and 12 h; deduplicate by id. Verify the signature:

// Tilly-Signature: t=<ts>,v1=<hex>
const [t, v1] = header.split(',').map((p) => p.split('=')[1]);
const mac = hmacSha256(secret, t + '.' + rawBody);   // hex
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
const ok = fresh && timingSafeEqual(mac, v1);

API

RouteWhoWhat
POST /api/merchantwalletRegister a merchant, webhook URL and secret
POST /api/receiverswalletUpload a batch of receivers (public data + view keys)
POST /api/invoicewallet or staff{amount, asset, memo, expiresAt, ref?} returns invoiceId, receiver, payUrl, solanaPayUrl
GET /api/invoice/:idanyoneStatus only: open, paid, expired
GET|POST /api/pay/:idwallet appSolana Pay transaction request: label and icon, then the deposit transaction
POST /api/staffwalletAdd a passkey with a role
POST /api/refundmanagerRefund from the capped pocket, or queue it for your wallet
GET /api/export.csvview keyThe books
GET /api/webhooks/deliverieswalletDelivery log

Invoice ids are random 128-bit values; the public status route never shows amounts beyond what the payer saw.

Fees

At launch: 0.5% of each payment, minimum 0.01 USDC, paid as its own entry inside the payment. No subscription. The Tilly coin and its creator fees are not a source of payouts to anyone.