Basic merkle-tree implementation & getblocktemplate::transaction() format