question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Plot duplication

See original GitHub issue

copy plot use hex editor to replace plot id and memo ??? profit!!!

use something like this for valid id and memo instead of random

`from secrets import token_bytes from blspy import AugSchemeMPL, G1Element, PrivateKey from chia.plotting.plot_tools import add_plot_directory, stream_plot_info_ph, stream_plot_info_pk from chia.types.blockchain_format.proof_of_space import ProofOfSpace from chia.types.blockchain_format.sized_bytes import bytes32 from chia.wallet.derive_keys import master_sk_to_farmer_sk, master_sk_to_local_sk, master_sk_to_pool_sk

pool_public_key = G1Element.from_bytes(bytes.fromhex(‘<pool public key here>’)) farmer_public_key = G1Element.from_bytes(bytes.fromhex(‘<farmer public key here>’)) sk = AugSchemeMPL.key_gen(token_bytes(32)) plot_public_key = ProofOfSpace.generate_plot_public_key(master_sk_to_local_sk(sk).get_g1(), farmer_public_key) plot_id: bytes32 = ProofOfSpace.calculate_plot_id_pk(pool_public_key, plot_public_key) plot_memo: bytes32 = stream_plot_info_pk(pool_public_key, farmer_public_key, sk) plot_memo_str: str = plot_memo.hex() plot_id_str: str = plot_id.hex() print(f"Memo: {plot_memo_str}“) print(f"Plot ID: {plot_id_str}”)`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FrankSentcommented, May 27, 2021

It’s a nice trick to fake Plotting as a Service on total farm size though.

Yes, hpool is 100% vulnerable

Wouldent you get quickly banned? It should be relatively easy to detect that two plots match each other, no? When i open a plot in a hex editor only the first line is readable and it says “Proof of Space P” all the other lines are random letters. No mention of a memo or id

0reactions
big-chiacommented, May 29, 2021

reproducing plots is intentionally allowed. they do not count twice with official software.

They do 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

duplication bug | Sim Settlements Forums
Occasionally SS2 items can get duplicated. I have confirmed that plots, static items (IE: Junk Containers), SCOL's (IE: items in the plots, ...
Read more >
gnuplot / Bugs / #2380 duplicate titles in key - SourceForge
title gets duplicated according to number of data sets ... In versions through 5.2 each plot title was constructed at the time the...
Read more >
Bug 1324 – Duplicate colors in STUDY plotcurve
When swapping both variables in design which creates 2x5 design, then the colors are still duplicated, but each fourth plot is the same....
Read more >
Duplicate live script figure appearing - MATLAB Answers
I have a live script that produces many plots, each on their own figure. For some reason a plot from the top portion...
Read more >
Bug in ListPlot: Duplicate markers (one list containing ``Infinity``)
Update: a simpler work-around: add the option Mesh -> Full data = {{3, 4, 5}, {1, anything, Infinity, 2}} ; ListPlot[data, PlotMarkers ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found