Skip to main content

Implementation of `clvm` for Chia Network's cryptocurrency

Project description

Rust implementation of clvm.

GitHub Coverage Status Build Crate Build Wheels

PyPI Crates.io

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

Bumping Version Number

Make sure you have cargo-workspaces installed:

cargo install cargo-workspaces

To bump the versions of all relevant crates:

cargo ws version --force "**" --all --no-git-commit

Select "minor update" if there has not been any incompatible API changes, otherwise "major update".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clvm_rs-0.17.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

clvm_rs-0.17.3-cp310-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

clvm_rs-0.17.3-cp310-abi3-macosx_15_0_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10+macOS 15.0+ x86-64

clvm_rs-0.17.3-cp310-abi3-macosx_15_0_arm64.whl (843.5 kB view details)

Uploaded CPython 3.10+macOS 15.0+ ARM64

File details

Details for the file clvm_rs-0.17.3.tar.gz.

File metadata

  • Download URL: clvm_rs-0.17.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clvm_rs-0.17.3.tar.gz
Algorithm Hash digest
SHA256 2a783494b5c9aea5f3ec54c538a66e1c90a9e1944bb41bec566275b8682dfd26
MD5 21b56700828ace7f5781555f81bafa57
BLAKE2b-256 48aaf789e1f12c3d7c09c9ed54da74a626580e4e44dc6adb007972e40d497f0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3.tar.gz:

Publisher: build-test.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clvm_rs-0.17.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: clvm_rs-0.17.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clvm_rs-0.17.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4c0ffa8fdabd9a475839483601cd39dec46cdaca26c342fac84f78dddc440c96
MD5 d7fa631e2a20fd02c9d8f09133fef501
BLAKE2b-256 3d5d66ab665db73a19d5ba249fd7d575afd22856f1b3c72c8864d9f6381d2655

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3-cp310-abi3-win_amd64.whl:

Publisher: build-test.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3774b060ccae83b1efe200fbc4e08def2283b19cdbef7a1aa469222bb4c9d8f0
MD5 f90ed45112c544440ef98d9721fa3679
BLAKE2b-256 fa96806881d9bdc5bc1018229dbfdf864e8c415d5b54006ddf0aed011e050b7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: build-test.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85520d0a8c73592fa2eeb1bfaaa342e85f52b667d26750ce458b43d06d938b56
MD5 8751dbbcb4868f5ffaafb620871f6694
BLAKE2b-256 141cbf47c90b0d23e3ca38806eb5b87fa0cea51b446987204b9a0dc6a606c304

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: build-arm64-wheels.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clvm_rs-0.17.3-cp310-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.3-cp310-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 6cca7ff04ae9da61efc0e32908645dde6852d4bb703980fb52131a2a472d7408
MD5 d5c2cd3e71abcf84594ea65bb8df8ec1
BLAKE2b-256 6344e4c42f05ecb95e55e8a076f14d456b0a583cbedf2832e01b0fb98e9becb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3-cp310-abi3-macosx_15_0_x86_64.whl:

Publisher: build-test.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clvm_rs-0.17.3-cp310-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.3-cp310-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 81236bb71eacc3b04bbe84f8bf3a8e3ab5ec5b70cfe48e8957434cab26fbc2ad
MD5 21717a86bb8b61b7b85196e3fb58ea66
BLAKE2b-256 6b80b47ceb03c96ed6d328d35b27a8c8b38702ae679d710785e15e685dda893d

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.3-cp310-abi3-macosx_15_0_arm64.whl:

Publisher: build-m1-wheel.yml on Chia-Network/clvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page