Stacks Blockchain

The Stacks blockchain implementation
Alternatives To Stacks Blockchain
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Bitcoinbook21,393
16 days ago125otherAsciiDoc
Mastering Bitcoin 2nd Edition - Programming the Open Blockchain
Solana10,3492448 hours ago188September 20, 2022812apache-2.0Rust
Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
Blockchain7,237
5 months ago115mitC#
A simple Blockchain in Python
Lbry Sdk7,172
2 months ago390mitPython
The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
Lnd6,94814808 hours ago39November 24, 2021644mitGo
Lightning Network Daemon ⚡️
Blockchain_guide6,153
a year ago7December 02, 20212Go
Introduce blockchain related technologies, from theory to practice with bitcoin, ethereum and hyperledger.
Blockchain5,661
a year ago11mit
区块链 - 中文资源
Gittorrent4,60723 years ago10August 28, 201545mitJavaScript
A decentralization of GitHub using BitTorrent and Bitcoin
Bitcoinj4,583439432 days ago34November 17, 2021448apache-2.0Java
A library for working with Bitcoin
Bitcore4,5811,1734592 days ago90September 14, 2022383mitJavaScript
A full stack for bitcoin and blockchain-based applications
Alternatives To Stacks Blockchain
Select To Compare


Alternative Project Comparisons
Readme

Stacks

Stacks Blockchain

Reference implementation of the Stacks blockchain in Rust.

Stacks is a layer-1 blockchain that connects to Bitcoin for security and enables decentralized apps and predictable smart contracts using the Clarity language. Stacks implements Proof of Transfer (PoX) mining that anchors to Bitcoin security. Leader election happens at the Bitcoin blockchain and Stacks (STX) miners write new blocks on the separate Stacks blockchain. With PoX there is no need to modify Bitcoin to enable smart contracts and decentralized apps.

License: GPL v3 Release Build Status Discord Chat

Building

1. Download and install Rust

For building on Windows, follow the rustup installer instructions at https://rustup.rs/.

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt
  • When building the master branch, ensure you are using the latest stable release:
$ rustup update

2. Clone the source repository:

$ git clone --depth=1 https://github.com/stacks-network/stacks-blockchain.git
$ cd stacks-blockchain

3. Build the project

$ cargo build

Testing

Run the tests:

$ cargo test testnet  -- --test-threads=1

Run all unit tests in parallel using nextest:

Warning, this typically takes a few minutes

$ cargo nextest run

Run the testnet

You can observe the state machine in action locally by running:

$ cd testnet/stacks-node
$ cargo run --bin stacks-node -- start --config=./conf/testnet-follower-conf.toml

On Windows, many tests will fail if the line endings aren't LF. Please ensure that you are have git's core.autocrlf set to input when you clone the repository to avoid any potential issues. This is due to the Clarity language currently being sensitive to line endings.

Additional testnet documentation is available here and here

Release Process

The release process for the stacks blockchain is defined here

Further Reading

You can learn more by visiting the Stacks Website and checking out the documentation:

You can also read the technical papers:

Copyright and License

The code and documentation copyright are attributed to stacks.org.

This code is released under the GPL v3 license, and the docs are released under the Creative Commons license.

Popular Blockchain Projects
Popular Bitcoin Projects
Popular Blockchain Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Rust
Blockchain
Bitcoin
Serverless
Dns
Identity