[Paper Review] ZETH: On Integrating Zerocash on Ethereum
ZETH presents a privacy-preserving transaction protocol for Ethereum that adapts Zerocash's zero-knowledge proofs to the account-based model without modifying the Ethereum protocol. It enables private transfers of Ether and ERC20/ERC223 tokens using zk-SNARKs, with on-chain verification costing under 2 million gas for standard joinsplit operations, demonstrating feasibility and controlled information leakage.
Transaction privacy is a hard problem on an account-based blockchain such as Ethereum. While Ben-Sasson et al. presented the Zerocash protocol [BCG+14] as a decentralized anonymous payment (DAP) scheme standing on top of Bitcoin, no study about the integration of such DAP on top of a ledger defined in the account model was provided. In this paper we aim to fill this gap and propose ZETH, an adaptation of Zerocash that can be deployed on top of Ethereum without making any change to the base layer. Our study shows that not only ZETH could be used to transfer Ether, the base currency of Ethereum, but it could also be used to transfer other types of smart contract-based digital assets. We propose an analysis of ZETH's privacy promises and argue that information leakages intrinsic to the use of this protocol are controlled and well-defined, which makes it a viable solution to support private transactions in the context of public and permissioned chains.
Motivation & Objective
- To address the lack of private transaction solutions in Ethereum’s account-based model, which differs fundamentally from Bitcoin’s UTXO model.
- To enable private transfers of Ether and smart contract-based tokens (e.g., ERC20, ERC223) without altering Ethereum’s base layer.
- To ensure minimal trust assumptions by avoiding reliance on trusted parties or special nodes in the protocol design.
- To evaluate the practicality of zero-knowledge proofs on Ethereum under the gas model and storage constraints.
- To provide a proof-of-concept implementation demonstrating end-to-end private transaction flow on Ethereum.
Proposed method
- Adapts Zerocash’s zk-SNARKs to Ethereum’s account model using a modified joinsplit circuit that supports private inputs and outputs.
- Employs a trusted setup phase to generate a Common Reference String (CRS) with elements in groups G1, G2, and GT, enabling efficient proof generation and verification.
- Uses bilinear pairings e: G1 × G2 → GT to verify the correctness of the zero-knowledge proof in the verifier contract.
- Encodes the transaction logic in a smart contract (Mixer contract) that stores Merkle tree leaves and serial numbers, ensuring uniqueness and traceability of spent notes.
- Implements a gas-efficient verification protocol that checks knowledge of secrets, consistency of coefficients, and divisibility of the QAP polynomial.
- Leverages Ethereum’s EIP-1108 proposal to reduce pairing gas costs, improving scalability for future deployment.
Experimental results
Research questions
- RQ1Can Zerocash-style private transactions be securely and efficiently implemented on Ethereum’s account-based model without protocol-level changes?
- RQ2What is the on-chain gas cost of verifying zk-SNARK proofs for private transactions in Ethereum, and how does it scale with transaction complexity?
- RQ3To what extent do information leakages from the gas model and public state modifications undermine privacy in smart contract-based mixers?
- RQ4Can a trustless, decentralized private transaction system be built on Ethereum using zero-knowledge proofs with minimal trust assumptions?
- RQ5How does the integration of ZETH compare to existing privacy solutions in terms of performance, storage overhead, and compatibility with existing token standards?
Key findings
- ZETH successfully enables private transfers of Ether and ERC20/ERC223 tokens on Ethereum using zk-SNARKs without modifying the base layer.
- On-chain verification of a ZK proof for a joinsplit with 2 private inputs and 2 private outputs costs under 2 million gas, making it feasible under current Ethereum constraints.
- The protocol maintains controlled and well-defined information leakages, primarily from gas payments and public state changes, which do not compromise the core privacy guarantees.
- The implementation demonstrates that zero-knowledge proofs can be integrated into Ethereum’s smart contract model with acceptable performance, especially with EIP-1108 support.
- Storage costs are significant due to the need to persist Merkle tree leaves and serial numbers, making tree depth a critical parameter for scalability.
- Future improvements, such as circuit optimization and multi-party computation for CRS generation, are necessary to reduce proving time and trust assumptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.