Skip to content

aabxtract/stacks

 
 

Repository files navigation

Stacks: Bitcoin's Smart Contract Layer

Stacks extends Bitcoin's functionality by adding smart contracts and decentralized applications while maintaining trustless integration with the Bitcoin blockchain. This allows developers to build on Bitcoin without modifying its base layer.

Key Documentation

Evolution of Stacks

2021 Launch introduced Bitcoin transaction settlement, the Clarity programming language for secure smart contracts, and atomic swaps with BTC.

Nakamoto Upgrade (SIP-021) adds three major enhancements:

  • Trustless two-way Bitcoin peg for moving BTC in and out of the layer
  • Bitcoin finality for transaction security
  • Fast transactions between Bitcoin blocks

This upgrade transforms Bitcoin into a fully programmable asset, potentially activating hundreds of billions in dormant Bitcoin capital.

What Makes Stacks Unique

SSecured by Bitcoin's complete hash power and finality
TTrustless Bitcoin peg with write capabilities
AAtomic BTC swaps and Bitcoin address ownership
CClarity language for provably safe contracts
KKnowledge of complete Bitcoin state
SScalable fast transactions settling on Bitcoin

Why Build on Bitcoin?

Bitcoin is the most secure and durable blockchain, designed for stability and minimal change. Stacks adds functionality without altering Bitcoin's base layer. Thousands of Stacks transactions settle as single Bitcoin transactions, while microblocks enable rapid confirmations. The Nakamoto release proposes fast transactions between Bitcoin blocks (SIP-21), with additional scaling through subnets and appchains.

Making Bitcoin Productive

sBTC Peg: A trust-minimized Bitcoin peg operated by economically incentivized actors. Learn more about sBTC.

Atomic Swaps: Trustless BTC deployment into DeFi and NFT marketplaces:

Explore applications: Stacks Ecosystem

STX Token Utility

The STX token powers the Stacks ecosystem:

  • Mining incentives and block subsidies
  • sBTC peg-out signing rewards
  • Gas fees for smart contract execution
  • Stacking rewards (lock STX to earn Bitcoin)

STX was distributed through the first SEC-qualified token offering in U.S. history. The project decentralized before its January 2021 mainnet launch, with 30+ independent companies now active in the ecosystem.

Learn about earning Bitcoin: Stacking.club

Clarity: Safe Smart Contracts

Clarity prioritizes safety through its unique design:

  • Decidable: Code behavior is predictable and verifiable
  • Interpreted: Not compiled, reducing attack vectors
  • Public source: All code published on-chain (example)

Resources:

Proof-of-Transfer (PoX) Consensus

PoX consensus bridges Bitcoin and Stacks without burning electricity. Miners bid using BTC for block leadership, with elections occurring on Bitcoin and blocks written on Stacks. This recycles proof-of-work energy to provide Nakamoto-style consensus.

Detailed PoX Explanation

Developer Resources

Getting Started:

Additional Resources:

How to Contribute

Community Channels

About

Overview of Bitcoin's Stacks layer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published