chiapos is the official Python wrapper for the Chia Network's proof-of-space (PoS) C++ library. It provides core functionalities for creating plot files and verifying proofs of space, serving as a foundational component for the Chia blockchain. Currently at version 2.0.12, the library typically sees regular minor updates, often aligning with the broader Chia blockchain development cycle, focusing on performance, security, and bug fixes.
pip install chiaposVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `Verifier` class and call its `validate_proof` method using placeholder data. Note that actual plotting and proof generation are resource-intensive operations and are not included in this simple example. The `DiskProver` class is used to interact with existing plot files for generating proofs.
Ensure you have C++ development tools (e.g., build-essential on Debian/Ubuntu, Xcode Command Line Tools on macOS, Visual Studio Build Tools on Windows) and CMake installed before attempting to `pip install chiapos` if wheels are unavailable.
Consult the official Chia Network documentation for recommended hardware specifications for plotting. Start with small `k_size` values for testing on limited hardware.
Review the latest official `chiapos` examples and the `chia-blockchain` repository's usage of `chiapos` for any potential API changes if upgrading from a 1.x version. Update your code to match the current 2.x API.
Run `pip install chiapos` to install the library.
Ensure the K-size is a valid integer (e.g., 32) as required by the specific chiapos function or Chia protocol version. Check function documentation for allowed ranges.
Check the function signature and provide all necessary positional and keyword arguments. Refer to the library's `*.pyi` stubs or the `chia-blockchain` source for correct usage.
Ensure the user running the Python script has appropriate read/write permissions for the target plotting directory or the existing plot file location. Use `chmod` or adjust directory permissions.
Install C++ development tools (e.g., `sudo apt-get install build-essential cmake` on Linux, Xcode Command Line Tools on macOS, Visual Studio Build Tools on Windows) and then retry `pip install chiapos`.
No dependency data recorded yet.