zero 2094274851 add a Blind type to the SDK, which is used in all bullas as the explicit blinding factor. před 2 roky
..
src 2094274851 add a Blind type to the SDK, which is used in all bullas as the explicit blinding factor. před 2 roky
.gitignore 4824c84cb5 sdk-py: Minor cleanups před 3 roky
Cargo.toml dedc29430e chore: Update crate dependencies před 2 roky
Makefile bda805e5ff sdk/python: Remove obsolete message in Makefile. před 3 roky
README.md 988455f79b sdk/python: Perform full code cleanup and make everything work. před 3 roky
pyproject.toml 988455f79b sdk/python: Perform full code cleanup and make everything work. před 3 roky

README.md

darkfi-sdk-py

Python bindings for some parts of the darkfi-sdk and the zkvm.

Build and install

  1. Install maturin via your package manager or from source.
  2. Run make to build the wheel
  3. (Optional) Run pip install --user
  4. Development

    For a development version you can use a venv:

    $ python3 -m venv venv
    $ source venv/bin/activate
    (venv) $ make dev
    

    Usage

    $ python
    >>> import darkfi_sdk
    >>> from darkfi_sdk.pasta import Fp
    >>> a = Fp.from_u64(42)
    >>> b = Fp.from_u64(69)
    >>> a + b == Fp.from_u64(111)
    

    Randomness

    Note that the random methods take randomness from the OS on the Rust side.