TEE with ZK and ZKrollup
Last updated
Was this helpful?
Last updated
Was this helpful?
In the blockchain space, our vision is to bring privacy, security, and verifiability to users. Our ultimate goal is to design a system that can simultaneously fulfill these attributes. However, relying on a single proof system to achieve this is impractical for several reasons:
No single cryptographic system can be guaranteed to be 100% secure. For instance, zero-knowledge proofs (zk) can have soundness bugs that are difficult to detect, while Multi-Party Computation (MPC) is susceptible to collusion risks between nodes.
Privacy in zkRollups cannot be fully guaranteed because sequencers can extract user transaction data during proof generation.
Verifiability in Fully Homomorphic Encryption (FHE) computations is challenging because the FHE server may not perform computations correctly, and without knowing the correct result, we cannot verify its accuracy.
In the blockchain space, our vision is to bring privacy, security, and verifiability to users. Our ultimate goal is to design a system that can simultaneously fulfill these attributes. However, relying on a single proof system to achieve this is impractical for several reasons:
No single cryptographic system can be guaranteed to be 100% secure. For instance, zero-knowledge proofs (zk) can have soundness bugs that are difficult to detect, while Multi-Party Computation (MPC) is susceptible to collusion risks between nodes.
Privacy in zkRollups cannot be fully guaranteed because sequencers can extract user transaction data during proof generation.
Verifiability in Fully Homomorphic Encryption (FHE) computations is challenging because the FHE server may not perform computations correctly, and without knowing the correct result, we cannot verify its accuracy.
There are several benefits we can gain by introducing TEE:
Hardware-grade safety: The privacy, confidentiality, and data integrity is guaranteed by hardware secure enclave.
No computation overhead: Applications run TEE have nearly same speed compare with running in normal CPU env
Low verification cost: The Gas consumption to verify TEE proof is minimal, requiring just an ECDSA verification.
We can not guarantee any single cryptography system is 100% secure. At the same time, the current Zero-Knowledge (ZK) solution is secure theoretically but still does not guarantee system-wide bug-free operation, especially from an engineering perspective, which remains challenging due to the complexity of ZK implementation. Here's where multi-proof systems come into play, to hedge the bugs in ZK implementation, a hardware solution, Trusted Execution Environment (TEE), can be used as a 2-factor verifier to offer double security to ZK projects like zk-Rollups. Inspired by Vitalik Buterin's presentation and a recent post by Justin Drake.
Phala Network: Run zk-Rollup STF (state transition function) in TEE
Primus: Build Trustless zkTLS with TEE