Grant Application - Automated FROST co-signer: spending limits an agent cannot get around

Hi everyone, I’m Babacar, founder of lomi., a payment company in Abidjan. In September I applied with a ZIP-321 payment server and MCP tools (#425). You declined it because CipherPay and others already do that, and you were right. This application is much smaller and builds on Khadim’s #490 instead of next to it.

Application: Grant Application - Automated FROST co-signer: spending limits an agent cannot get around · Issue #538 · ZcashCommunityGrants/zcashcommunitygrants · GitHub. I’m asking for $18,000 in four milestones, each paid only after you accept it, nothing up front.

Why we need it

We build Nomad, an assistant people let act for them, and some of that is paying for things. Before it holds anyone’s money, its limits have to survive the agent itself being taken over. Every agent wallet I found on Zcash, my own #425 server included, enforces the limit in software on the same machine that holds the whole key. As someone put it on the Veridex thread, that is a soft boundary. Nomad’s Zcash path already exists behind a flag, and it stays off for everyone until the review in milestone 1 is closed.

What it does

The key is split 2-of-3 with FROST: the agent holds one share, a policy signer holds the second, and the user holds the third. The policy signer decodes the PCZT itself and checks it against the user’s mandate (per-payment, daily and total caps, allowed recipients, expiry, fee and memo rules). Inside the mandate it signs with the agent. Over a cap it answers needs_user and signs nothing, so only the user’s share can finish the payment. Anything malformed it refuses. It never signs a message the agent hands it: it reads the sighash and every alpha out of the PCZT it just judged, so an allow for one payment cannot be reused for another.

What runs today, on mainnet (4 Nov, before NU7)

Both payments went back to the same wallet. All three shares come from a two-round DKG and sit on one machine, so this proves the signing rules, not the separation between devices. Code, tests and an honest list of what has and hasn’t been proven: GitHub - lomiafrica/cosigner: FROST 2-of-3 co-signer so a Zcash agent cannot outspend its mandate. · GitHub (docs/PROOF.md). Same stack as #490 and Zafe: frost-core 3, reddsa 0.5.2, PCZT, zcash-devtool.

Hanh’s four questions from the July SDK thread

  • How does the signer get the transaction safely? It gets the PCZT bytes and derives the sighash and alphas itself.
  • Messaging? Agent to policy signer is authenticated HTTPS. Agent to the user’s phone uses the #490 QR messages, not a format of ours.
  • Backup? The user share exports as the #1432 zkfrost string, so it restores in Zkool and frost-zec.
  • What if a signer disappears? Any two spend. If lomi.'s policy signer goes away, the agent and the user sweep without us. Milestone 3 does that on mainnet.

Next to what exists

Zipher’s MCP has spending rules and approvals, in software beside the key. OWS signs PCZTs with a whole key. Zkool, Konclave and #490 are people signing on their own devices. #529 is the closest shape: an arbiter that signs only the transaction its verdict names, for P2P deals. Ours is an automated signer that judges each payment against a mandate, so a person only steps in over a cap. We are not building a wallet, a scanner, a facilitator or an MCP server. Khadim wrote that co-signers from different vendors are safer than two from one publisher; a policy signer from a second team is that case.

What the $18,000 pays for

  1. $6,000: the profile written against #490, a PCZT tamper fixture for every refusal plus fuzzing, and an independent review you approve, with the report and fixes published.
  2. $6,000: DKG across three devices (the agent share in Nomad on the user’s computer, the policy share at lomi., the user share in Nomad on the user’s phone, so lomi. holds one share and cannot spend alone), limits signed by the phone, over-cap approval over the #490 QR messages, the four cases again on mainnet, and testnet once the stable stack supports NU7 there.
  3. $3,000: the user share through #1432 backup and restore, and a mainnet sweep signed by agent and user only.
  4. $3,000: the automated signer written up as a section of #490 or a ZIP that cites it, paid only when merged.

I asked Khadim how he’d like this to fit with his work: Interoperable FROST co-signing for shielded ZEC: open specs and a reference implementation - #18 by princemuichkine

Questions and criticism welcome. I’ll answer here.