10.02.2016 Views

Bitcoin and Cryptocurrency Technologies

1Qqc4BN

1Qqc4BN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the altcoin’s difficulty is 60% * 5 / 10 = 30% that of <strong>Bitcoin</strong>. Note that 40% of <strong>Bitcoin</strong> blocks do not<br />

contain hash pointers to altcoin blocks.<br />

Conversely, every valid altcoin block results from an attempt at mining a <strong>Bitcoin</strong> block, but only 30%<br />

of them actually meet <strong>Bitcoin</strong>’s difficulty target. For the other 70% of altcoin blocks, the altcoin<br />

network needs to be able to verify the mining puzzle solution. The simple way to do this is to<br />

broadcast the <strong>Bitcoin</strong> near‐block in addition to the altcoin block. But a cleverer way is to broadcast<br />

just the header of the <strong>Bitcoin</strong> near‐block <strong>and</strong> the Merkle proof of inclusion of the Coinbase transaction<br />

in the <strong>Bitcoin</strong> block.<br />

It’s also possible (although rarely seen) for the altcoin to actually have a ​more difficult​puzzle than<br />

<strong>Bitcoin</strong>. This is unusual because most altcoins want to have blocks found more often than once per 10<br />

minutes, but if for some reason you wanted a slower rate this would be easy to achieve as well. In this<br />

case, you would see some <strong>Bitcoin</strong> blocks which the miner hoped would also be an altcoin block, but<br />

will be rejected on the altcoin network because they didn’t meet the harder difficulty target.<br />

Finally, note that any number of altcoins can be simultaneously merge‐mined with <strong>Bitcoin</strong>, <strong>and</strong> every<br />

miner is free to pick an arbitrary subset of altcoins to merge mine. In this case, the Coinbase scriptSig<br />

would itself be a Merkle tree of hash pointers to various altcoin blocks. Note the levels of complexity:<br />

verifying the inclusion of an altcoin transaction requires verifying, among other things: (1) a Merkle<br />

proof of inclusion of the altcoin transaction in the altcoin block (2) a Merkle proof of inclusion of the<br />

altcoin block hash in the Coinbase scriptSig <strong>and</strong> (3) a Merkle proof of inclusion of the Coinbase<br />

scriptSig in the <strong>Bitcoin</strong> block or near‐block!<br />

Merge mining <strong>and</strong> security.​Merge mining is a mixed blessing. It makes bootstrapping easier, as<br />

we’ve discussed, <strong>and</strong> the resulting boost to your altcoin’s total hash power increases its resilience to<br />

attack. An adversary who is looking to buy computing power to destroy your altcoin will need to make<br />

an enormous up‐front investment.<br />

On the other h<strong>and</strong>, one could argue that this is a false sense of security, because such an adversary<br />

would presumably recoup the cost of his investment by mining <strong>Bitcoin</strong>, <strong>and</strong> the marginal cost to<br />

attack your altcoin is trivial. This is easier to appreciate if we think about an adversary who is already a<br />

large <strong>Bitcoin</strong> miner. Indeed, CoiledCoin, the altcoin described earlier that suffered infanticide, was<br />

merge‐mined. The Eligius mining pool <strong>and</strong> its participants did not need to stop <strong>Bitcoin</strong> mining in order<br />

to attack it. In fact, the pool participants were not even aware that their computing resources were<br />

being used in the attack!<br />

Sidebar: trends in altcoin mining puzzles.​As of 2015 few altcoins launch with the same SHA‐256<br />

mining puzzle as <strong>Bitcoin</strong>, with or without merge mining, which suggests that it is perhaps<br />

considered a security risk. Scrypt is a much more popular choice, which makes <strong>Bitcoin</strong> ASICs useless<br />

for mining or attacking such altcoins. Of course, scrypt ASICs being manufactured for Litecoin<br />

mining could be used to attack them.<br />

278

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!