|
|
2 лет назад | |
|---|---|---|
| .. | ||
| src | 3 лет назад | |
| .gitignore | 3 лет назад | |
| Cargo.toml | 2 лет назад | |
| Makefile | 3 лет назад | |
| README.md | 3 лет назад | |
| pyproject.toml | 3 лет назад | |
Python bindings for some parts of the darkfi-sdk and the zkvm.
maturin via your package manager or from source.make to build the wheelFor a development version you can use a venv:
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ make dev
$ 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)
Note that the random methods take randomness
from the OS on the Rust side.