How Merkle trees enable the decentralized Web! @taravancil - - PowerPoint PPT Presentation

how merkle trees enable the decentralized web
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

How Merkle trees enable the decentralized Web!

@taravancil taravancil.com

slide-2
SLIDE 2

RESOURCES

slide-3
SLIDE 3

youtube.com/myvideo

Host-based addressing

slide-4
SLIDE 4

youtube.com/myvideo -> vimeo.com/myvideo Host-based addressing

slide-5
SLIDE 5

Content addressing - hash functions

slide-6
SLIDE 6

Content addressing - hash functions

hash( ) ->

2cf24dba5fb0a30e26e83b2ac5 b9e29e1b161e5c1fa7425e7304 3362938b9824

slide-7
SLIDE 7
slide-8
SLIDE 8

1 2 3 4 5 6 7 Regular binary tree

slide-9
SLIDE 9

= hash(left, right)

= hash(data)

L R L R

L R

slide-10
SLIDE 10

Merkle tree

1 3 2 4

slide-11
SLIDE 11

h(1) h(2) h(3) h(4)

Merkle tree

1 3 2 4

slide-12
SLIDE 12

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

slide-13
SLIDE 13

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

slide-14
SLIDE 14

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

slide-15
SLIDE 15

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

slide-16
SLIDE 16

h(1) h(2) h(3) h(4)

A B C

1 3 2 4

C

slide-17
SLIDE 17

What if?

Root hash

=

hash( )

4 3 1 2

slide-18
SLIDE 18

partial verification

slide-19
SLIDE 19

C

UNTRUSTED PEER RECIPIENT

slide-20
SLIDE 20

UNTRUSTED PEER RECIPIENT

4 C

slide-21
SLIDE 21

UNTRUSTED PEER RECIPIENT

4

h(4)

C

slide-22
SLIDE 22

h(4) B

C

h(3) UNTRUSTED PEER RECIPIENT h(3)

4

slide-23
SLIDE 23

h(4) B

C

h(3) UNTRUSTED PEER RECIPIENT h(3)

4

A A

slide-24
SLIDE 24
slide-25
SLIDE 25

thanks!

@taravancil