Search looks through the written questions first. The AI only answers when nothing matches.

What is the difference between an optimistic rollup and a zk-rollup?

Advanced · Updated

An optimistic rollup posts the new state to layer 1 and treats it as valid unless someone submits a fraud proof during the challenge window. While that window is open, a withdrawal back to layer 1 may have to wait, because the state can still be challenged. The security of this design depends on someone being able to read the data, rebuild the state and get a challenge in on time. If nobody is watching, a wrong state can become accepted once the deadline has passed.

A zk-rollup attaches a validity proof to the update. Layer 1 checks that proof and only then accepts the state. There is not the same wait for a fraud, because what is not proved does not enter. The cost sits in producing the proof and in keeping the circuit correct. The letters zk in the name are not enough: what matters is which proof layer 1 actually verifies, whether the data is available, and who orders the transactions. The two designs inherit layer 1 in different ways, and both can fail in the contract, in the bridge or in the operator.

Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.

In the glossary

Articles

In the Academy: Advanced · In the Academy · In the glossary

Related questions