Quantcast
Viewing all articles
Browse latest Browse all 94

Merkle tree structure for 9 transactions

I've been reading the developers documentation, other sources and the good books about Bitcoin. But none of the resources shows a merkle tree with 5 or more leafs. I'm confused, does the bitcoin core make a merkle tree of transactions (a,b,c,d,e,f,g,h,i) like:

H( H( H( H(a,b), H(c,d) ), H( H(e,f), H(g,h) ) ), H(i,i) )

or It's wrong?

I'm asking, because the structure of this one is not close to a complete binary tree, as every example I've found in the resources. If I'm right, the structure would be something like:

               _____/\______             / \           / \            /   \         i   i           /     \          /       \         /         \        /           \      /   \       /   \    / \   / \   / \   / \    a   b c   d e   f g   h 

Thanks


Viewing all articles
Browse latest Browse all 94

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>