How it works
Optimistic rollups execute transactions outside Ethereum but post the transaction data to Mainnet, as calldata or in blobs, according to ethereum.org. They do not prove each batch correct upfront. Instead they are optimistic: results are accepted unless challenged. That keeps computation cheap, since the heavy checking only happens if there is a dispute.
The challenge period
After a batch is posted, ethereum.org explains, there is a time window, called a challenge period, during which anyone can challenge the results. A challenger submits a fraud proof. Through a multi-round process the parties narrow their disagreement to a single computational step, which Ethereum itself then checks. If the challenge succeeds, the bad result is reverted and the party who posted it loses a deposit.
Why withdrawals are slow
To move funds from the rollup back to Ethereum, a user starts an exit and then waits out the challenge period before it is final on layer 1. ethereum.org describes this wait as lasting around seven days. The delay is the price of not proving every batch in advance.
Faster exits
Because waiting a week is inconvenient, services offer faster withdrawals: a liquidity provider gives you funds on Ethereum straight away and takes your claim to the delayed withdrawal, usually for a fee. That adds a counterparty, so understand the terms.
Trade-offs
Optimistic designs are generally simpler and compatible with existing EVM code, which helped them launch early. Their security relies on at least one honest, watching participant being able to challenge. When using one, check how decentralised its sequencer is and what happens if the operator stops, and be ready for the withdrawal delay.