MyGit

stacks-network/stacks-core

Fork: 667 Star: 3009 (更新于 2024-11-02 21:39:22)

license: GPL-3.0

Language: Rust .

The Stacks blockchain implementation

最后发布版本: 2.5.0.0.7 ( 2024-09-05 02:45:43)

官方网址 GitHub网址

Stacks

Stacks Blockchain

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.

License: GPL v3 Release 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-core.git
cd stacks-core

3. Build the project

# 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"]

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 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.

最近版本更新:(数据更新于 2024-09-09 08:26:55)

2024-09-05 02:45:43 2.5.0.0.7

2024-08-28 02:59:26 signer-2.5.0.0.5.2

2024-08-22 23:41:23 signer-2.5.0.0.5.2-rc2

2024-08-15 01:43:19 2.5.0.0.6

2024-08-09 22:24:18 signer-2.5.0.0.5.2-rc1

2024-07-24 23:09:00 signer-2.5.0.0.5.1

2024-07-03 00:45:15 2.5.0.0.5

2024-06-26 06:05:36 2.5.0.0.4

2024-04-22 03:06:04 2.5.0.0.3

2024-04-16 03:47:34 2.5.0.0.0-rc5

主题(topics):

bitcoin, crypto, decentralized, layer2, stacks

stacks-network/stacks-core同语言 Rust最近更新仓库

2024-11-05 08:48:52 lapce/lapce

2024-11-01 09:38:24 dashpay/platform

2024-11-01 02:26:55 mediar-ai/screenpipe

2024-10-30 06:09:45 electric-capital/crypto-ecosystems

2024-10-29 10:21:58 rustdesk/rustdesk

2024-10-27 15:42:03 jtroo/kanata