bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 3쪽 중 3쪽
state. Very few such attacks are even possible. Step (2) above is
irrelevant for the security budget as most exchanges will require at least 6 settlement
confirmations before considering a transaction as final. Bitcoin can fork within 6 blocks as
well, so for important transactions you want to wait 7+ settlement confirmations. Step (3) above
follows a security budget that is a combination of the majority of the mining power and a
supermajority of the locked stacking capital. This is in the order of hundreds of millions of
dollars today. Step (4) is 100% of Bitcoin security and is the strongest security guarantee. This
is the security budget for most of the blocks in the Stacks layer chain history i.e., the bulk of the
Stacks ledger is secured by Bitcoin mainchain hash power.
3. Performance of Stacks
The initial version of the Stacks layer (2021) produces blocks at the speed of Bitcoin, which is
unpredictable and slow (a block every 10 minutes, on average). In the Nakamoto release
(2023), the Stacks layer will produce faster blocks in-between two Bitcoin blocks at the rate of
approximately a new block every 5 seconds. The settlement of transactions to the Bitcoin main
chain will still happen at the rate of Bitcoin blocks, but the Stacks blocks have a much lower,
and predictable, latency.
Most modern smart contract L1s—like Ethereum, Solana, Avalanche etc. — use Proof-of-Stake
(PoS) based mechanisms to produce fast blocks without allowing forks. While there can be
several disadvantages to PoS approaches, like inherently centralizing forces or inability to
recover from certain failures without hard forks, these chains typically have low-latency block
production and application users expect their transactions to get confirmations within seconds.
12
On the other hand, block production in Bitcoin’s Proof-of-Work (PoW) is both inherently
unpredictable, given randomness of the hash function, and slower, as Bitcoin optimizes for
decentralization by allowing ample time for block propagation to nodes with modest network
connections. Further, Bitcoin allows forking and gives the network ample time to resolve short-
lived forks.
The Stacks layer aims to give application users the best of both worlds: fast transactions with
Bitcoin finality. Users get faster confirmations as Stacks blocks are produced in seconds, while
all transactions on the Stacks layer eventually settle on Bitcoin in the background and benefit
from 100% of Bitcoin’s hash power for finalization.
The key idea is that Stacks can use the unique property of PoX consensus that PoX has access
to both the Stacks and Bitcoin global ledgers. Using an open bidding process on the Bitcoin
ledger, a group of Stacks miners is elected that can mine for the Stacks blocks until the next
Bitcoin block (at a 10-minute average Bitcoin block time, this is approximately 120 Stacks
blocks on average). Once the miner set is elected, these miners use BFT-style quorum signing,
weighted by their BTC bids, to produce Stacks blocks every 5 seconds which decouples the
Stacks layer bandwidth from the time in-between Bitcoin blocks . New miners can join the
Stacks miner set at every Bitcoin block, preserving the open membership property of Stacks
mining.
Thus, with the Nakamoto release, there will be two types of blocks at the Stacks layer:
• Fast blocks will be produced every 5 seconds through a BFT-style quorum signing
mechanism by Stacks miners. Fast blocks can contain new transactions and contract calls,
and fast block N+1 can build on the state of fast block N, forming a linear sequence of fast
blocks.
• Settlement blocks will be produced at every Bitcoin block. Settlement blocks do not
contain any new transactions but only settle the recent sequence of fast blocks on the
Bitcoin chain. Miners of settlement blocks are economically incentivized to include the
longest sequence of fast blocks for settlement on Bitcoin.
Forks are not allowed in the fast blocks that appear between settlement blocks. Forks are only
allowed at the level of settlement blocks, subject to the earlier forking rules.
3.1. Higher Performance and Versatility through Subnets
The Stacks Bitcoin layer provides additional capabilities for even higher performance, as well
as for versatility and security. Despite its performance mechanisms described above, the Stacks
layer optimizes for decentralization, like Bitcoin, instead of low latency or high network
throughput: Users with normal laptops and home internet connections in remote locations
should be able to run full Stacks and Bitcoin nodes. However, the main Stacks chain also serves
as a coordinating layer for higher performance Subnets. A subnet also supports smart
contracts, and it can make different tradeoffs between decentralization and performance than
the main Stacks chain or other subnets. Additionally, individual subnets can support smart
contracts in different programming languages and execution environments. As discussed further
below, a subnet(s) may support Clarity and the Clarity VM, with its benefits of security, while
another may support Ethereum’s Solidity language and EVM compatibility, or compatibility
13
with the Ethereum Virtual Machine, with its benefits of ease of integration and development
and of leveraging all existing Solidity smart contracts to use BTC as their asset and settle on the
Bitcoin blockchain.
Figure 1. Scalability through subnets and different VMs
Subnets are a scalability and execution framework for the Stacks Bitcoin layer. On the
performance side, applications may have different needs regarding low latency, high
throughput, and burstiness of transaction volume (e.g., NFT minting). Subnets are designed for
high throughput at the expense of reducing decentralization at the execution layer, while still
settling transaction on the Bitcoin blockchain via the Stacks Bitcoin layer. L1 smart contract
chains that promise fast speeds and high throughput (measured in transactions per second or
TPS) effectively make mining more centralized by requiring high-powered miner nodes and
datacenter-level bandwidth.
The Stacks architecture, with the core layer and subnets, give application developers and users
a choice between decentralized and lower throughput execution (Stacks main layer) or more
centralized but higher throughput execution (a subnet). Miners/operators of a given subnet can
require high network bandwidth between the miner set, like datacenter nodes, and can even
whitelist the set of subnet miners to ensure high performance.
Subnets are for execution, not for storage of assets. With high-performance subnets, developers
and users can pick high throughput when they need it and can then withdraw their assets to the
core Stacks layer when they wish. These assets can include STX or the Bitcoin-pegged sBTC.
Note that the framework in concept parallels that of the pegged BTC asset between Bitcoin and
the Stacks layer.
Subnets can also support multiple execution environments, through multiple deployments of
identical or different subnets. For example, a gaming application can be deployed as a separate
subnet. This separates the gaming application network load from the rest of the application
traffic. We believe scaling in modular layers and sub-networks is the best path to scalability. In
14
this regard, our approach is like the concept of subnets in Avalanche and parachains in
Polkadot. It differs from those systems in that applications on Stacks subnets benefit from
Bitcoin’s final settlement and security, and they have a tight integration with Bitcoin (like the
Stacks core layer) wherein smart contracts deployed on subnets can be triggered by native
Bitcoin transactions and they can use sBTC, through the Stacks layer, to trigger writes on the
Bitcoin main chain.
3.2. Future Work: Bitcoin Rollups and the Stacks Layer
ZK rollups for Bitcoin present an interesting research area. With some changes to Bitcoin,
potentially as soft forks, rollups for Bitcoin may be enabled in the future [bitcoin-rolllups]. The
Stacks layer, with its full execution environment and more rapid pace of upgrades than Bitcoin,
presents an excellent venue to experiment with Bitcoin rollups and other scalability
technologies like fraud proofs. A rollup or fraud proof published at the Stacks layer can benefit
from 100% of Bitcoin hash power as the relevant transactions/data reach Bitcoin finality.
Moreover, the Stacks layer can serve as a natural storage layer for any data needed for rollups,
with settlement on the Bitcoin blockchain.
Rollups and fraud proofs on the Stacks layer itself can be deployed today, including using the
Bitcoin-pegged sBTC. In fact, there is some on-going work on a prototype implementation of
Arbitrum-style fraud proofs for the Stacks layer. The Bitcoin-pegged asset sBTC can be used in
these rollups and fraud proof systems, so that users can enjoy the benefits of rollups and fraud
proofs (such as privacy and scalability) while using Bitcoin as their asset via sBTC. In the
short-term, say the next two or three years, rollups on the Stacks layer are much more practical
than rollups directly on the Bitcoin L1, since Bitcoin is historically cautious and slow to adopt
any changes. However, even in the long-term it might be beneficial to use rollups using sBTC
on the Stacks layer instead of, or in addition to, BTC on the Bitcoin chain. This is because of
Maximal Extractable Value (MEV) and data storage.
To exploit MEV incentives for rollups, it is far more economical to do reorderings/reorgs on the
Stacks layer (at least for up to 6 blocks) in Stacks rollups than it is to do them at the Bitcoin
level. With direct Bitcoin rollups, the MEV incentives will need to be handled directly at the
Bitcoin level, which makes Bitcoin mining incentives much more complex than the current
Bitcoin situation of fairly straightforward incentives. If the Stacks layer is used for rollups—for
example, with sBTC—neither MEV incentives nor potential attacks are directly exposed to the
Bitcoin blockchain (indirectly any Bitcoin layer that settles on Bitcoin will have some
consequences for Bitcoin miner incentives).
For storage for rollups data, it is better to use an external layer like Stacks than to grow the size
of the main Bitcoin chain. Rollups and fraud proofs remain a relatively early yet exciting area
for Bitcoin. The Stacks community and developers are researching and prototyping what
rollups through Stacks can enable, especially through their use with sBTC and Bitcoin finality.
4. Conclusion
With its Nakamoto release, the Stacks Bitcoin layer unlocks smart contracts and decentralized
applications that use Bitcoin as their asset and perform the final settlement of transactions on
the Bitcoin blockchain. Stacks allows BTC to be a productive asset without compromising its
15
security and durability and enabling a wide range of applications like decentralized Bitcoin
lending and Bitcoin-backed stablecoins. These applications through the Stacks layer allow
people to use Bitcoin as money and the Bitcoin blockchain as the settlement of identity or
application data, reducing the need for users to explore alternate, less secure L1 blockchains
and crypto assets than BTC.
Key elements of the Stacks Bitcoin layer include (a) transactions secured by 100\% of the hash
power of Bitcoin (Bitcoin finality), (b) a novel decentralized Bitcoin peg, sBTC, (c) atomic
BTC swaps and assets owned by BTC addresses, (d) a secure programming language, Clarity,
(e) reading and writing Bitcoin state, and (f) scalable, fast transactions that settle on Bitcoin.
Further, the PoX consensus for Stacks forks with Bitcoin and has BTC rewards as incentives for
positively contributing to the open protocol.
The decentralized peg has been a "holy grail" problem for Bitcoin for a decade, and existing
pegs have relied on centralized mechanisms like custodians and trust in known federations
without economic security. The sBTC peg for Stacks uses economic security with 1:1 BTC
backing and incentive engineering, like Bitcoin itself, to enable a decentralized peg system with
open membership for signers. The peg relies on several aspects of the Stacks layer—such as
PoX consensus, Bitcoin finality, and BTC rewards—for its safety, incentive compatibility, and
liveness. Without the unique properties of the Stacks layer, a decentralized, sBTC-like Bitcoin-
pegged asset may not be commercially viable or incentive compatible.
The Stacks layer also provides fast blocks for low latency and subnets for high throughput.
Subnets can enable smart contracts written in other languages and running in different
execution environments, such as the Solidity language in the Ethereum Virtual Machine
allowing familiar integration and development but using Bitcoin as money and settling on the
Bitcoin blockchain.
References
· [1] sBTC: A decentralized two-way peg for bitcoin, Dec 2022. https://stx.is/sbtc-pdf.
· [2] Magic protocol for atomic swaps with BTC and Stacks.
https://magicstx.gitbook.io/magic-protocol/overview/magic-protocol.
· [3] Muneeb Ali. Bitcoin DeFi is here: A deep dive into trust-less swaps, 2021.
https://hiro.so/blog/bitcoin-defi-is-here-a-deep-dive-into-trust-less-swaps
· [4] Vitalik Buterin. A next-generation smart contract and decentralized application
platform. Technical report, 2014. https://ethereum.org/en/whitepaper/.
· [5] Clarity: A decidable language for smart contract. https://clarity-lang.org/.
· [6] Stacks on chain: State of the network. https://stacksonchain.com/dashboards/State-of-
the-Network/16.
· [7] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system. Tech report, 2009.
https://bitcoin.org/bitcoin.pdf.
· [8] tBTC: A Decentralized Redeemable BTC-backed ERC-20 Token. https://docs.keep.
network/tbtc/index.pdf.
16
· [9] Muneeb Ali. Trust-to-Trust Design of a New Internet. PhD thesis, Princeton University
2017. https://www.cs.princeton.edu/research/techreps/TR-003-17.
· [10] Jude Nelson, Muneeb Ali, Ryan Shea, and Michael J Freedman. Extending existing
blockchains with virtualchain. In Workshop on Distributed Cryptocurrencies and
Consensus Ledgers (DCCL'16), Chicago, IL, June 2016.
· [11] John Light. Validity rollups on bitcoin, 2021. https://bitcoinrollups.org/
17프로젝트로 돌아가기