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.12.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.12.1-cp38-abi3-win_amd64.whl (375.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.12.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.12.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.12.1-cp38-abi3-macosx_13_0_x86_64.whl (428.8 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.12.1-cp38-abi3-macosx_13_0_arm64.whl (398.8 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.12.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.12.1.tar.gz
Algorithm Hash digest
SHA256 faaac3d4116e71ac92749b5cfd685e658cf3be6dae090b95e5c0d1bbb4466e17
MD5 4cc979f277cd8ded7c83f0e1170febea
BLAKE2b-256 8464b8b5826a856bbf98f15a00326836a68893da7caaa31e3f245788d5eff50a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: klvm_rs-0.12.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 375.1 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.12.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 30505e22b869d34a2b526aff31dacb19847843e37e6ecb392d8fc7a4cfa37a73
MD5 51f43518d9ab502fef9a4a1afec117ea
BLAKE2b-256 f5509849115b3757c155dd302089ac1a91634ef1d8f22c5e00adadb628e6ddde

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.12.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1c3fd6fce7b6ff15555b681bbc67cb38177b280517ee514fee500e7ca0cd181b
MD5 217a6b64646500c3c8144e901be93ce2
BLAKE2b-256 c64d200986f707e0492105ace2d5cd17d63ea439900003fd8a62a67e42f359b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.12.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a43ce9a01c304303b9965dd9fa1c6145bdefa74f68c5dc116a9fe696c3807db7
MD5 3e502f4813cdc0301313204072c86f47
BLAKE2b-256 72441174ae870f51894b9ffd3f270325ad02650e4e1a8365863de3543939826b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.12.1-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 04ce62ea1b893d8365d03dfec4fc952c3f158e8a77cf5940505ec8835cc158e2
MD5 57cb455a66a6ddbda2d17c19362f3dae
BLAKE2b-256 26ecd7aa5698f72b747408189e43965a4aa2c55196952d1fd1c7d4d337f556ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.12.1-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5e143aee2f522a368f8a07d8ad05ee87187cf8d23cc8f0cf5ddc14eb751d49bf
MD5 1b3b06c07caef5ce03e5aeade4425d4a
BLAKE2b-256 0f872428479b0fbcd8ac8d06769da262b769d63d581c8133f1924c7414d1c981

See more details on using hashes here.

Provenance

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