Files
chia-blockchain/lib/chiapos
Mariano Sorgenteandwjblanke 281be67729 Alpha 1.2 (#64)
Remove database access from blockchain, and handle headers instead of blocks
Avoid processing blocks and unfinished blocks that we have already seen.
Also adds test for load.

Plotting improvements
2020-01-08 18:07:52 -06:00
..
2019-11-20 00:03:34 +02:00
2019-11-20 00:03:34 +02:00
2019-11-20 22:00:56 +02:00
2019-11-20 00:03:34 +02:00
2020-01-08 18:07:52 -06:00
2019-12-10 08:10:43 +09:00
2019-11-20 00:03:34 +02:00
2019-11-21 22:37:13 +02:00
2019-11-20 00:03:34 +02:00
2019-11-20 00:03:34 +02:00
2019-11-20 00:03:34 +02:00
2019-11-20 00:03:34 +02:00
2019-11-20 00:03:34 +02:00

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 to learn about what proof of space is and how it works.

C++ Usage Instructions

Compile

git submodule update --init --recursive
mkdir build && cd build
cmake ../
cmake --build . -- -j 6

Run tests

./RunTests

CLI usage

./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

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.

./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

git submodule update --init --recursive
python3 -m venv .venv
. .venv/bin/activate
pip3 install .

Run python tests

Testings uses pytest. Type checking uses pyright, and linting uses flake8.

py.test ./tests -s -v