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.4.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.4-cp310-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

clvm_rs-0.17.4-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.4-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.4-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.4-cp310-abi3-macosx_15_0_arm64.whl (844.0 kB view details)

Uploaded CPython 3.10+macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: clvm_rs-0.17.4.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.4.tar.gz
Algorithm Hash digest
SHA256 b4902d3c69dcf1d78bf4a742e36d5507247389e24828600a784b8496d175ed4f
MD5 87f63b81134b633c6d074a58e4daa41a
BLAKE2b-256 4b086cea6cb4b2f0da622936b5b07283f3b2b864c43b01435d85a2ef428166d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4.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.4-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: clvm_rs-0.17.4-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.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a5f6ab4213055ac6065c7ce2f061a099b8dc8501ac02a38c4691d86ce16901fc
MD5 3f8e9bb56d70a5fd1f77895e6e7f4816
BLAKE2b-256 8907e3a460283f8b7b24ddf17b73f4e470d5b037fb63f1a63c4b84d927f7386c

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4-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.4-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.4-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79522d395efddc5d1626e245637f1a5ad3588a1dbd3badf06863798d870dbd92
MD5 a745a689cf7323f9e09503e04cca15a0
BLAKE2b-256 ff217338b2d6a6a649b484744b5a26dc2aa11e252bc3c068e08646f8e127a2ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4-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.4-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.4-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6d7dfbc5373668d22fd53abdb4713a2c26bbb1270c62e374fcda786b4cb3cd11
MD5 b404b09bf81f161f25701cafbd846325
BLAKE2b-256 fc1c3ff1f76242f0d52f467b14b092a93c4017392bab003efe3834f80be16bb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4-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.4-cp310-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.4-cp310-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 4c70c9b2584726242932c8c94db597d690efb4128451b68567affca2ffbed3d8
MD5 bba848a76cf45679a1ca2c4126bf308c
BLAKE2b-256 eced89df860f62b33ba9dfc93978c4fb5f41d253d6885c859815c371d96a50ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4-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.4-cp310-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.4-cp310-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 717dea7cf65e0a000931e066769e0cb03bbb80180e4bdd6f0eb7a91315d50a04
MD5 e779d605f8fc109d7a5ac8f86d8e4301
BLAKE2b-256 2b9c0840c19e04a64ee0893d8485d47b19b6281e2535446ab4631e751e4ec4ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.4-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