Skip to main content

Chia proof of space plotting, proving, and verifying (wraps C++)

Project description

# Chia Proof of Space

A prototype of Chia’s proof of space, written in C++. Includes a plotter, prover, and verifier. Only runs on 64 bit architectures with AES-NI support. Read the [Proof of Space document](https://www.chia.net/assets/proof_of_space.pdf) to learn about what proof of space is and how it works.

## C++ Usage Instructions

### Compile

`bash mkdir -p build && cd build cmake ../ cmake --build . -- -j 6 `

### Run tests

`bash ./RunTests `

### CLI usage

`bash ./ProofOfSpace -k 25 -f "plot.dat" -m "0x1234" generate ./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 generate `

### 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" generate ./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. Type checking uses pyright, and linting uses flake8.

`bash py.test ./tests -s -v `

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chiapos-0.12.7.tar.gz (1.8 MB view hashes)

Uploaded Source

Built Distributions

chiapos-0.12.7-cp38-cp38-win_amd64.whl (189.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

chiapos-0.12.7-cp38-cp38-manylinux2010_x86_64.whl (189.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

chiapos-0.12.7-cp38-cp38-macosx_10_14_x86_64.whl (177.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

chiapos-0.12.7-cp37-cp37m-win_amd64.whl (189.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

chiapos-0.12.7-cp37-cp37m-manylinux2010_x86_64.whl (190.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

chiapos-0.12.7-cp37-cp37m-macosx_10_14_x86_64.whl (176.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page