{"type":"rich","version":"1.0","author_name":"npub15q0aacpvzz8a8l7qp2uy07klrn43jcxtunef33yvxtj9yw2mjc7s2n5l43","author_url":"https://nostr.ae/npub15q0aacpvzz8a8l7qp2uy07klrn43jcxtunef33yvxtj9yw2mjc7s2n5l43","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2021-09-09\n📝 Original message:Hello all,\n\nI recently went down the bitcoin protocol rabbit hole. I wanted to use\nGNU guile scheme to experiment with bitcoin. I initially started by\ncreating a toy bitcoin miner but I've run into some inconsistencies with\nthe documentation found on\nhttps://en.bitcoin.it/wiki/Getblocktemplate. Namely with creating the\ntemplates merkle root.\n\n\u003eFrom my understanding a coinbase transaction should have the\ntransactions data concatenated before creating the merkle root. But\ngetblocktemplate does not have a json cointbasetxn field. So I'm not\nsure how to create a coinbase transaction without that.\n\nI have a test template response data found here.\nhttps://raw.githubusercontent.com/mrosset/prospect/master/test-suite/data.json\nand using a modified version of the merkle python reference script found\non the wiki page. see\nhttps://github.com/mrosset/prospect/blob/master/scripts/merkle.py . I'm\nable to create a merkle root with the hash\nc5fff939f628a04428c080ed5bd7cd9bc0b4722b2522743049adb18213adf28a but\nthat's minus the coinbase transaction.\n\nSo far I'm able to replicate this hash using the test data in guile. But\nI'd like to sanitize this so that I'm using a coinbase transaction and\nmaking sure the python and guile merkle roots match.\n\nIn short how do I get the coinbase transaction without the coinbasetxn\nfield existing?\n\nMike"}
