<p dir="ltr"><br>
Den 20 dec 2015 12:38 skrev &quot;Tier Nolan via bitcoin-dev&quot; &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt;:<br>
&gt;<br>
&gt; On Sun, Dec 20, 2015 at 5:12 AM, Emin Gün Sirer &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;  An attacker pool (A) can take a certain portion of its hashpower,<br>
&gt;&gt; use it to mine on behalf of victim pool (B), furnish partial proofs of work<br>
&gt;&gt; to B, but discard any full blocks it discovers.<br>
&gt;<br>
&gt; I wonder if part of the problem here is that there is no pool identity linked to mining pools.<br>
&gt;<br>
&gt; If the mining protocols were altered so that miners had to indicate their identity, then a pool couldn&#39;t forward hashing power to their victim.  </p>
<p dir="ltr">Our approaches can be combined. </p>
<p dir="ltr">Each pool (or solo miner) has a public key included in their blocks that identifies them to their miners (solo miners can use their own unique random keys every time). This public key may be registered with DNSSEC+DANE and the pool could point to their domain in the block template as an identifier. </p>
<p dir="ltr">For each block the pool generates a nonce, and for each of every miner&#39;s workers it double-hashes that nonce with their own public key and that miner&#39;s worker ID and the previous block hash (to ensure no accidental overlapping work is done).</p>
<p dir="ltr">The double-hash is a commitment hash, the first hash is the committed value to be used by the pool as described below. Publishing the nonce reveals how the hashes were derived to their miners. </p>
<p dir="ltr">Each miner puts this commitment hash in their blocks, and also the public key of the pool separately as mentioned above. </p>
<p dir="ltr">Here&#39;s where it differs from standard mining: both the candidate block PoW hash and the pool&#39;s commitment value above determines block validity together. </p>
<p dir="ltr">If total difficulty is X and the ratio for full blocks to candidate blocks shared with the pool is Y, then the candidate block PoW now has to meet X/Y while hashing the candidate block PoW + the pool&#39;s commitment hash must meet Y, which together makes for X/Y*Y and thus the same total difficulty.</p>
<p dir="ltr">So now miners don&#39;t know if their blocks are valid before the pool does, so withholding isn&#39;t effective, and the public key identifiers simultaneously stops a pool from telling honest but naive miners to attack other pools using whatever other schemes one might come up with. </p>
<p dir="ltr">The main differences are that there&#39;s a public key identifier the miners are told about in advance and expect to see in block templates, and that that now the pool has to publish this commitment value together with the block that also contains the commitment hash, and that this is verified together with the PoW. </p>