Scaling Zero-Knowledge Proofs on the Stellar Ledger
How we optimize zk-SNARK verifiers in Soroban smart contracts to enable instant compliance verification with minimal gas consumption.
Zero-Knowledge cryptography is transitioning from a theoretical privacy tool to a vital scaling mechanism for decentralized finance. On the Stellar network, the integration of the Soroban smart contract platform offers a highly optimized WebAssembly environment, but executing ZK verifiers (such as Aztec’s UltraHonk) directly on-chain can still be computationally intensive.
In this article, we outline our optimization strategies: reducing the verifier payload size, utilizing Poseidon2 hashing to minimize circuit constraints, and modularly reducing public keys to fit BN254 fields. These techniques combined bring the Soroban verification gas cost down by 40%, enabling frictionless on-chain identity verification.
