chiapos-1.0.9
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5b0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.12b9
1.0.12b8
1.0.12b7
1.0.12b6
1.0.12b5
1.0.12b4
1.0.12b3
1.0.12b2
1.0.12b12
1.0.12b11
1.0.12b10
1.0.12b1
1.0.11
1.0.10
1.0.1
1.0.0
0.9
0.1b2
0.1b1
0.12.8
0.12.7
0.12.6.dev0
0.12.6
0.12.5
0.12.45
0.12.44
0.12.43
0.12.42b2
0.12.42b1
0.12.41
0.12.40
0.12.4
0.12.39
0.12.38
0.12.37
0.12.36
0.12.35
0.12.34
0.12.33
0.12.32
0.12.31
0.12.30
0.12.3
0.12.29
0.12.28
0.12.27
0.12.26
0.12.25
0.12.24
0.12.23
0.12.22
0.12.21
0.12.20
0.12.2
0.12.19
0.12.18
0.12.17
0.12.16
0.12.15
0.12.14
0.12.13
0.12.12
0.12.11
0.12.10
0.12.1
0.12
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5b0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.12b9
1.0.12b8
1.0.12b7
1.0.12b6
1.0.12b5
1.0.12b4
1.0.12b3
1.0.12b2
1.0.12b12
1.0.12b11
1.0.12b10
1.0.12b1
1.0.11
1.0.10
1.0.1
1.0.0
0.9
0.1b2
0.1b1
0.12.8
0.12.7
0.12.45
0.12.44
0.12.43
0.12.42b2
0.12.42b1
0.12.41
0.12.40
0.12.4
0.12.39
0.12.38
0.12.37
0.12.36
0.12.35
0.12.34
0.12.33
0.12.32
0.12.31
0.12.30
0.12.3
0.12.29
0.12.28
0.12.27
0.12.26
0.12.25
0.12.24
0.12.23
0.12.22
0.12.21
0.12.20
0.12.2
0.12.19
0.12.18
0.12.17
0.12.16
0.12.15
0.12.14
0.12.13
0.12.12
0.12.11
0.12.10
0.12.1
0.12
توضیحات
Chia proof of space plotting, proving, and verifying (wraps C++)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chiapos-1.0.9 |
| نام | chiapos |
| نسخه کتابخانه | 1.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mariano Sorgente |
| ایمیل نویسنده | mariano@chia.net |
| آدرس صفحه اصلی | https://github.com/Chia-Network/chiapos |
| آدرس اینترنتی | https://pypi.org/project/chiapos/ |
| مجوز | Apache License |
# Chia Proof of Space




[](https://lgtm.com/projects/g/Chia-Network/chiapos/alerts/)
[](https://lgtm.com/projects/g/Chia-Network/chiapos/context:python)
[](https://lgtm.com/projects/g/Chia-Network/chiapos/context:cpp)
Chia's proof of space is written in C++. Includes a plotter, prover, and
verifier. It exclusively runs on 64 bit architectures. Read the
[Proof of Space document](https://www.chia.net/assets/Chia_Proof_of_Space_Construction_v1.1.pdf) to
learn about what proof of space is and how it works.
## C++ Usage Instructions
### Compile
```bash
# Requires cmake 3.14+
mkdir -p build && cd build
cmake ../
cmake --build . -- -j 6
```
## Static Compilation With glibc
### Statically compile ProofOfSpace
```bash
mkdir -p build && cd build
cmake -DBUILD_PROOF_OF_SPACE_STATICALLY=ON ../
cmake --build . -- -j 6
```
### Run tests
```bash
./RunTests
```
### CLI usage
```bash
./ProofOfSpace -k 25 -f "plot.dat" -m "0x1234" create
./ProofOfSpace -k 25 -f "final-plot.dat" -m "0x4567" -t TMPDIR -2 SECOND_TMPDIR create
./ProofOfSpace -f "plot.dat" prove <32 byte hex challenge>
./ProofOfSpace -k 25 verify <hex proof> <32 byte hex challenge>
./ProofOfSpace -f "plot.dat" check <iterations>
```
### Benchmark
```bash
time ./ProofOfSpace -k 25 create
```
### Hellman Attacks usage
There is an experimental implementation which implements some of the Hellman
Attacks that can provide significant space savings for the final file.
```bash
./HellmanAttacks -k 18 -f "plot.dat" -m "0x1234" create
./HellmanAttacks -f "plot.dat" check <iterations>
```
## Python
Finally, python bindings are provided in the python-bindings directory.
### Install
```bash
python3 -m venv .venv
. .venv/bin/activate
pip3 install .
```
### Run python tests
Testings uses pytest. Linting uses flake8 and mypy.
```bash
py.test ./tests -s -v
```
## ci Building
The primary build process for this repository is to use GitHub Actions to
build binary wheels for MacOS, Linux (x64 and aarch64), and Windows and publish
them with a source wheel on PyPi. See `.github/workflows/build.yml`. CMake uses
[FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html)
to download [pybind11](https://github.com/pybind/pybind11). Building is then
managed by [cibuildwheel](https://github.com/joerick/cibuildwheel). Further
installation is then available via `pip install chiapos` e.g.
## Contributing and workflow
Contributions are welcome and more details are available in chia-blockchain's
[CONTRIBUTING.md](https://github.com/Chia-Network/chia-blockchain/blob/main/CONTRIBUTING.md).
The main branch is usually the currently released latest version on PyPI.
Note that at times chiapos will be ahead of the release version that
chia-blockchain requires in it's main/release version in preparation for a
new chia-blockchain release. Please branch or fork main and then create a
pull request to the main branch. Linear merging is enforced on main and
merging requires a completed review. PRs will kick off a GitHub actions ci build
and analysis of chiapos at
[lgtm.com](https://lgtm.com/projects/g/Chia-Network/chiapos/?mode=list). Please
make sure your build is passing and that it does not increase alerts at lgtm.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl chiapos-1.0.9:
pip install chiapos-1.0.9.whl
نصب پکیج tar.gz chiapos-1.0.9:
pip install chiapos-1.0.9.tar.gz