There are many ways in which blockchains choose to scale their networks. Each with its own unique take on how to solve the trilemma. Here we are discussing the differences between Avalanche® L1s and blockchain sidechains.
Finality
L1s are completely sovereign and don't share their state with the Primary Network so transactions are final and immutable in less than 2 seconds with the Avalanche Consensus.
Sidechains need to continuously send a checkpoint/save state to the 'parent' chain (Polygon to Ethereum, for example). Transactions on sidechains are not final until the checkpoint is accepted and finalized on the parent chain. So it must be recorded on the sidechain, then sent to the ‘parent’ chain which must then also record it. This leaves a point of failure where a chain may experience a reorg, as a failsafe.
Speed
L1s transactions do not affect the speed of the Primary Network, and the Primary Networks transactions do not affect the speed of the L1 transactions. Both are allowed to operate at maximum speed without affecting one another.
Sidechains transactions are not affected by the ‘parent’ chain and likewise the other way around. This allows both to work at their optimal speeds. However, gas price fluctuations on the ‘parent’ chain can affect the speed of checkpointing, and congestion can prevent them altogether.
Validators
L1 nodes are REQUIRED to validate the Primary Network, thereby creating a common coordination environment. This can be used for registering metadata, check-pointing proofs, atomic transfers, and other similar uses.
Not all sidechains use the same nodes as their parent chain but can, depending on the sidechain.
Flexibility
L1s provide maximum flexibility. You are free to create your own economics (such as custom tokens for gas), security, and also your choice of VM (virtual machine). So a project is not handcuffed to only use the Primary Network’s tokenomics and technical structure. This allows projects to customize all aspects of their environment. This means you can use other execution environments besides the EVM. Also, L1s can be permissioned or permissionless.
Sidechains, however, require users to use their token for gas, and their VM, and abide by their security structure.
Security
L1s have the added benefit of being risk isolated from the Primary Network since L1s don't share their state with the Primary Network. They don’t share risk with other L1s either.
With L1s, if the Primary network were to be maliciously attacked and successful in the attack, it will not affect the L1. Avalanche security is parameterizable.
Sidechains that are compromised will not affect their ‘parent’ chain. However, if the ‘parent’ chain is affected, the sidechain will be impacted as well.
OTHER
How many L1s can you have?
Unlike other networks, L1s are not limited. Anyone can build a L1, no need for auction slots or limited caps.
For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.