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.15.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.15.0-cp38-abi3-win_amd64.whl (373.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.15.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.15.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.15.0-cp38-abi3-macosx_13_0_x86_64.whl (424.6 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.15.0-cp38-abi3-macosx_13_0_arm64.whl (394.1 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.15.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.15.0.tar.gz
Algorithm Hash digest
SHA256 93c602c0775b78076ab4f79cd81314412b66931d9c16e53712f6b76c2614163c
MD5 c8d52a313d99743646b4083fe6b3e736
BLAKE2b-256 731ae75bf2dee701d5278bc578cf209e59a21a09ed59ebb625f666f3d43a2e02

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: klvm_rs-0.15.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 373.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.15.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 332f065963963fa1e9774e6bba9b3134c9662eaa2de37acfb179af1833fbb2e5
MD5 ddb9a4333abca1dc10b46c09f7220ed8
BLAKE2b-256 55f516ba607bcebd0bc033c6c22af054a0f125acaef341f4904ed41e706261f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.15.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50a6411ff6e6a1c96a9275e628c684b3eae8e1bcce039e9fb6735979509ad9c8
MD5 9c4488f7480d253681c5dff1dfe8489f
BLAKE2b-256 d5c3738667b42e86f90920cc2344aa05b630ab81f8c1133c0dc09cbe4fdb982c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.15.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 89ee15b082feb1f10b8412132f48378dbfa6c6909f3c3cce19472bbfcf36e979
MD5 f91a752f4ef2a6c4842383d741691fae
BLAKE2b-256 eb00c174bc2a20e623ad02f2a2ffa7abc47bad43e76517f25d2fbaa7ecdee0bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.15.0-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2ec03f062e8cdd691d95b080369a396f7cc8ae1ce233b69c13f6c15ddd276fdc
MD5 ff3b47c882f5b1639c9039403ad63361
BLAKE2b-256 a8fe5c9f9e7a6eee43786d3f708f5478abb2770d2a34b801527109c47cec7dce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.15.0-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9abdb7f02ed2d3a69ba55b16cceb6dc94980445ebfbdb9fa6f58cf9bc327aecc
MD5 ecf024ae5eb88613672c088c19f65747
BLAKE2b-256 fe28ea1742b9bc1cb0dc2194cf35756f6e5c923d4a67fa6bb142715097af6c03

See more details on using hashes here.

Provenance

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