I've read the how does merged mining work? thread and I'm a bit confused as to how one of the transactions in the bitcoin block "stores" the hash of the Namecoin block. Where is this information stored in the transaction sent to the bitcoin network? As a recipient address? Somewhere else?

1 Answer 1


A 44-byte header cointaining:

  • magic: 0xfa, 0xbe, 'm', 'm' (only required if over 20 bytes past the start of the script; optional otherwise)
  • block_hash: Hash of the Namecoin block header
  • merkle_size: Number of entries in aux work merkle tree.
  • merkle_nonce: Nonce used to calculate indexes into aux work merkle tree; you may as well leave this at zero

is included in the scriptSig of the coinbase transaction in the Bitcoin block and sent to the Bitcoin network. Note that it is only sent to the Bitcoin network if it meets the network difficulty of Bitcoin. If it only meets the difficulty of Namecoin, it is only sent to the Namecoin network.

Source: https://en.bitcoin.it/wiki/Merged_mining_specification

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.