{"id":26830,"library":"chialisp-puzzles","title":"ChiaLisp Puzzles","description":"A collection of canonical puzzles (smart contracts) for the Chia blockchain, written in ChiaLisp. Version 0.1.1 is the latest. Release cadence is low; primarily updated alongside Chia protocol changes.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/Chia-Network/chialisp-puzzles","tags":["chia","blockchain","smart-contracts","chialisp","cryptocurrency"],"install":[{"cmd":"pip install chialisp-puzzles","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"load_puzzle","correct":"from chialisp_puzzles import load_puzzle"},{"note":"","symbol":"puzzle_to_curried_mod","correct":"from chialisp_puzzles.puzzles import puzzle_to_curried_mod"}],"quickstart":{"code":"from chialisp_puzzles import load_puzzle\n\n# Load the standard pay-to-puzzle-hash puzzle\npuzzle = load_puzzle('p2_puzzle_hash')\nprint(puzzle)\n","lang":"python","description":"Load a canonical puzzle by name."},"warnings":[{"fix":"Use `pip install chialisp-puzzles` and then `import chialisp_puzzles`.","message":"The package uses underscores in import paths (chialisp_puzzles) but the PyPI name uses hyphens (chialisp-puzzles). This mismatch can cause confusion.","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to the official Chia documentation for the latest puzzle set.","message":"Some puzzles may be deprecated as the Chia protocol evolves. Always check the puzzle version against your Chia node version.","severity":"deprecated","affected_versions":"0.1.x"},{"fix":"Use `list_puzzles()` to enumerate available puzzles at runtime.","message":"Puzzle names may change between releases. Hardcoding puzzle names can break after updates.","severity":"gotcha","affected_versions":"0.1.x"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from chialisp_puzzles import ...` (note underscores).","cause":"Package installed via pip with hyphens but imported with underscores - correct import path is with underscores.","error":"ModuleNotFoundError: No module named 'chialisp_puzzles'"},{"fix":"Use `from chialisp_puzzles import load_puzzle` (available from 0.1.0+).","cause":"The `load_puzzle` function may not be directly exposed in the top-level module in older versions.","error":"AttributeError: module 'chialisp_puzzles' has no attribute 'load_puzzle'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}