Interoperability
A LinethLineth (Formerly the Linea Stack) The open-source ZK-rollup stack, codebase, and technical protocol that's the foundation of Linea Mainnet. Operators can deploy this stack to launch their own Ethereum-compatible L2 or L3 networks. network exchanges data and value with its finalization layerFinalization layer The blockchain where a Lineth deployment submits proofs and state commitments for verification and hard finality. If the finalization layer is Ethereum (an L1), the deployment is an L2. If the finalization layer is Linea (an L2), the deployment is an L3. through two protocol components:
- Canonical token bridge: A pair of lock-and-mint contracts for bridging any ERC-20 token.
- Canonical message service: A general-purpose primitive that carries arbitrary messages and native currency in both directions. The token bridge is built on it.
In both directions, a message executes on the destination chain only once that chain holds an onchain record of it, and anyone can submit the claim that triggers execution.
What differs is when that record is checked against the origin chain. From the Lineth network to the finalization layer, messages are recorded on the finalization layer only once the blocks that sent them are finalized. From the finalization layer to the Lineth network, messages are recorded on the network first, and checked against the finalization layer at the next finalization. See Message commitments for more information.