Skip to main content

Implementation of `klvm` for Chik Network's cryptocurrency

Project description

Rust implementation of klvm.

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 klvm_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 klvm_rs please use our bug bounty program.

Build Wheel

The klvm_rs wheel has python bindings for the rust implementation of klvm.

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

$ pip install maturin

While in the wheel directory, build klvm_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

klvm_rs-0.16.1.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.

klvm_rs-0.16.1-cp38-abi3-win_amd64.whl (364.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_x86_64.whl (1.9 MB view details)

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

klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

klvm_rs-0.16.1-cp38-abi3-macosx_13_0_x86_64.whl (417.5 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.16.1-cp38-abi3-macosx_13_0_arm64.whl (387.5 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

Details for the file klvm_rs-0.16.1.tar.gz.

File metadata

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

File hashes

Hashes for klvm_rs-0.16.1.tar.gz
Algorithm Hash digest
SHA256 94dc098c5c3795c8808f5456f3aaff83e2a1411a84efd094b84b5a772e130365
MD5 c4c2095d0c610fc3c2466d193ced5f28
BLAKE2b-256 fccd93d6f5102ac6f6c2f87ea757d1f240c99cfbbc0620423e8b7dc8ea9d6bd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.1.tar.gz:

Publisher: build-test.yml on Chik-Network/klvm_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 klvm_rs-0.16.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: klvm_rs-0.16.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 364.8 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for klvm_rs-0.16.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2c0d6477a97bc62495aaa89c1f422f19d067a72ee8b0465308fe5d948608949c
MD5 3dc227763eb6f23b09be66933502c95b
BLAKE2b-256 92eb5d067d4e3782e2dafb476beed76955467801010007ea72ade8722c33a701

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.1-cp38-abi3-win_amd64.whl:

Publisher: build-test.yml on Chik-Network/klvm_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 klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18ac09f89b3cf901ce1907ed100ddfbd0d5a8f1c0ad642f9e2931168e622693e
MD5 8cd1430c793fd6e432c972957f964a4f
BLAKE2b-256 6f61f2186290e0363983c6a77ffa255da8f7936cb34498b3e3c94f3d1c5d4585

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_x86_64.whl:

Publisher: build-test.yml on Chik-Network/klvm_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 klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3d8c75e08fc8a00fc61f88669c9adeae283ea3282eabfe9ad1c6289bedce29f9
MD5 63d84bee1f21c9e64bb4d556dcd99b92
BLAKE2b-256 b128cfab29743b9adc1a9f09be4dbfd564fb2bfb69e480403b811479129e77fc

See more details on using hashes here.

File details

Details for the file klvm_rs-0.16.1-cp38-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.1-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b75a4e22d4dfe769eaf66d12b122a76cd2845a1a13f4c2d8cc3819da603df64a
MD5 4d0be6c41704471a1b29e5aebbab4bad
BLAKE2b-256 561422cd8effffb58ac4d45ed525a63e9d0ced8ad336a371810ae678c3abf15e

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.1-cp38-abi3-macosx_13_0_x86_64.whl:

Publisher: build-test.yml on Chik-Network/klvm_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 klvm_rs-0.16.1-cp38-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.1-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b7754ba55708b9abc612d673663afe4ec5628b4e8b3d4724955c83eb87590a52
MD5 cfc9c634315287113ca565efa0a8d12d
BLAKE2b-256 a0fd86c6443356d572198120885184a405c03ae6380424cd26bcddb85889af84

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.1-cp38-abi3-macosx_13_0_arm64.whl:

Publisher: build-m1-wheel.yml on Chik-Network/klvm_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