How does namecoin and other merge-mined coins prevent pre-mine attacks?

3

1

So, namecoin supports merged mining against bitcoin. My understanding of the merged mining protocol is that basically miners can use the primary coin's POW solution to solve the aux coin's block. It's possible for a primary coin POW solution to not be difficult enough for the primary coin, but be valid for the secondary coin.

However, given this, what would stop a malicious person from working on forging a set of primary blocks, such that they would meet the aux difficulty. They would set their blocks up to be a very high height so they have plenty of time to mine the blocks at the target difficulty (since they don't have enough power to do it in realtime of course). And then, when they need to control of the blockchain, they would submit all of these forged blocks at the proper time, messing up target block times and allowing them to possibly double spend..

How is this prevented?

Earlz

Posted 2014-04-08T04:09:55.930

Reputation: 1 040

Answers

2

If you fake the bitcoin blocks, then you will be mining only namecoins and no bitcoins, so you are losing 99% of your mining income.

You can't just mine at a height above the current namecoin blockchain. Remember that it is a chain. Each block has to link to the previous one. If you want to mine at namecoin height X which is thousands of blocks above the current height, how will you know in advance what the hash of the block at height X-1 will be?

Dr.Haribo

Posted 2014-04-08T04:09:55.930

Reputation: 8 060