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

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

klvm_rs-0.14.0-cp38-abi3-win_amd64.whl (375.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.14.0-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.14.0-cp38-abi3-manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

klvm_rs-0.14.0-cp38-abi3-macosx_13_0_x86_64.whl (425.5 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.14.0-cp38-abi3-macosx_13_0_arm64.whl (396.2 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.14.0.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.14.0.tar.gz
Algorithm Hash digest
SHA256 e4bd524ca923354bfcd2aaf034939c0070c5616f06257f642bd3b7a1528d0c9a
MD5 f1d108c147cebce5c5adb599c634d8ba
BLAKE2b-256 50e0693fec6debb5e8955363950886daa421ec774ab121bb6be8028729c20ed7

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.14.0.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.14.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: klvm_rs-0.14.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 375.4 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.14.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bce808adb2eb8bcf167cac32505e78b2b6699a23354f318efe3e53333e9e8e17
MD5 ddcc4e28232a54a2ea74c994b8d12f2a
BLAKE2b-256 c0bab5f1bfd2a743cc5a707ec22e43752e3c941450ae7054b9a061f110835520

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.14.0-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.14.0-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.14.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 577d783c67408b14f99df863ae85c3865ab567f145a62089f7bb7b866dcdc84e
MD5 ed323a15f25de9d0270b2987e151a53d
BLAKE2b-256 d9324b3b8e808adf090eb1e191dc93956da0e368ca3428d95ef7fb43f9a792d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.14.0-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.14.0-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.14.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4d3ea4777ba10d2859a8ef80f3f8834acdf3b87555ef5d0dbd3eb9e87bd5de74
MD5 046d9fe041971db59941080173af65e9
BLAKE2b-256 ff5c33e01c7d4d9a9eacf90f031440159a4334fa9d9ad099d8c0b7289a1824c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.14.0-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9fae5f820aa98d14afef0cfa548893d49f108e816f1a5feb13d2158d781f219b
MD5 607a3c057effee0dd76179d4162a11f7
BLAKE2b-256 d11a9faf27d14e2fc48a5d4c999593c5788c3ce9fc95a5569d4125077e916d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.14.0-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.14.0-cp38-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.14.0-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3f74ab351b7f5c78cb693492c7c64f09660735dfc748d3b1b6c5bb89cae9167e
MD5 ad90a57b9a70fc20974439eb33a0cc96
BLAKE2b-256 9c371d87c6ccee496a8d17a11e2dd7aca833fe3f95ea57a07b08ffbee401a0d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.14.0-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