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 addressing - hash functions 2cf24dba5fb0a30e26e83b2ac5 hash( ) -> b9e29e1b161e5c1fa7425e7304 3362938b9824
Regular binary tree 7 6 5 1 2 3 4
= hash(left, right) R L = hash(data) L R L R
Merkle tree 1 2 3 4
Merkle tree 1 2 h(1) h(2) h(3) h(4) 3 4
Merkle tree h(h(3), h(4)) B h(h(1), h(2)) A 1 2 h(1) h(2) h(3) h(4) 3 4
Merkle tree h(A, B) C h(h(3), h(4)) B h(h(1), h(2)) A 1 2 h(1) h(2) h(3) h(4) 3 4
Merkle tree Root hash h(A, B) C h(h(3), h(4)) h(h(1), h(2)) B A 1 2 h(1) h(2) h(3) h(4) 3 4
Checking for equality C != F F C E B A A h(1) h(2) h(3) h(5) h(1) h(2) h(3) h(4)
C C B A 1 2 h(1) h(2) h(3) h(4) 3 4
What if? hash( ) 1 2 3 4 = Root hash
partial verification
UNTRUSTED PEER RECIPIENT C
UNTRUSTED PEER RECIPIENT 4 C
UNTRUSTED PEER RECIPIENT 4 C h(4)
UNTRUSTED PEER RECIPIENT 4 C h(3) B h(3) h(4)
UNTRUSTED PEER RECIPIENT 4 C h(3) B A A h(3) h(4)
thanks! @taravancil
Recommend
More recommend