How Merkle trees enable the decentralized Web!
@taravancil taravancil.com
How Merkle trees enable the decentralized Web! @taravancil - - PowerPoint PPT Presentation
How Merkle trees enable the decentralized Web! @taravancil taravancil.com RESOURCES Host-based addressing youtube.com/myvideo Host-based addressing youtube.com/myvideo -> vimeo.com/myvideo Content addressing - hash functions Content
How Merkle trees enable the decentralized Web!
@taravancil taravancil.com
RESOURCES
youtube.com/myvideo
Host-based addressing
youtube.com/myvideo -> vimeo.com/myvideo Host-based addressing
Content addressing - hash functions
Content addressing - hash functions
hash( ) ->
2cf24dba5fb0a30e26e83b2ac5 b9e29e1b161e5c1fa7425e7304 3362938b9824
1 2 3 4 5 6 7 Regular binary tree
= hash(left, right)
= hash(data)
L R L R
L R
Merkle tree
1 3 2 4
h(1) h(2) h(3) h(4)
Merkle tree
1 3 2 4
h(1) h(2) h(3) h(4)
A B Merkle tree
h(h(1), h(2)) h(h(3), h(4))
1 3 2 4
h(1) h(2) h(3) h(4)
A B C Merkle tree
h(h(1), h(2)) h(h(3), h(4)) h(A, B)
1 3 2 4
h(1) h(2) h(3) h(4) A B C
Merkle tree
h(h(1), h(2)) h(h(3), h(4)) h(A, B)
Root hash
1 3 2 4
Checking for equality
h(1) h(2) h(3) h(5)
A E F
h(1) h(2) h(3) h(4)
A B C
C != F
h(1) h(2) h(3) h(4)
A B C
1 3 2 4
C
What if?
Root hash
hash( )
4 3 1 2
C
UNTRUSTED PEER RECIPIENT
UNTRUSTED PEER RECIPIENT
4 C
UNTRUSTED PEER RECIPIENT
4
h(4)
C
h(4) B
C
h(3) UNTRUSTED PEER RECIPIENT h(3)
4
h(4) B
C
h(3) UNTRUSTED PEER RECIPIENT h(3)
4
A A
@taravancil