ZstarkWarp
ZK bridge between Starknet and Ztarknet
The problem ZstarkWarp solves
ZstarkSwap is a private bridge between Starknet and Ztarknet, built on a mix of game-theory and zero-knowledge security.
The underlying framework allows private token transfers between any chains without exposing users to typical bridge-hack risks. It works through a Tornado-Cash-style pool where users lock funds on one chain and then prove, using a ZK proof that they deposited, without linking their withdrawal to their deposit. Because withdrawals aren’t instant, a user could try to cheat by submitting an invalid Merkle root and a proof computed over that fake root.
This is where the solvers step in. They lock funds in the withdrawal contract and are responsible for checking that the Merkle roots being proven are correct. The protocol then optimistically sends funds that come from the solvers who approve the withdrawal. Solvers earn a small fee for every withdrawal they validate.
They also take on real risk: if a solver approves an invalid withdrawal, their stake can be slashed. The protocol stays safe as long as enough observers watch approvals and flag bad ones. There’s a cooldown period, during which a multisig or later a DAO can slash the solver if they misbehave.
Challenges I ran into
Writing tests for the circuits was brutal. One tiny mistake and the Merkle root from the test wouldn’t match the one in the contract. I just had to grind through it and make sure the circuit and the contract actually behaved the way they were supposed to.
And working with Garaga lib was not fun.
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
