Zero-knowledge apps on Stellar are growing fast. Private payments, private voting, proof-of-reserves, identity. A lot of them use Groth16, because Soroban has native BN254 host functions and Groth16 proofs are small and cheap to verify on-chain.
But Groth16 has a catch that's easy to forget once the demo works: the proving key comes from a trusted setup, and whoever knows the setup's secret can fake proofs.
I wanted to know how often that's actually a problem on Stellar. So I checked.
The catch, in one paragraph
A Groth16 key is built from secret random values (often called "toxic waste"). If anyone keeps them, they can make a proof of a false statement, for example "I have enough balance" when they don't, and the on-chain verifier will accept it. The math checks out. Nothing looks wrong.
The standard fix is a multi-party ceremony. Several people each add their own randomness to the key, one after another. The final key is safe if even one of them destroyed their part. You don't need to trust the group. You only need to trust that one honest person took part, and that person can be you.
What I scanned
I collected every public Stellar ZK repo I could find through GitHub search and ecosystem lists: 374 repos.
| What | Count |
|---|---|
| Repos scanned | 374 |
| Readable, not forks | 345 |
| Using a proof system | 280 |
| Circom | 154 |
| Noir | 121 |
| arkworks | 65 |
| RISC Zero | 23 |
| Need a Groth16 trusted setup | 189 |
Noir, RISC Zero and SP1 projects mostly don't need a per-app ceremony, so the 189 Groth16 projects are the ones that matter here.
What I found
For every repo that ships a .zkey file, I read the contribution history snarkjs stores inside the key.
- 77 repos ship a key I could read.
- In 74 of them (96%), one person made the key: a single contribution, or none at all.
- 9 ship a key that anyone can forge against, not just the person who made it. Either the key never got a real phase 2 contribution, or the only "contribution" was a public beacon that anyone can recompute.
- 3 had a real multi-party phase 2.
Phase 1 is in better shape: 62 projects used the public Perpetual Powers of Tau file. Phase 2, the per-app key, is where it's one person almost every time.
I'm contacting the 9 affected teams privately before naming anyone. The public results in the repo are anonymised.
This isn't a callout. Running snarkjs zkey contribute once on your laptop is what every tutorial shows. There just hasn't been a Stellar tool for doing it properly.
Proving it on Stellar
A number in a table is easy to doubt, so I built a demo against Soroban's own BN254 pairing check:
- Make a Groth16 key alone, keeping the secret.
- Use the secret to forge a proof of a false statement.
- Verify it on Soroban → accepted.
- Add one honest contribution to the key and run the same forgery.
- Verify again → rejected.
4 of 4 tests pass. You can run it yourself from the repo.
What I'm building: Pyre
Pyre runs multi-party Groth16 ceremonies on Stellar.
For contributors: open a link, press your fingerprint, wait about a minute. Your browser adds your randomness to the key, and a passkey smart account signs the step. No wallet, no seed phrase, no CLI. In my tests a full in-browser contribution takes about 63 seconds.
On Soroban: a ceremony contract records every step in order and runs a pairing check on each one, so a contributor can't quietly swap the key for an unrelated one. When the ceremony closes, the finished key goes into a Seal registry.
For other contracts: any Soroban contract can call
is_sealed(key_hash) -> bool before it trusts a verifying key, and refuse keys that didn't come out of a finished ceremony. **For anyone checking:** `pyre-verify` replays the whole ceremony from public data and checks every step. You don't have to trust Pyre's website either. Pyre doesn't invent any new cryptography. snarkjs does the key math, the Perpetual Powers of Tau covers phase 1, Soroban handles ordering, auth and the pairing checks, and the Smart Account Kit handles passkeys. The new part is a public record that nobody can rewrite. ## What Pyre doesn't solve - **Proving someone deleted their secret.** Nobody can. That's why you join the ceremony yourself instead of trusting others. - **Fake identities.** Someone can add many fake contributors. That doesn't hurt you: one real, honest contribution still makes the key safe. - **Admins swapping keys later.** If an app's admin can replace the verifying key after the ceremony, the ceremony doesn't protect you. `is_sealed` helps, but the app has to use it. ## Try it / talk to me - Repo, scanner and forgery demo: **github.com/Venkat5599/pyre** - If you're building a ZK app on Stellar and made your key yourself, I'd like to help you run a proper ceremony before mainnet. Comment below or reach out. And if you have a Groth16 project on Stellar, check your `.zkey` and count the contributions. It takes 10 seconds:
bash
npx snarkjs zkey verify circuit.r1cs pot.ptau circuit_final.zkey