ethereum, smart-contracts, swarm, web 3 · intro examples tech web3 ethereum, smart-contracts,...

50
intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Upload: others

Post on 07-Mar-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

Ethereum, Smart-contracts, Swarm, Web 3.0

Viktor Tron and Aron Fischer

September 1, 2016

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 2: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

1 Introductory remarksWhat is ethereum?What are “smart contracts”?An example.What else is there?

2 Real-world examplesThe story of Intrade and AugurCorporate bylawsA story about copyright and DRM

3 A brief tour of the technologyThe blockchain and proof-of-workTuring-completnessSwarm

4 The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 3: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

Outline

1 Introductory remarksWhat is ethereum?What are “smart contracts”?An example.What else is there?

2 Real-world examples

3 A brief tour of the technology

4 The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 4: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What is ethereum?

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 5: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What is ethereum?

Ethereum is a (simulated) global computer

Anyone can access it

It is tamper proof

No single entity can stop it, censor it, control it.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 6: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What is ethereum?

Ethereum is a (simulated) global computer

Anyone can access it

It is tamper proof

No single entity can stop it, censor it, control it.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 7: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What is ethereum?

Ethereum is a (simulated) global computer

Anyone can access it

It is tamper proof

No single entity can stop it, censor it, control it.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 8: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What is ethereum?

Ethereum is a (simulated) global computer

Anyone can access it

It is tamper proof

No single entity can stop it, censor it, control it.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 9: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What are “smart contracts”?

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 10: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What are “smart contracts”?

So-called “smart contracts” are programs running on the ethereumcomputer.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 11: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

So why are they called smart contracts?

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 12: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam

decides to move itsland-registry database from thebasement of city hall to the ethereumworld computer.I put money (Ether) in a smart contractthat says the following: If the ownershipof this apartment is transferred to me(i.e. the land registry updates to showit as mine), then transfer all the moneyto you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 13: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam decides to move itsland-registry database from thebasement of city hall (I imagine)

to theethereum world computer.I put money (Ether) in a smart contractthat says the following: If the ownershipof this apartment is transferred to me(i.e. the land registry updates to showit as mine), then transfer all the moneyto you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 14: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam decides to move itsland-registry database from thebasement of city hall to the ethereumworld computer.

I put money (Ether) in a smart contractthat says the following: If the ownershipof this apartment is transferred to me(i.e. the land registry updates to showit as mine), then transfer all the moneyto you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 15: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam decides to move itsland-registry database from thebasement of city hall to the ethereumworld computer.I put money (Ether) in a smart contractthat says the following:

If the ownershipof this apartment is transferred to me(i.e. the land registry updates to showit as mine), then transfer all the moneyto you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 16: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam decides to move itsland-registry database from thebasement of city hall to the ethereumworld computer.I put money (Ether) in a smart contractthat says the following: If the ownershipof this apartment is transferred tome (i.e. the land registry updates toshow it as mine),

then transfer all themoney to you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 17: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

A toy example

Let us pretend that the city ofAmsterdam decides to move itsland-registry database from thebasement of city hall to the ethereumworld computer.I put money (Ether) in a smart contractthat says the following: If the ownershipof this apartment is transferred to me(i.e. the land registry updates to showit as mine), then transfer all themoney to you (the previous owner).

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 18: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

So?

What’s so special about that?

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 19: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

Why are smart contracts special?

The contract is self enforcing.

The money will be transferred if and only if the ownership of theapartment changes. In fact it is the transfer of ownership (asrepresented in the land registry) that releases the payment.There is no need for a notary to hold on to the money (escrow) –the contract itself can act as the trusted third pary.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 20: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

Why are smart contracts special?

The contract is self enforcing.The money will be transferred if and only if the ownership of theapartment changes. In fact it is the transfer of ownership (asrepresented in the land registry) that releases the payment.

There is no need for a notary to hold on to the money (escrow) –the contract itself can act as the trusted third pary.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 21: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

Why are smart contracts special?

The contract is self enforcing.The money will be transferred if and only if the ownership of theapartment changes. In fact it is the transfer of ownership (asrepresented in the land registry) that releases the payment.There is no need for a notary to hold on to the money (escrow) –the contract itself can act as the trusted third pary.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 22: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 23: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 24: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 25: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 26: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 27: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 28: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

What else can we do?

For a start, anything that only really involves maintaining adatabase according to some rulues:

Domain Name System

Money and bank accounts

Land registry

...

Also popular are interactions requiring only basic logic:

Gambling and Betting

Financial derivatives

“Fair” pyramid and Ponzi schemes

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 29: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

What is ethereum?What are “smart contracts”?exampleWhat else is there?

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 30: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Outline

1 Introductory remarks

2 Real-world examplesThe story of Intrade and AugurCorporate bylawsA story about copyright and DRM

3 A brief tour of the technology

4 The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 31: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Intrade and Augur

The intrade / Augur storythe story of intrade (centralisation problem) the story of augur(decentralised oracle)

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 32: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 33: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 34: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 35: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 36: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 37: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

bylaws on-chain

We can imagine a company encoding all of its corporate bylawsinto smart contracts.For example the rules could say:

only the treasurer can propose spending

the proposed spending can only happen if 3 board membersagree...

...unless it is more than 1000 Ether, in which case two-thirdsmust agree.

There will be an election for treasurer every year on 1stSeptember.

...and so on. Can be arbitrarily complex. It’s up to you.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 38: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Benefits:

When doing things this way, you are protected from some forms ofcorruption and you do not have to rely on weak legal systems toenforce the laws for you.

Lesson:

smart contracts are stubborn.

This means that they will execute as written. If you encode termlimits, there will be term limits(*), if you code for monthlyelections there absolutely will be monthly elections.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 39: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Benefits:

When doing things this way, you are protected from some forms ofcorruption and you do not have to rely on weak legal systems toenforce the laws for you.

Lesson:

smart contracts are stubborn.

This means that they will execute as written. If you encode termlimits, there will be term limits(*), if you code for monthlyelections there absolutely will be monthly elections.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 40: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Benefits:

When doing things this way, you are protected from some forms ofcorruption and you do not have to rely on weak legal systems toenforce the laws for you.

Lesson:

smart contracts are stubborn.

This means that they will execute as written.

If you encode termlimits, there will be term limits(*), if you code for monthlyelections there absolutely will be monthly elections.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 41: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Benefits:

When doing things this way, you are protected from some forms ofcorruption and you do not have to rely on weak legal systems toenforce the laws for you.

Lesson:

smart contracts are stubborn.

This means that they will execute as written. If you encode termlimits, there will be term limits(*),

if you code for monthlyelections there absolutely will be monthly elections.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 42: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Benefits:

When doing things this way, you are protected from some forms ofcorruption and you do not have to rely on weak legal systems toenforce the laws for you.

Lesson:

smart contracts are stubborn.

This means that they will execute as written. If you encode termlimits, there will be term limits(*), if you code for monthlyelections there absolutely will be monthly elections.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 43: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

Copyright the right way?

can the act of listening to music be paired with automaticpayments to the correct people?smart contract payment splits? yes. music on blockchain? no.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 44: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

prediciton marketbylawscopyright

We need to look at how this all works under the hood.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 45: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

blockchainturingdata

Outline

1 Introductory remarks

2 Real-world examples

3 A brief tour of the technologyThe blockchain and proof-of-workTuring-completnessSwarm

4 The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 46: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

blockchainturingdata

Blockchain

Blockchain and POW

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 47: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

blockchainturingdata

Ethereum is Turing complete

turing completeness – generic blockchain tech.

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 48: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

blockchainturingdata

Swarm

swarm as a storage layer and as a CDNdata storage and distribution is (has to be) off-chain, but withclose integration into blockchain we can use smart contracts toregulate what happens (eg SWINDLE litigation engine)

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 49: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

Outline

1 Introductory remarks

2 Real-world examples

3 A brief tour of the technology

4 The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0

Page 50: Ethereum, Smart-contracts, Swarm, Web 3 · intro examples tech web3 Ethereum, Smart-contracts, Swarm, Web 3.0 Viktor Tron and Aron Fischer September 1, 2016 Viktor Tron and Aron Fischer

introexamples

techweb3

Web3

The Web3 Vision

Viktor Tron and Aron Fischer Ethereum, Smart-contracts, Swarm, Web 3.0