TechFlow Logo
Login/ Sign up
ETH Gas
Gwei
Fear
gas
A Simple Understanding of Stacks' Journey in Exploring Layer 2

A Simple Understanding of Stacks' Journey in Exploring Layer 2

2024.12.18
Share

TechFlow Selected TechFlow Selected

techFlow

A Simple Understanding of Stacks' Journey in Exploring Layer 2

The Nakamoto upgrade enables Stacks to truly evolve toward becoming a Bitcoin L2.

2024.12.18 - 08:21:18
Stacks
The Nakamoto upgrade enables Stacks to truly evolve toward becoming a Bitcoin L2.

By Lanhu Notes

During this bear market cycle, the crypto space has witnessed a rise in the BTC ecosystem. While staunch supporters of BTC as pure store of value may dislike the idea of BTC having an ecosystem, exploration into BTC's ecosystem has continued nonetheless. Beyond the significant driver of "speculation," there are two key motivations: first, unlocking yield opportunities from BTC assets; second, addressing the future mining subsidy issue for BTC—the most critical challenge for BTC’s long-term sustainability, which directly impacts how network security can be maintained. Without the emergence of a BTC ecosystem, solving this problem would pose a major challenge for BTC’s future.

In the exploration of BTC L2 solutions, Stacks stands out as one of the earliest projects to enter this field. It aims to enable ecosystems such as DeFi to operate within the BTC environment through its L2 architecture. How then should we understand the technical evolution of Stacks? Here, we divide Stacks' development into two eras: the Sidechain Era and the L2 Era. Although this classification is not entirely rigorous and involves different dimensions, it serves to help readers better focus on and understand the most important phases in Stacks’ development history.

The Sidechain Era

The concept of Bitcoin sidechains was introduced by Blockstream, which later developed the Liquid Network. Around the same time, the Rootstock network also launched. In 2018, Stacks launched its mainnet, introduced the Clarity smart contract language and oracle capabilities in 2019, and notably applied to the SEC for compliance in token issuance—a rare move at the time. This approach allowed Stacks to gain more room and time for experimentation under regulatory compliance frameworks. Throughout the long cycles of bull and bear markets, Stacks has persisted.

Stacks’ initial technical design resembled that of a BTC sidechain, but with distinct differences. It implemented a unique mechanism to ensure security, setting it apart from other sidechains. Essentially, Stacks integrates with Bitcoin through an anchoring transaction mechanism, where anchoring transactions include block header information from the Stacks chain and must be broadcasted to the BTC network. Thus, while classified as a sidechain, Stacks differs significantly from conventional sidechain models.

Stacks employs a PoX mechanism, somewhat analogous to a staking system in PoS. PoX stands for Proof of Transfer. It involves two types of participants: miners and signers (also known as Stackers). Miners must engage in Bitcoin blockchain transactions to qualify for participation—the right to write new blocks onto the Stacks chain (i.e., mining rights)—a distinctive feature of Stacks. To earn rewards, Stacks miners must secure the right to add new blocks to the Stacks chain. To obtain this right, miners participate in each round of leader elections by sending transactions on the BTC chain. From these participants, a leader is randomly selected per round via VRF (Verifiable Random Function), granting them the right to write a new block onto the Stacks chain.

For every Bitcoin block, a corresponding Stacks miner gains the right to produce all Stacks blocks during that Bitcoin block’s interval. When a Stacks miner adds transactions to a Stacks block, Stacks signers validate and sign it. If over 70% of the signers verify it as valid and reach consensus, the new block is added to the Stacks chain.

Stacks interacts with Bitcoin L1 through a “chain anchoring” mechanism, binding state data from the Stacks chain onto the BTC L1. Each Stacks block contains a hash pointing to the previous Stacks block and a hash pointing to the previous Bitcoin block. Through this mechanism, Stacks ensures that all state changes occurring on its network can be verified on the BTC L1.

In summary, during this process, Stacks miners spend BTC to compete for the chance to become block leaders (and thus earn rewards). To increase their odds, miners strategically spend more BTC based on expected return on investment. Once a miner wins the leader position, they gain the right to create new blocks on Stacks and add transaction data to the chain. After completing this work, miners receive STX token incentives. These STX rewards come from newly minted block rewards and transaction fees paid by users on the Stacks network.

Besides miners using PoX to win block-writing rights, there are also Stackers—signers who participate in validation, forming another crucial part of the PoX mechanism. STX (Stacks token) holders can join the PoX consensus by staking their STX tokens to validate the correctness of Stacks blocks and determine whether a block should be confirmed on-chain. By participating in this Stacking process, STX holders earn a portion of the BTC originally bid by miners, along with STX rewards. The amount of reward depends on the quantity of STX staked and the duration. A single Stacking cycle lasts approximately two weeks (around 1800 blocks).

The total supply of STX is 1.818 billion tokens, with nearly 1.5 billion currently in circulation (per CoinMarketCap data). Mining rewards remain the primary release mechanism: 1000 STX per block for the first four years, halving every four years until reaching 125 STX per block, after which no further halvings occur.

The L2 Era

Stacks 2.0 marks the transition into the Bitcoin L2 era, highlighted primarily by two developments: the Nakamoto Upgrade and the launch of sBTC. The Nakamoto Upgrade fundamentally shifts Stacks into the BTC L2 landscape, aiming to resolve issues around security and performance. Meanwhile, the introduction of sBTC prepares the ground for real-world applications within its L2 ecosystem.

*The Nakamoto Upgrade drives Stacks’ genuine evolution toward becoming a Bitcoin L2.

The Nakamoto Upgrade is a pivotal milestone for Stacks, pushing it toward becoming a true L2 on Bitcoin.

A core principle of L2 is inheriting security from the L1. The Nakamoto Upgrade aims to achieve exactly this. After the upgrade, Stacks seeks to position itself as a layer within the Bitcoin network, integrating more tightly with Bitcoin and becoming a deeper, more intrinsic component of the Bitcoin network and ecosystem.

Join TechFlow official community to stay tuned

Add to Favorites
Share to Social Media

Related Articles

2025.01.16

Stacks co-founder Muneeb Ali: Developers will return to the Bitcoin ecosystem, with price expected to reach $150,000 by year-end

After completing a series of major technical upgrades, Ali is now focusing on expanding the Stacks user base.

Stacks co-founder Muneeb Ali: Developers will return to the Bitcoin ecosystem, with price expected to reach $150,000 by year-end
2025.01.14

Stacks Network Bandwidth Surges 500%, Bitcoin Layer2 Ushers in a New Era

True technological innovation and ecosystem development are the keys to winning the market.

Stacks Network Bandwidth Surges 500%, Bitcoin Layer2 Ushers in a New Era
2024.12.18

Crypto Morning News: Fuel opens eligibility check for airdrop, sBTC launches on Stacks mainnet

Galaxy CEO predicts Bitcoin's market cap will surpass gold's within 5 to 8 years.

Crypto Morning News: Fuel opens eligibility check for airdrop, sBTC launches on Stacks mainnet
2024.12.12

Crypto Morning News: Stacks announces sBTC launch next week, Coinbase adds PNUT to listing roadmap

MicroStrategy is expected to officially join the Nasdaq 100 Index on December 23.

Crypto Morning News: Stacks announces sBTC launch next week, Coinbase adds PNUT to listing roadmap
2024.12.05

Technical Analysis of Stacks: The Pioneer of Bitcoin Layer 2

After seven years of development and market validation, Stacks has established a complete technology stack, providing a viable solution model for implementing smart contracts on BTC.

Technical Analysis of Stacks: The Pioneer of Bitcoin Layer 2
2024.11.21

Revisiting Stacks: Bitcoin's Oldest L2 Completes Nakamoto Upgrade, Will BTC DeFi Be the Next Focus?

The core of the Nakamoto upgrade lies in the comprehensive innovation of the PoX consensus mechanism in Stacks 2.0.

Revisiting Stacks: Bitcoin's Oldest L2 Completes Nakamoto Upgrade, Will BTC DeFi Be the Next Focus?
2024.10.29

Hex Trust partners with Stacks Asia Foundation to integrate Stacks and provide onboarding solutions for its DeFi applications

This collaboration will support the Stacks layer and all assets based on Stacks on its hosting platform.

Hex Trust partners with Stacks Asia Foundation to integrate Stacks and provide onboarding solutions for its DeFi applications
2024.09.26

StackingDAO: The Liquidity Magnet for Stacks DeFi

Explore the role and functionality of StackingDAO.

StackingDAO: The Liquidity Magnet for Stacks DeFi
2024.01.27

STX Staking Guide: Single-Asset, Pooling, or Airdrop Farming—How to Find the Optimal Strategy for Maximizing Returns?

In the wave of Bitcoin's ecosystem expansion, Stacks has already secured its position.

STX Staking Guide: Single-Asset, Pooling, or Airdrop Farming—How to Find the Optimal Strategy for Maximizing Returns?
2024.01.16

Bankless: Understand Bitcoin Layer 2 Network Stacks in Three Minutes

The PoX consensus mechanism and the upcoming Nakamoto upgrade have positioned Stacks as an innovator at the forefront of Bitcoin.

Bankless: Understand Bitcoin Layer 2 Network Stacks in Three Minutes
TechFlow Logo

Navigating Web3 tides with focused insights

Contribute An Articleemail
Media Requestsmsg

Risk Disclosure: This website's content is not investment advice and offers no trading guidance or related services. Per regulations from the PBOC and other authorities, users must be aware of virtual currency risks. Contact us / [email protected] ICP License: 琼ICP备2022009338号