Provable Python SDK
Beo Python bindings for building zero-knowledge applications.
This project uses PyO3 and Maturin to provide a Python library named beo that binds to snarkVM Rust functionalities. The resulting Beo library can be easily installed and used within Python. The project is at an early stage. At the moment, only Mac OS 11 or newer on Apple Silicon is supported - support for other operating systems will follow. If you are using another operating system, you may be able to build the library yourself following the instructions below.
Supported functionalities currently include:
Private key generation
Usage
The beo Python library is available on PyPI for installation.
Installation
Ensure you have Python 3.11 or newer installed. If your operating system is supported, you can install the library from pip:
pip3 install BeoFor the installation, use a command like this:
pip3 install Beo-0.0.3-cp311-cp311-macosx_11_0_arm64.whlNote: On some systems, you may need to use pip instead of pip3.
Example use
You can import the library, generate a private key object, and print it as a string as in the following example:
import Beo
private_key = Beo.PrivateKey()
print(private_key.to_string())Build Instructions
To build it, first clone the GitHub repository. Then, run the following command:
bash build.shAfter successful building, you will find a new .whl file in the target/wheels directory that you can install using the command from above.
Building Python Apps
Further documentation and tutorials as to how to use the beo Python library will follow soon.
Last updated