Skip to content

ZK vs MPC vs FHE vs TEE: Privacy Tech Compared

Zero-knowledge proofs, MPC, FHE and TEEs compared: what each hides, who you must trust, performance limits, and which onchain privacy projects use them.

Updated · 10 min read

Zero-knowledge proofs (ZK), multi-party computation (MPC), fully homomorphic encryption (FHE) and trusted execution environments (TEEs) are the four main technologies used to keep blockchain data private. ZK proves a statement without revealing the data, MPC splits data across several parties who compute on it jointly, FHE computes directly on encrypted data, and a TEE runs code inside an isolated, hardware-protected area of a processor.

They are often grouped together as “confidential computing”, but they protect different things and rely on different trust assumptions. This guide compares them for onchain use. For the broader picture, start with what is onchain privacy.

Quick comparison

Zero-knowledge proofsMPCFHETEE
Core ideaProve a statement without revealing inputsSeveral nodes compute on secret-shared dataCompute directly on ciphertextsRun code in a hardware-isolated enclave
Who sees plaintextOnly the proverNo single node (unless enough collude)Nobody until authorised decryptionThe enclave; vendor hardware is trusted
Main trust assumptionSound circuits and proof system; some need a trusted setupFewer than a threshold of nodes colludeDecryption key holders do not colludeChip vendor and enclave resist attacks
Shared private state across usersHardYesYesYes
PerformanceProving is heavy, verifying is cheapNetwork round-trips add latencyMuch slower than plaintextNear native speed
Typical usesShielded payments, identity, private L2sDark pools, private auctions, key managementConfidential tokens, encrypted statePrivate rollups, confidential AI
ExamplesZcash, Railgun, Aztec, Privacy PoolsArcium, NillionZama ProtocolSecret Network, Phala, MagicBlock PER

Zero-knowledge proofs

A zero-knowledge proof convinces a verifier that a statement is true, for example “I own an unspent note in this pool and the amounts balance”, without revealing anything else. Blockchains like ZK because verification is cheap enough to run in a smart contract.

How it is used for privacy. In a shielded pool, the user keeps their notes locally and submits a proof that a valid, unspent note exists in the pool’s Merkle tree, plus a nullifier that prevents double-spending. Railgun describes its system as hiding sender, recipient, token type and amount using zk-SNARKs. Aztec extends this to full applications: its documentation explains that private functions execute and are proven on the user’s device, so sensitive data never reaches the network, while public functions run on the network.

Limits.

  • ZK proves facts about data the prover already has. It cannot, on its own, compute over private inputs from many users that no one sees in full, such as matching hidden orders from different traders.
  • Proving is computationally heavy, especially on phones.
  • Bugs in circuits or proof systems can break soundness. Solana disabled its ZK ElGamal proof program in June 2025 after a flaw in how Fiat-Shamir transcripts were hashed, and Aztec’s documentation for its Alpha mainnet warns that some circuits are still under-constrained.
  • Some proof systems, including the Groth16 proofs used by several pools, require a trusted setup ceremony.

ZK is not automatically private. Most ZK rollups use proofs for scaling and publish all transaction data. Privacy needs a design that keeps the inputs off-chain.

Multi-party computation

MPC splits each secret into shares held by different nodes. The nodes run a protocol that computes the result, for example “which bid is highest”, without any single node learning the inputs. The guarantee holds as long as fewer than a set number of nodes collude, and some MPC protocols keep privacy as long as at least one node is honest.

How it is used onchain. Arcium runs an MPC network for Solana applications: developers write encrypted instructions in Rust with its Arcis framework, the client encrypts inputs, and MPC nodes compute on them and return the result, with coordination happening through Solana programs. Arcium lists dark pools, private order books and AI on sensitive data as use cases. Nillion combines MPC with other techniques for encrypted storage and computation. Solana apps such as Umbra, Stealf and Subly build on Arcium.

MPC is also widely used for key management: threshold signing in custody wallets, and the decryption keys of FHE systems.

Limits. Every computation requires communication between nodes, so latency is higher than local execution. The privacy guarantee is economic and operational rather than purely mathematical: users must trust that enough node operators are independent and do not collude.

Fully homomorphic encryption

FHE allows arithmetic and logic to run on encrypted values, producing an encrypted result that only an authorised party can decrypt. In principle, nobody performing the computation ever sees the data.

How it is used onchain. Blockchains cannot run FHE operations natively, so the Zama Protocol uses what its litepaper calls symbolic execution: when a contract calls the FHE library on the host chain, the chain records a pointer, and off-chain coprocessors perform the actual FHE computation and store the ciphertexts. Decryption uses threshold decryption run by a key management service of nodes using MPC, so no single party holds the decryption key. Zama’s litepaper lists the protocol as live on Ethereum mainnet, and confidential tokens on it follow the draft ERC-7984 confidential fungible token standard. Other FHE-based projects include Fhenix and Inco.

Limits. FHE is still far slower and more expensive than plaintext computation, which is why production systems offload it to specialised hardware and coprocessors. Users also depend on the key holders for decryption and on the coprocessors for correct results; Zama’s design makes coprocessor output publicly recomputable and verifiable.

Trusted execution environments

A TEE is an isolated region of a processor, such as Intel SGX, Intel TDX or AMD SEV-SNP, and more recently confidential computing on NVIDIA H100-class GPUs. Code and memory inside the enclave are encrypted and protected from the host operating system. Remote attestation lets anyone check that a specific program is running inside genuine hardware.

How it is used onchain. Secret Network runs smart contracts with encrypted inputs, outputs and state inside TEEs. Phala Network offers TEE-based confidential VMs and GPU TEEs for private AI inference. MagicBlock runs its Private Ephemeral Rollup on Intel TDX, so Solana programs can keep ephemeral rollup state hidden; its docs state that token accounts in the rollup are readable only by their owner.

Limits. The trust assumption sits with the hardware vendor and with the enclave resisting physical and side-channel attacks. Intel SGX in particular has a public history of academic attacks that extracted enclave secrets, which is why serious TEE deployments add attestation checks, key rotation and sometimes other cryptography on top. MagicBlock’s own comparison lists “trust assumption in vendor hardware” as the main drawback of TEEs.

Combining technologies

Most production systems use more than one technique, each covering the others’ gaps:

  • Zama Protocol: FHE for computation, MPC for key generation and decryption, and ZK proofs for validating encrypted inputs.
  • Nillion: MPC, homomorphic encryption and TEEs for different products.
  • Umbra on Solana: ZK proofs for a shielded pool plus Arcium MPC for confidential balance arithmetic.
  • Aztec: client-side ZK proofs for private functions, with public execution for shared state.

How to judge a project’s privacy claims

Before trusting any “confidential” label, ask:

  1. What exactly is hidden? Amounts, parties, contract state, or only the computation?
  2. Who can decrypt or see plaintext? A single operator, a threshold of nodes, a hardware vendor, or nobody but the user?
  3. What happens if the trust assumption fails? Leaked history, stolen funds, or both?
  4. Is the code public and audited, and is the network live on mainnet? Several systems are still in alpha or testnet.
  5. How big is the anonymity set? Strong cryptography over a handful of users still leaks through timing and amounts.

Which one to use

For private payments and balances, a ZK shielded pool or privacy chain gives the strongest guarantees with no trusted operator. For applications that combine many users’ private inputs, such as auctions, order books or private lending, look at MPC or FHE networks and check who holds the keys. For low-latency workloads like games or real-time trading, TEE-based rollups are the practical option today if you accept the hardware trust. For proving facts about identity without revealing it, ZK is the standard tool. The infrastructure category lists the confidential computing networks covered on Privacy3.

Questions

What is the difference between zero-knowledge proofs and MPC?

A zero-knowledge proof lets one party prove a statement about data it holds without revealing the data. MPC lets several parties jointly compute on data that none of them sees in full. ZK suits proving your own private state; MPC suits computing over many users' private inputs at once.

Is FHE practical on blockchains yet?

It is in production for specific uses. The Zama Protocol runs FHE operations off-chain on coprocessors and is live on Ethereum mainnet for confidential tokens and payments. General-purpose FHE remains much slower than plaintext computation.

Are TEEs secure enough for crypto privacy?

TEEs are fast and run ordinary code, but their confidentiality depends on the chip vendor and on the hardware resisting side-channel attacks, several of which have been published against Intel SGX over the years. They suit low-latency apps where that trust is acceptable.

Are ZK rollups private?

Not by default. Most ZK rollups use proofs for scaling and publish all transaction data. Privacy needs a design that keeps inputs hidden, such as Aztec's private functions or a shielded pool.

Which privacy technology is best?

None is best for everything. ZK proofs are strongest for private payments and identity, MPC and FHE for shared private state such as auctions or order books, and TEEs for low-latency workloads. Many projects combine two or more.