Chia-Network / chiapos

Chia Proof of Space library
Apache License 2.0
267 stars 281 forks source link

Validate chia plot. #240

Closed walruzperil closed 3 years ago

walruzperil commented 3 years ago

Hello, i compile plotter for windows, work fine, but if i check plot via original chia.exe:
2021-05-15T05:58:03.707 chia.plotting.plot_tools : ERROR Failed to open file E:\test\plot.plot. Invalid number of bytes 31 Traceback (most recent call last). What can i do? How i can use that plots compiled by my own plotter for original chia gui, harvester etc. Thanks!

hoffmang9 commented 3 years ago

We don't support plotting directly with the plotter and not via python. You will have to debug this yourself.

vladaman commented 3 years ago

It's my understanding, that you must include combination of farmer public key and pool public key into memo:

https://github.com/Chia-Network/chia-blockchain/blob/7012ca9e07cf0e3e0c82efc73d442ae707ee5a73/chia/plotting/create_plots.py#L115

# The plot public key is the combination of the harvester and farmer keys
plot_public_key = ProofOfSpace.generate_plot_public_key(master_sk_to_local_sk(sk).get_g1(), farmer_public_key)

Not sure if this is right approach but we'd love to use the binary directly as well instead of python bindings.