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.0.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.0-cp38-abi3-win_amd64.whl (389.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

clvm_rs-0.17.0-cp38-abi3-manylinux_2_28_x86_64.whl (1.9 MB view details)

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

clvm_rs-0.17.0-cp38-abi3-manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

clvm_rs-0.17.0-cp38-abi3-macosx_13_0_x86_64.whl (446.5 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

clvm_rs-0.17.0-cp38-abi3-macosx_13_0_arm64.whl (421.1 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: clvm_rs-0.17.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c89285119a0d664ad7108b8bbc1d41e5c458e4fb5ca02bccad3753684db93591
MD5 55f90a0e4cdac5c2c6f0aff38511e275
BLAKE2b-256 50d2db97034b24ea1fba4a621e28e09bb6cf10c8fe121e5e8cdc813175e7adda

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0.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.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: clvm_rs-0.17.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 389.7 kB
  • Tags: CPython 3.8+, 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.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9e433835715ee03a2a5988bf444fd1b54ef6092d2173024968cda921a3b21fd4
MD5 a62bb6ea4b09f0f9e7dd3ea5ecef954a
BLAKE2b-256 70c71dc96a65650f13e4412b9abe6b09c9ab538d15f2b41e4a0ae1431ea7cc6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0-cp38-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.0-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26d8902020c01959cfb229097511a8b11f871e91e7a94ef7dfe2c016636cd66e
MD5 3786d00145eca8d7ea9e304205c85f9e
BLAKE2b-256 d1ec80d269a9427bb11ef419a39bcafca401eaef402fddc28348ddb1a452de64

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0-cp38-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.0-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d69aa9faebb04ce760ec1ca48677603bc6c099208ea8bd245dc81a14a1c50e5
MD5 c365b93717d250d892640eca1e202cc7
BLAKE2b-256 4138d4f7718586094bce0f28b75358bdea1671422cd3fc2621be87675a2e5797

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0-cp38-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.0-cp38-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.0-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 79834f363bc3e30be59212f72f3c2d5d34de37691872d222a31ad87d22e4d844
MD5 fba3673da4ccb44e0e843307dbc47fb1
BLAKE2b-256 964b06fc1e6547f23b28451d048f03b4eacc2bb6a72bf81c8b66ec067bb5f9bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0-cp38-abi3-macosx_13_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.0-cp38-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for clvm_rs-0.17.0-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d9f7f7a07445df88f62e3190d74ccdbf78f02f035801a488641d8287cf211bcb
MD5 26aeb6fafbb0db7d34543f5b8e73b8ab
BLAKE2b-256 d30d44cbd42cc2df6aac79a3fd17c571301e5bdefcd7541eedb7d3b686b0a216

See more details on using hashes here.

Provenance

The following attestation bundles were made for clvm_rs-0.17.0-cp38-abi3-macosx_13_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