in

Merkle tree structure for 9 transactions

Have I understood the concept of address, account and wallet correctly and how the wallet balance is calculated?

[ad_1]

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

[ad_2]

Source link

Written by BTC Artist

Leave a Reply

Your email address will not be published. Required fields are marked *

Shiba Inu Holders Fall Deeper Into Losses, Here’s How Many Holders Are In The Red

Bitcoin prices fall more when miners sell, especially before halving: Bitfinex

Bitcoin prices fall more when miners sell, especially before halving: Bitfinex