swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery...

86
content delivery content storage swap, swear and swindle: incentive system for swarm and beyond Viktor Tr´ on and Aron Fischer November 30, 2016 Viktor Tr´on and Aron Fischer swap, swear and swindle: incentive system for swarm and bey

Upload: others

Post on 26-Mar-2020

26 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

swap, swear and swindle:incentive system for swarm and beyond

Viktor Tron and Aron Fischer

November 30, 2016

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 2: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond
Page 3: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

Outline

1 content deliverydata retrievalpaying for data

2 content storagedeferred payments and proof-of-custodystorage insurance and negative incentives

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 4: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

Outline

1 content deliverydata retrievalpaying for data

2 content storagedeferred payments and proof-of-custodystorage insurance and negative incentives

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 5: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data out

How to retrieve data stored in the swarm.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 6: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 7: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 8: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 9: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 10: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 11: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 12: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

data retrieval

node id, chunk id,function as addresses inthe same keyspace

dapp retrievesawesome-swarm-slides.pdf

get its address H

content with address Hstored with the nodewhose own address isclosest to H

swarm’s retrievalprocess is responsiblefor deliviering

the swarm network:

swarm-nodeYou

•H

ClosestNode

Look for “H” here

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 13: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 14: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 15: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 16: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 17: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 18: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 19: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 20: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 21: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 22: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 23: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 24: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 25: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm retrieval process

retriever

data address

peer

request

some noderequest

othernode

requests...

closestnode

request

deliver

deliveries

deliver

deliver

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 26: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 27: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 28: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 29: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 30: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 31: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 32: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 33: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 34: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 35: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swap: swarm accounting protocol

per-peer bandwidth accounting

keeps track of all data retrievedboth directions

settlement

service for service or tally tooimbalanced → a payment isinitiated

me peer

data delivered

data received

-

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 36: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

not feasible to pay for every chunk of data delivered with atransation

even batch payments would constitute unacceptableblockchain bloat (and transaction cost).

instead of processing every payment on-chain, SWAP employs achequebook smart contract:

cheques are passed between connected swarm nodes (peers)off-chain.

peers can cash in (process on-chain) the received cheques atany time.

issued cheques are cumulative, i.e., only the last chequeneeds to be cashed for settlement.

swap will soon also be usable via payment channels (see Raiden).

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 37: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

not feasible to pay for every chunk of data delivered with atransation

even batch payments would constitute unacceptableblockchain bloat (and transaction cost).

instead of processing every payment on-chain, SWAP employs achequebook smart contract:

cheques are passed between connected swarm nodes (peers)off-chain.

peers can cash in (process on-chain) the received cheques atany time.

issued cheques are cumulative, i.e., only the last chequeneeds to be cashed for settlement.

swap will soon also be usable via payment channels (see Raiden).

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 38: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

not feasible to pay for every chunk of data delivered with atransation

even batch payments would constitute unacceptableblockchain bloat (and transaction cost).

instead of processing every payment on-chain, SWAP employs achequebook smart contract:

cheques are passed between connected swarm nodes (peers)off-chain.

peers can cash in (process on-chain) the received cheques atany time.

issued cheques are cumulative, i.e., only the last chequeneeds to be cashed for settlement.

swap will soon also be usable via payment channels (see Raiden).

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 39: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

not feasible to pay for every chunk of data delivered with atransation

even batch payments would constitute unacceptableblockchain bloat (and transaction cost).

instead of processing every payment on-chain, SWAP employs achequebook smart contract:

cheques are passed between connected swarm nodes (peers)off-chain.

peers can cash in (process on-chain) the received cheques atany time.

issued cheques are cumulative, i.e., only the last chequeneeds to be cashed for settlement.

swap will soon also be usable via payment channels (see Raiden).

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 40: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

not feasible to pay for every chunk of data delivered with atransation

even batch payments would constitute unacceptableblockchain bloat (and transaction cost).

instead of processing every payment on-chain, SWAP employs achequebook smart contract:

cheques are passed between connected swarm nodes (peers)off-chain.

peers can cash in (process on-chain) the received cheques atany time.

issued cheques are cumulative, i.e., only the last chequeneeds to be cashed for settlement.

swap will soon also be usable via payment channels (see Raiden).

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 41: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

chequebookpro:

offchain payments

low barrier to entry (payanyone)

con:

cheques can bounce(payment not guaranteed)

channelpro:

offchain payments

secure - paymentsguaranteed

con:

high barrier to entry (mustfirst join channel network)

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 42: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

chequebookpro:

offchain payments

low barrier to entry (payanyone)

con:

cheques can bounce(payment not guaranteed)

channelpro:

offchain payments

secure - paymentsguaranteed

con:

high barrier to entry (mustfirst join channel network)

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 43: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

chequebook vs payment channel

chequebookpro:

offchain payments

low barrier to entry (payanyone)

con:

cheques can bounce(payment not guaranteed)

channelpro:

offchain payments

secure - paymentsguaranteed

con:

high barrier to entry (mustfirst join channel network)

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 44: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

SWARM + SWAP demonstrates

programmable incentives

drive towards low latency retrieval

auto-scaling delivery network

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 45: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 46: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 47: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 48: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 49: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 50: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 51: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 52: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 53: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 54: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 55: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 56: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 57: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 58: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 59: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 60: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

data retrievalswap

swarm CDN is auto-scaling

data address

request

request

requests...

request

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 61: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

Outline

1 content deliverydata retrievalpaying for data

2 content storagedeferred payments and proof-of-custodystorage insurance and negative incentives

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 62: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

SWAP allows for speedy retrieval of popular content, but there isno guarantee that less popular content will remain available.Whatever is not accessed for a long time is likely to be deleted.

The first step: change the swarm’s incentives by paying nodes tostore your content.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 63: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

payment for proof-of-custody

The basic idea:

1 commit in advance to paying for data to be available in theswarm.

2 over time, challenge the swarm to provide proof that the datais still available: request proof-of-custody.

3 every valid proof-of-custody releases the next paymentinstallment to the storing nodes.

Remember:

The proof-of-custody here is a small message - a single hash -which cryptographically proves that the issuer has access to thedata.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 64: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

proof of custody + payment channel

These deferred payments constitute a conditional escrow:payment is made up-front, payment is held (escrow) and is onlyreleased when a valid proof-of-custody is received (condition).

This procedure can be handled off-chain and can be directlyintegrated into the payment channels. All you need is apayment-channel judge contract that can understand swarmstorage receipts.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 65: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

If data goes missing...

If data goes missing nodes will lose potential revenue for no longerbeing able to generate proofs-of-custody, but there are no furtherconsequences (yet).

Therefore, to complete the storage incentive scheme, we introducean insurance system the can punish offending nodes for notkeeping their storage promises.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 66: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swear: swarm enforcement of archiving rules

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 67: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swear to store

SWEAR is a smart contract that allows nodes to register aslong-term storage nodes by posting a security deposit.

Registered nodes can sell promissory notes guaranteeing long-termdata availablilty – essentially insurance against deleting.

Implementation: swarm syncing process with added receipts.

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 68: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 69: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 70: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 71: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 72: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 73: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 74: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 75: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 76: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 77: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

syncing

chunks to be storedat the nodes whoseaddress is closest tothe chunk ID

relaying: syncing

data is passed onfrom node to node

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 78: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

insured storage

syncing via registerednodes with each swapreceipted.

insured storage:

owner passes data toa registered peer andreceives an insurancereceipt

relaying: syncing

all receipts areaccounted and paidfor

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 79: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

insured upload to swarm

insured storage

syncing via registerednodes with each swapreceipted.

insured storage:

owner passes data toa registered peer andreceives an insurancereceipt

relaying: syncing

all receipts areaccounted and paidfor

owner

chunk address

peer

sync

some node

sync

othernode

syncing...

closestnode

sync

owner

chunk address

peer

store

some node

storereceipts

othernode

store...receipts

closestnode

store

receipt

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 80: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swindle: storage with insurance deposit, litigation and escrow

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 81: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swindle

TL;DR

if insured data is lost, the storers lose their deposit

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 82: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

litigation upon data loss

if insured data is not found

litigation by challenge

defense by providing

proof-of-custody of the data (eventually the data itself)

a storage receipt for the data, shifting the blame andimplicating another node as the culprit.

upload and disappear

swear to sync and receipting → immediate settlement withthe peer at upload

finger-pointing along chain of receipts → correctaccountability of storer thereafter

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 83: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swap • swear • swindle

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 84: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

ethersphere orange paper series

Viktor Tron, Aron Fischer, Daniel Nagy A and Zsolt Felfoldi, NickJohnson: swap, swear and swindle: incentive system for swarm.May 2016

Viktor Tron, Aron Fischer, Nick Johnson: smash-proof: auditablestorage for swarm secured by masked audit secret hash. May 2016

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 85: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

content deliverycontent storage

pay-as-you-storeinsurance

swarm: status and usage

what is the development status of swarm?

1 golang implementation: proof-of-concept iteration 2 release 4,code has been merged to go-ethereum develop branch

2 Microsoft Azure hosting a testnet of 100+ nodes over 3regions

3 expanding team, come join or contribute

how can swarm be used?

bzzd - swarm daemon, communicates with ethereum via IPC,so any ethereum client works

APIs: JSON RPC (via websockets, http, or ipc), http proxy,cli, fuse driver (planned)

API bindings: web3.js and CLI

Viktor Tron and Aron Fischer swap, swear and swindle: incentive system for swarm and beyond

Page 86: swap, swear and swindle: incentive system for swarm and beyond3/sw^3-slides.pdf · content delivery content storage swap, swear and swindle: incentive system for swarm and beyond

join us

contact and contribute

swarm channel: gitter.im/ethereum/swarm

swarm info page & orange papers: swarm-gateways.net

swarm gateway: swarm-gateways.net web3.download

Daniel Nagy A., Nick Johnson, Viktor Tron, Zsolt Felfoldi (core team)

Aron Fischer & Ethersphere orange lounge group

Ram Devish, Bas van Kervel, Alex van der Sande (Mist integration)

Felix Lange (integration, devp2p)

Alex Beregszaszi (git, mango)

Igor Shadurin (file manager dapp)

Nick Johnson, Alex van der Sande (Ethereum Name Service)

Gavin Wood, Vitalik Buterin, Jeffrey Wilcke (visionaries)