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.16.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.16.0-cp38-abi3-win_amd64.whl (368.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.16.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.16.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.16.0-cp38-abi3-macosx_13_0_x86_64.whl (420.1 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.16.0-cp38-abi3-macosx_13_0_arm64.whl (390.8 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.16.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.16.0.tar.gz
Algorithm Hash digest
SHA256 1d95057cdc15dc514f1bfce7d09335329a19d0756209ffc8bebca7815d0c4990
MD5 183943e8a69827ec0f9a9ecb7e9d9c2e
BLAKE2b-256 3fbe14f13889db727d74be6a4fa154a253db92a053d25be3e53e45397964983e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: klvm_rs-0.16.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 368.7 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.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9253a1d1947afd79ab6e3a5e707be1965434efb1afd66bcd257eec452b1c5e5f
MD5 3ccec2d0c9464dccf1ad106b82889c08
BLAKE2b-256 ab5ac25229df4bff193380d54761cc3d440b98a722ae3b7a2f3409a5b9ecbf28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.16.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6797413c431e55c366aabf0175e15b24b34e64f84a6b62a7f50e0b48aa3a5b1
MD5 4e27e8f1666ec1e1859499512fb0c4e9
BLAKE2b-256 f58d40159ea0de90ceb3facf87729502563d74da80717f2757dd1d67b53d7bdd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.16.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a2a16378ecd5120a77db2a93d43411cdbca12b327c74d6f362e6772bd4ce0d2
MD5 3ebec75022ddf4983931414fb476e481
BLAKE2b-256 7daa3232fbcee2ef10a1f76c9513fcb94759a9ecc0da6e2a156df42b99af38e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.16.0-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5521a872902e573e20c3ca577ed8bd68dc2aed0d5393e81806e1366496f67393
MD5 625f1bdf3ad9aaceb38d9fd021df2357
BLAKE2b-256 d0d4909300e25b6cac1d23fa4cee3d71265e99a4b1c2da5b1f943b378dd84bce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.16.0-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3d2629e74969f29b82571136ca152faa7e8ec8d8e95e0fb01043ff27ddc8055f
MD5 8fc6c33b25769c3e562d211c9ad31e97
BLAKE2b-256 25038aa16ef567657a8a497f48f2402340c7417835b38d1ebd9e99b88f45b426

See more details on using hashes here.

Provenance

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