Implementation of `clvm` for Chia Network's cryptocurrency
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for clvm_rs-0.9.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20879bbd05dfc4bf21b82dceede6e4f631c400a79c163155d7127e69d3e81b2 |
|
MD5 | 27b90329eff71cf41f9f948b53fea74d |
|
BLAKE2b-256 | 9363b3f9de7d6afb4d009d4cfbc5336acc6a4f6ffc84f131e3ed5c87c3c921f2 |
Hashes for clvm_rs-0.9.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0384ae6b86494465df41fa2b98aeca0323064feb4ca5a3b1af02ffff181d08ed |
|
MD5 | f98ba6fd7c5979607d2893f24694c939 |
|
BLAKE2b-256 | c794a8709766f00e251c395d7004082462dcbfcb894cb6676e7afb1ffc421793 |
Hashes for clvm_rs-0.9.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa32fd4eca917658f87ed2b40692ec588e6414234a96d3259dfbfcdb76769a87 |
|
MD5 | 27536e53a907b3e755e1d4528d2fe8e4 |
|
BLAKE2b-256 | 7d51b36a72181801772f580fcf723c20f61ba297dd4bfbb9b4ceb9cfdb6f5b7f |
Hashes for clvm_rs-0.9.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da7a3aada2c3f98c3bff583202ec68d31ca4e2727423b129eb7f7f97d55f168 |
|
MD5 | 2c6171c4b82017c74ad75c428b5734df |
|
BLAKE2b-256 | 20329857e3fc24e79f870c08721e44445e4a92dd80a738fb67f086e6374837c5 |
Hashes for clvm_rs-0.9.0-cp38-abi3-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31494c5ae32a00f5d08e6bf90ae54058b599544d877011b1b5778262f4bfd17f |
|
MD5 | 836e02e51be90cee68da357247f327b6 |
|
BLAKE2b-256 | 70f408723d3aad3502079ccc698ef23690466208f36c4ae15708367fe9e07f35 |