27 releases (11 breaking)

0.12.0 Jan 9, 2025
0.10.0 Nov 7, 2024
0.8.0 Jul 15, 2024
0.6.1 Mar 12, 2024
0.1.20 Feb 1, 2022

#4 in #chia

Download history 2752/week @ 2024-10-28 1764/week @ 2024-11-04 2718/week @ 2024-11-11 1111/week @ 2024-11-18 1478/week @ 2024-11-25 1296/week @ 2024-12-02 2660/week @ 2024-12-09 1815/week @ 2024-12-16 599/week @ 2024-12-23 3227/week @ 2024-12-30 6593/week @ 2025-01-06 4687/week @ 2025-01-13 5472/week @ 2025-01-20 5219/week @ 2025-01-27 5531/week @ 2025-02-03 4201/week @ 2025-02-10

20,595 downloads per month
Used in 29 crates (25 directly)

Apache-2.0

1MB
8K SLoC

Rust implementation of clvm.

The cargo workspace includes an rlib crate, for use with rust or other applications, and a python wheel.

The python wheel is in wheel. The npm package is in wasm.

Tests

In order to run the unit tests, run:

cargo test

Fuzzing

The fuzzing infrastructure for clvm_rs uses cargo-fuzz.

Documentation for setting up fuzzing in rust can be found here.

To generate an initial corpus (for the run_program fuzzer), run:

cd tools
cargo run generate-fuzz-corpus

To get started, run:

cargo fuzz run fuzz_run_program --jobs=32 -- -rss_limit_mb=4096

But with whatever number of jobs works best for you.

If you find issues in clvm_rs please use our bug bounty program.

Build Wheel

The clvm_rs wheel has python bindings for the rust implementation of clvm.

Use maturin to build the python interface. First, install into current virtualenv with

$ pip install maturin

While in the wheel directory, build clvm_rs into the current virtualenv with

$ maturin develop --release

On UNIX-based platforms, you may get a speed boost on sha256 operations by building with OpenSSL.

$ maturin develop --release --features=openssl

To build the wheel, do

$ maturin build --release

or

$ maturin build --release --features=openssl

Dependencies

~12MB
~299K SLoC