AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
The Stacks blockchain implementation
翻譯準備中
開發工具Rust · TypeScriptGitHub @stacks-network自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Reference implementation of the Stacks blockchain in Rust.
Stacks is a layer-2 blockchain that uses Bitcoin as a base layer 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.
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
main branch, ensure you are using the latest stable release:rustup update
git clone --depth=1 https://github.com/stacks-network/stacks-core.git
cd stacks-core
# Fully optimized release build
cargo build --release
# Faster but less optimized build. Necessary if < 16 GB RAM
cargo build --profile release-lite
Note on building: you may set RUSTFLAGS to build binaries for your native cpu:
RUSTFLAGS="-Ctarget-cpu=native"
or uncomment these lines in ./cargo/config.toml:
# [build]
# rustflags = ["-Ctarget-cpu=native"]
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
On Windows, many tests will fail, mainly due to parallelism. To mitigate the issue you may need to run the tests individually.
You can observe the state machine in action locally by running:
cargo run --bin stacks-node -- start --config ./sample/conf/testnet-follower-conf.toml
Additional testnet documentation is available here and here
The release process for the stacks blockchain is defined here
You can learn more by visiting the Stacks Website and checking out the documentation:
You can also read the technical papers:
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.