9 releases (breaking)

new 0.18.3 Dec 18, 2024
0.18.2 Dec 17, 2024
0.17.0 Dec 14, 2024
0.15.0 Oct 11, 2024
0.8.0 May 14, 2024

#351 in Concurrency

Download history 350/week @ 2024-08-30 75/week @ 2024-09-06 61/week @ 2024-09-13 259/week @ 2024-09-20 73/week @ 2024-09-27 151/week @ 2024-10-04 360/week @ 2024-10-11 415/week @ 2024-10-18 196/week @ 2024-10-25 533/week @ 2024-11-01 473/week @ 2024-11-08 260/week @ 2024-11-15 121/week @ 2024-11-22 99/week @ 2024-11-29 95/week @ 2024-12-06 562/week @ 2024-12-13

920 downloads per month
Used in 13 crates (10 directly)

Apache-2.0

345KB
832 lines

Chia Puzzles

This is a collection of the standard Chia puzzles. These are the puzzles which are deployed on chain and therefore cannot change.

This repository tracks the source code, the compiled hex, and a hash of the compiled hex to ensure continuity.

All puzzles are kept in the puzzles folder as both a .clsp and .clsp.hex file.

The Python and Rust bindings are created by running generate_chialisp_constants.py

Adding Bindings for a New Puzzle

  1. Add the .clsp and .clsp.hex files into the programs folder.
  2. Add the puzzle name, path, and shatree hash into the list in generate_chialisp_constants.py.
  3. Run generate_chialisp_constants.py.
  4. Commit your changes, including to the outputted programs.py and programs.rs.

Testing

This project is managed with poetry for Python and cargo for Rust.

To run the Python tests:

python -m venv venv

pip install poetry
. ./venv/bin/activate
poetry install
pytest chia_puzzles_py/tests

If you're on Windows activate the venv with . venv\Scripts\activate instead

To run the Rust tests:

cargo test --all

Dependencies