user323: In answer to question "How does merged mining work?", we can read that in order to merged mine, we need to create a Bitcoin transaction containing a Namecoin block hash and put it on the tip of the merkle tree. Where can one find some guidelines or specification on how to create such a transaction?

user141: I'd suggest looking at the merged mining spec at the bitcoin wiki.
When I was writing my merged mining implementation I also looked at the source code of namecoind, bitcoind and merged-mine-proxy. 
As far as I know there is still no easier documentation on how to implement merged mining, so you will likely be looking through existing source code a lot to figure out the details. The merged mining spec was a big help for me though, even if it is a bit slim.

323: <p>In <a href="https://bitcoin.stackexchange.com/a/275/323">answer to question</a> <a href="https://bitcoin.stackexchange.com/q/273/323">"How does merged mining work?"</a>, we can read that in order to merged mine, we need to create a Bitcoin transaction containing a Namecoin block hash and put it on the tip of the merkle tree. Where can one find some guidelines or specification on how to create such a transaction?</p>
 141: <p>I'd suggest looking at the <a href="https://en.bitcoin.it/wiki/Merged_mining_specification" rel="nofollow">merged mining spec</a> at the bitcoin wiki.</p>

<p>When I was writing my merged mining implementation I also looked at the source code of namecoind, bitcoind and <a href="https://github.com/vinced/namecoin/blob/master/contrib/merged-mine-proxy" rel="nofollow">merged-mine-proxy</a>. </p>

<p>As far as I know there is still no easier documentation on how to implement merged mining, so you will likely be looking through existing source code a lot to figure out the details. The merged mining spec was a big help for me though, even if it is a bit slim.</p>
