{"id":28149,"date":"2022-03-09T21:12:27","date_gmt":"2022-03-09T21:12:27","guid":{"rendered":"https:\/\/accumulatenetwork.io\/?p=28149"},"modified":"2022-03-13T00:57:08","modified_gmt":"2022-03-13T00:57:08","slug":"is-accumulate-a-layer-zero-layer-1-or-layer-2-solution","status":"publish","type":"post","link":"https:\/\/accumulate.org\/2022\/03\/is-accumulate-a-layer-zero-layer-1-or-layer-2-solution\/","title":{"rendered":"Is Accumulate a Layer Zero, Layer 1 or Layer 2 Solution?"},"content":{"rendered":"\n
The growing demand for Web3 applications that support the scalability needs of consumers and businesses while retaining decentralization and censorship resistance has led to the emergence of 3 distinct design categories for blockchains, each of which exists to improve the speed, security, or flexibility of the other. <\/p>\n\n\n\n
These categories are known as Layer Zero (L0), Layer 1 (L1), and Layer 2 (L2). <\/p>\n\n\n\n
In this piece, we will cover what each layer does and its significance in advancing the functionality of a blockchain network. We will also discuss where the Accumulate network fits in this paradigm and how its unique architecture embraces the best of all 3 design categories, with a primary focus on Layer 2. <\/p>\n\n\n\n
While L0s come first numerically, their primary reason for existence is to serve as a solution to the challenges of L1 chains, which is why it makes more sense to begin by explaining what an L1 blockchain is. <\/p>\n\n\n\n
An L1 is an independent blockchain network that operates with its own validator set and consensus mechanism such as proof of work or proof of stake. Miners or validators of L1s secure the network by participating in the staking or mining process in order to be rewarded with the newly issued cryptocurrencies from the network.<\/p>\n\n\n\n
Examples of L1s include Ethereum, Solana, and Cardano. <\/p>\n\n\n\n
L1s are regarded as such because they provide an infrastructure for developers to build and launch decentralized applications or DApps. DApps like Uniswap or OpenSea operate on top of the Ethereum L1 in a similar way to how a web2 internet startup operates on top of AWS\u2019s cloud server infrastructure. <\/p>\n\n\n\n
DApp developers benefit from the ability to launch applications without worrying about also managing a validator set since the underlying blockchain takes care of validating all transactions that occur on the DApp. <\/p>\n\n\n\n
The downside of this arrangement is that DApps are beholden to the scalability challenges of the blockchain network they operate on. If a single DApp on the Ethereum network experiences higher than normal traffic, it can create a level of network congestion that negatively impacts the user experience across all DApps, making transactions slow or more expensive for every user. <\/p>\n\n\n\n
In addition, DApp developers are limited in how much they can customize their platforms or tokens since these all depend on the underlying protocols of the blockchain, which can only be altered through a hard fork or a lengthy improvement proposal process. <\/p>\n\n\n\n
For these reasons, Layer 0s emerged. If L1s provide an infrastructure for developers to launch DApps, L0s provide an infrastructure for developers to launch their own L1s with independent validator sets, consensus mechanisms, and native cryptocurrencies.<\/p>\n\n\n\n
Examples of L0s include Cosmos, Polkadot, Avalanche, and Horizen.<\/p>\n\n\n\n
An L0 is typically designed as a single network (referred to as the main chain) that provides an open-source software development toolkit (or SDK) for developers to launch L1s or sidechains that are connected to but not dependent on the L0 mainchain. A sidechain is a name commonly used to refer to an L1 that was launched from an L0. <\/p>\n\n\n\n
The three most important aspects of L0s are flexibility, interoperability, and scalability. <\/p>\n\n\n\n
Flexibility comes from the ability for a developer to choose the type of blockchain they wish to launch (including settings like private or public, PoW or PoS, one cryptocurrency or several, etc) in addition to the ability to launch multiple chains if they choose. <\/p>\n\n\n\n
A natural consequence of creating an infrastructure for launching multiple blockchain networks is that you can leverage that same infrastructure to enable these independent networks to become interoperable. L0s like Cosmos have excelled at enabling interoperability between their various L1s using the Inter-Blockchain Communication (or IBC) protocol. <\/p>\n\n\n\n
As a developer, the ability to operate multiple blockchains also means that you can offload transaction data onto other networks as a way to alleviate congestion within a single chain, thereby creating a more scalable system to support DApps on your chains. <\/p>\n\n\n\n
For L0s like Polkadot or Cosmos or Horizen, their L1 side chains are like branches while the L0 mainchain is the tree itself. Even though each L1 operates independently, the ‘state’ of each L1 is ultimately “backed up” by the more secure L0 mainchain using different shared security models. <\/p>\n\n\n\n
For example, Horizen uses zk-snarks to validate proofs of transactions on its L1 sidechains, while Cosmos and Polkadot have validators stake DOT and ATOM in addition to the native token of the L1s in order to make the cost of a 51% attack on an L1 basically the same as an attack on the L0 mainchain.<\/p>\n\n\n\n
Now that we know why L1s and L0s exist, we can talk about L2s. L2s are solutions that emerged slightly before L0s with the sole focus on improving the scalability of an L1. <\/p>\n\n\n\n
While an L0 tries to provide developers with greater flexibility in their blockchain and DApp design choices, L2s seek to achieve a more simple goal, which is to enhance the speed and reduce the costs of transacting on an L1. <\/p>\n\n\n\n
Examples of L2s include Polygon, Arbitrum, Lightning Network, and Starkware. <\/p>\n\n\n\n
L2s achieve scalability by forming separate networks or channels on top of an L1 that allows participants to submit transactions that are validated using fewer nodes, thereby reducing the amount of time required to achieve consensus. Alternatively, an L2 can simply consist of a smart contract payment channel that locks one party’s tokens in a contract until the other sends their tokens, ensuring that no fraud can be committed even though both parties are transacting \u2018off-chain\u2019. <\/p>\n\n\n\n
These off-chain transactions are periodically batched together and submitted back to the L1 to be validated as a single transaction and added to the L1 chain. <\/p>\n\n\n\n
L2s provide a convenient way for DApps to outsource the transaction execution process to a payments channel or smaller network of validators who can process each transaction more quickly without the need to wait for all nodes on the L1 to verify them.<\/p>\n\n\n\n
While this makes transacting on a blockchain faster, it also makes the transaction data less secure because L2 networks or channels are inherently more centralized. This risk is mostly mitigated when transactions are batched together and validated as a single transaction added to a block on the L1 chain, ensuring that they inherit the security of the L1 blockchain. <\/p>\n\n\n\n
In summary, if we can describe each layer in a few words it would be as follows: <\/strong><\/p>\n\n\n\n Layer 2 – Enabling scalability of a single L1<\/em><\/p>\n\n\n\n Layer 1 – A Network with an independent validator set and consensus mechanism <\/em><\/p>\n\n\n\n Layer 0 – An infrastructure for launching and connecting multiple L1s or ‘sidechains’.<\/em><\/p>\n\n\n\n Accumulate is a blockchain network that serves as the de-facto communication and audit layer between blockchains, enabling the seamless transfer of tokens or other kinds of digital assets between Accumulate Digital Identifiers (ADIs) across different chains regardless of their consensus mechanism.<\/p>\n\n\n\n The Accumulate Network\u2019s modular architecture allows it to fall into more than one design category of blockchain network.\u00a0\u00a0<\/p>\n\n\n\n At its core, Accumulate is an L2 that sits on top of all blockchains, serving as a universal identity layer for enabling cross-chain communication in a more scalable and cost-effective way. <\/p>\n\n\n\n Using ADIs to represent wallet addresses or assets, Blockchains can effectively reproduce entire sections of their network on Accumulate, enabling them to perform transactions between other ADIs at much faster speeds and for lower costs compared to interchain or cross-chain transfers between L1 blockchains. <\/p>\n\n\n\n Currently, the Accumulate network can handle over 70,000 transactions per second with an average transaction fee of $0.0025.<\/p>\n\n\n\n What gives Accumulate L1 properties is having its own validator set, meaning a set of nodes whose sole purpose is to validate transactions on the Accumulate network using a proof of stake consensus mechanism.<\/p>\n\n\n\nWhere does Accumulate fit within these 3 design categories? <\/strong><\/h2>\n\n\n\n