Grant Application: Konclave (taking the viewing key off the coordinator)

Summary. We ask for USD 18,000 in three milestones, each paid only after the committee accepts the delivery. 1) Measure scanning and proof generation in the browser of real phones, with an independent design review chosen by ZCG. 2) Build new vaults where the viewing key is created and kept only on the members’ devices. 3) Upgrade existing vaults to that model where possible and publish the pattern. Today the participants’ devices sign; scanning, balances and building and proving the transaction run in our hosted service, which holds each vault’s viewing key. This grant does not change that the coordinator still stores member names and proposals until issue 601. Nothing here is retroactive.


Hi everyone. I am Daniel Gorgonha, co-founder of DeegaLabs and technical lead of Konclave. I am writing this topic alongside my co-founder, Dayane Bismark, who had the original idea of the project and leads the product, narrative and communications fronts. This is our first application for a Zcash Community Grants grant, and we want to present the proposal clearly.

Konclave was born at ZecHub Hackathon 3.0 with a clear goal: to create a human layer over the Zcash Foundation’s threshold tools, removing the need to use command lines and paste hexadecimal codes by hand. We built a treasury solution for groups that move ZEC, such as companies, communities, nonprofits and grant-funded teams.

In Konclave, any member proposes a payment or a payroll, the others approve and the devices sign together using FROST. A payment needs the approval of t of n members, and each member’s device checks the payment before it adds its signature. A payroll serves several beneficiaries in a single shielded transaction, accompanied by encrypted payslips in the memos. For those watching the network from outside, each payment is an ordinary shielded transaction; for the group’s members, all the proposals, votes and ledgers are transparent. The platform runs directly in the phone’s browser and is already in operation on mainnet with 20 validated transactions (the most recent, a payroll in production carried out on 2026-10-04). Zcash Brasil acts as our pilot group.

We have an important privacy bottleneck that we want to solve before organizations trust larger treasuries to Konclave. Today, to scan the blockchain and display balances, our coordinator needs to hold the full viewing key of every vault. This means the server can read the history of all groups. It holds no share of any key. Until issue 567 is fixed, a payment signed by the quorum is only as safe as the coordinator itself. For that reason, our security notes recommend not keeping significant funds in the app yet.

This application requests $18,000 split into three milestones, paid only after the acceptance of each deliverable:

  1. Measure the scanning and proof generation costs in the browser of real phones and have the architectural design reviewed by an independent specialist chosen by ZCG.
  2. Build support for new vaults, where the viewing key is created and kept only on the members’ devices.
  3. Upgrade the existing vaults to that model, in place where possible, and publish the specification of the pattern to guide other Zcash teams that keep viewing keys on servers.

What this grant does not change: the coordinator still stores the members’ names and every proposal, with its destination, amount and memo, until a later step that seals them (issue 601).

We emphasize that no part of this request is retroactive. Everything we have delivered to date was financed with our own time and resources. Our commitment to the ecosystem is long term, which means we will keep building Konclave regardless of the approval of this funding. The grant will cover specifically the engineering hours needed to execute these three milestones, allowing us to focus fully on this solution so that it reaches the community sooner.

All the security defects and limits that we have publicly disclosed were found by our own reviews (including issues of privacy, denial of service, malleability and key storage in the browser, tracked in their respective issues in the repository). It is precisely because we recognize the limits of the view of those who build that we insist that the review of this grant be conducted independently and published in full.

Konclave is built on the Zcash Foundation’s infrastructure. We credit projects such as Zkool, Zafu and CYZE, which, by their own descriptions, already keep the viewing key on the device. What we add to this ecosystem is the governance and treasury structure. If you maintain WebZjs, operate wallets with keys on servers, or already have measurements of scanning and Halo 2 proofs on mobile devices, we would love to hear your impressions and contributions in this topic.

Transparency statement: Our pilot group, Zcash Brasil, has an approved ZCG grant (ZCG issue 155). Neither the organization nor its leader receives any fraction of the resources of this request. Konclave is also entered in the Zcash track of Colosseum’s Crypto World’s Fair, an event funded by ZCG.

Thank you for reading, and we are available on the forum to answer any questions.

GitHub issue: Grant Application - Konclave: taking the viewing key off the coordinator · Issue #486 · ZcashCommunityGrants/zcashcommunitygrants · GitHub

Daniel Gorgonha, DeegaLabs

It seems to me that you are moving towards to decentralized design.

  1. Now, the coordinator prepares the tx (a) and orchestrates the FROST ceremony (b).
  2. You want to move (a) to the participants. But then as you see, the communication of the tx is tricky. It should be encrypted otherwise the coordinator knows too much. How do the N signers agree on the key?
  3. It seems easier to move the coordinator role (b) to one of the peers since it’s a crate.
  4. By now, the coordinator is simply relaying messages. Yet, the message metadata leaks privacy.
  5. Maybe the best is for the peers to talk to each other p2p?
1 Like

Thanks, @hanh. Taking your points in order.

On (b): in the web app the FROST coordinator role already runs on a member’s device, not on a server. Every signer contributes a share, and one member’s device also assembles the signing package and aggregates. The hosted service does (a): it builds the transaction the group signs, hands it to the devices, and takes the finished signature back to apply and broadcast. The relay in the middle only carries messages. Today the hosted service also holds each vault’s viewing key. That key is what the service can read, and taking it off the server is what this grant is for.

Moving (a) to the devices means scanning, building and proving on the phone. We have not measured that yet. Milestone 1 measures scanning and proving on real Android phones and a laptop, and the design that follows depends on those numbers, so we do not promise the outcome before we have them. For the encrypted channel you mention, sealing to device keys already exists; the plan is for the viewing key to be created on one member’s device and sealed to the others, so it never reaches the coordinator.

On the metadata: signing requests are sealed to the members’ device keys, so the relay does not read them once every member has registered a device. Until then the request goes out unsealed. The relay still sees room names, message sizes and timing, the IP addresses of whoever connects, which seats take part in a signing round and when, and, while a vault is being created, the member names, the vault name and the quorum in clear. Rounds by QR or copy-paste would take the relay out of the path. That is on our roadmap as planned and not built, and it is not part of this grant. Peer to peer is not on our roadmap today, and I would like to hear how you would carry it.

On how the signers agree on the key: for vaults created since v0.12.0 it is a DKG across the members’ devices, and the members compare a short code out of band before the vault is used.

If it helps, I would be glad to compare notes on the coordinator crate and on message transport.

That’s what mobile wallets do today, don’t they? What else is there to measure?
Are you saying that currently the participants don’t have the wallet functionality?

1 Like

Fair challenge, @hanh, and you are right that native wallets do this today. Two direct answers.

Do participants have wallet functionality today? Not the part that finds funds and builds the payment. A participant’s device holds its share, shows and checks a payment, and signs. Scanning, balances, and building and proving the transaction run in our hosted service, which is also why that service holds the vault’s viewing key today. The browser never scans. Moving that work to the devices is what this grant is for.

What is left to measure? Wallets like yours scan and prove on phones today. Konclave runs in a browser, so the open question is whether the same work is acceptable in WebAssembly on mid-range Android, with the current libraries and the Ironwood pool. The public number we start from is the benchmark ChainSafe published: an Orchard proof in 5.4 seconds on a 2023 laptop in Firefox, with four threads. Our own estimate for a single-threaded proof in a browser is 60 to 120 seconds, taken from published figures for a comparable circuit. We have not measured it, and we have not measured any phone. That gap, between 5.4 seconds and our estimate, is what Milestone 1 would close, and it decides whether the answer is the browser or something else.

If you, or anyone, have WebAssembly scanning or proving numbers on Android, we would use them. We would propose narrowing the measurement part of Milestone 1 to what is still unknown, here on this thread, and say exactly what changes before anything is measured. The design and the independent review stay as filed.

All your responses are 100% AI generated, so I am doubtful that you have done actual measurements.

I write in Portuguese and use an AI assistant to help me write and translate into English. On measurements, we have not made any yet: that is what Milestone 1 is for.

We hadn’t measured it when you asked. Now we did. One 2-action proof, in WebAssembly, single thread, no server, verified.
Galaxy S24 Ultra: 17 to 35 s. Galaxy A72 (6 GB): 49 s. Galaxy A14 (4 GB): 132 s on Firefox, 279 s on Chrome.
Synthetic transaction, not a real vault. Scanning not measured yet, and a payroll with many payees will cost more. Raw output and code: GitHub - deegalabs/konclave-prove-poc: Orchard and Ironwood proving in WebAssembly on a phone: a measurement harness and its raw results · GitHub . You can run it on your own phone: Konclave proving PoC
What time would you call acceptable on a phone?

@danielgorgonha at the most recent meeting, ZCG voted to approve this proposal. Congratulations!

To keep the community informed, ZCG requests that you provide monthly updates via the forum in this thread.

Please check your forum inbox for a direct message from FPF with important next steps, including a link to the Milestone Payment Request Form and your unique validation code for submitting payment requests.

2 Likes

Thank you, ZCG. We will post the monthly updates in this thread.

1 Like

@ZCG, a question for the committee, as FPF suggested.

The application includes an independent review of the Milestone 1 design, chosen by ZCG. Who does ZCG want as the reviewer, and how do we reach them?

Work on Milestone 1 has started.

Thanks,
Daniel

I believe the ZCG allows independent audits and reviews, but not necessarily the one ZCG uses, because Least Authority is NOT affordable for a (relatively) small project… especially in a $18K total budget.

Other projects such as Zcash Names used other independent reviewers and auditors AFAIK (We audited them!)

Again, @ZCG should confirm.

1 Like

Thanks. To be precise about the scope: the $3,000 in Milestone 1 covers an independent review of the technical design document and of the measurement method, published in full. It is not a code audit.

Since the grant was approved, several reviewers have reached out to us. ZCG chooses the reviewer, not us, so anyone interested should contact ZCG directly. If it helps, someone with hands-on experience of FROST and of Zcash wallets would fit the scope best. @ZCG, how would you like to pick?

Can confirm! @strahncryptography audited Zcash Name Service and is an excellent auditor!

Before measuring, I want to confirm the Milestone 1 thresholds with you, now that NU7 is live.

The application asks for “about 1,150 daily blocks in under 30 seconds”. That number assumed 75-second blocks, the spacing until NU7. NU7 activated on 6 November and set the target spacing to 25 seconds, so a day is now about 3,456 blocks. The user’s wait is the same; the number of blocks in a day triples. These are the thresholds I propose:

  1. Daily scan: one day of blocks (3,456) in under 30 seconds on the A72. The application named no device for this bar; I propose the same mid-range phone as the first scan.
  2. First scan: 50,000 blocks in under 10 minutes on the A72, as approved. For information only, we also show 43.4 days of blocks, the history that 50,000 blocks covered before NU7.
  3. Proof: a 2-action Ironwood proof in under 3 minutes on the A72 and 90 seconds on the laptop. The verdict counts building the proving key plus the first proof, which is what a member waits for, with threads off, because our app does not enable them. The proof alone, and threads on, are shown beside it; the A14 and S24 Ultra are reported against the same bars. The figures in my post of 16 October were the proof alone, from a proof of concept outside the grant; they are not Milestone 1 results.
  4. Storage under 50 MB, reported with the number of notes. The tab must not be killed during the proof.
  5. Battery: the method will be posted here for confirmation, separately and before any battery measurement. It measures no threshold.

“Scan” here means download, decoding, trial decryption and the note commitment trees. The harness has no wallet database, so these are not full sync times, and storage is read from the candidate wallet library.

Devices: Galaxy A14, A72, S24 Ultra and a laptop. Public light client servers (zec.rocks, zec.global) don’t accept gRPC-web calls from a browser today, so live rounds reach them through a gRPC-web proxy we run, with its configuration published; WebZjs, the browser wallet library we evaluate, also needs such a proxy. The proxy’s latency is shown beside the results and never subtracted. The block range is fixed and published before running. The harness will be public before the first measurement, and the results will be published whether they pass or not.

@ZCG and anyone following the grant: if you have an objection or a suggestion, please reply here by 16 November (UTC). If there is no objection by then, we measure against these thresholds, and the report records that they were published here and no objection was raised.

That’s fine. But also give the viewing key and the actual block range for repro.

1 Like

Yes. Both will be in the repo before the first run: the viewing key of the test vault (a 2-of-3 made only for this benchmark, with a small balance) and the exact block range, start and end heights.

One change to the M1 benchmark method, before the 16 November objection deadline.

A smoke run on the Galaxy A72 (Firefox, one thread, local proxy; outside the verdict ranges, not a result) scanned blocks 3,480,000 to 3,529,999 (620,655 actions). Inserting leaves block by block, it took 43.5 minutes: 10.1 decrypting, 33.3 on the tree. A native replay of the same number of leaves counted about 3.4 hashes per leaf, where 1 is the floor.

The tree stage now inserts in chunks of 10,000 blocks, with a checkpoint per block and every leaf hashed (PR #3, main at e1a019c). The same range took 23.9 minutes: 10.1 decrypting, 13.6 on the tree. On this range that is still more than twice the 10-minute bar, and decrypting alone takes the whole 10 minutes.

The 10-minute bar for 50,000 blocks stays. The per-block row stays, as information. If the A72 misses the bar, we publish the FAIL. The verdict runs go through the hosted proxy the thresholds post describes, not a local one; its hosts and files are in the repository.

The battery method for the M1 benchmark, posted before any battery run as promised in post 15. So far we have only checked the counters: that they can be read and move with use on the three phones and the laptop, and the current on the A72 during a 10-minute replay of the scan. Those were smoke checks to choose the method, not results. Battery has no threshold and is never a verdict; it is reported beside the results.

Phones (Galaxy A72, Galaxy A14, Galaxy S24 Ultra): off the charger, reached from the computer over Wi-Fi so they are not charging, starting between 80% and 60%. The computer reads the battery every 10 seconds: level, charge counter, current and temperature. The result is the energy per job in mAh, from the charge counter and from the current summed over the run. On a phone whose counter does not match its battery, we report the share used instead of mAh. The logging script now records the counter and the current (Record the charge counter and the current in the battery log by danielgorgonha · Pull Request #7 · deegalabs/konclave-benchmark · GitHub).

Laptop (Dell G7): unplugged for the whole run. The computer logs the battery’s remaining capacity in mWh every 10 seconds, and we cross-check the whole unplugged session against Windows’ own battery report.

Every run lasts at least 20 minutes; a shorter job is repeated and the repetitions reported. An idle baseline of the same length is subtracted. Over a 20-minute run the readings are good to about 1% on the laptop and about 7% from a phone’s counter, with the summed current reported beside it. The net result per job carries the uncertainty of both the run and the baseline, and is published with it.

The full method is in docs/method.md at commit 881e9ab: konclave-benchmark/docs/method.md at 881e9ab67677f295bfc678d530589fa8274d54fd · deegalabs/konclave-benchmark · GitHub

@ZCG and anyone following the grant: if you see a problem with it, please reply here by 20 November (UTC). If there is no objection by then, we measure battery this way. No battery run starts before then.