Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead...

30
Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong)

Transcript of Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead...

Page 1: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Blockchain Smart ContractAuthor Eric Lou

(Lead Blockchain Developer at RightsLedger Mekong)

Page 2: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.
Page 3: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.
Page 4: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

What is Blockchain ?

Blockchain is a virtual, public ledger that records everything in decentralize way,

securely and transparently.

- Blockchain technology market is predicted to reach 2.3 billion U.S Dollars by

2021

- 9% of bank experiment with Blockchains

- 14 countries exploring developing official cryptocurrencies

Page 5: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

How Blockchain Build?

Each

transaction

occur, its put

into blocks.

1

Each Block

connected to

one before after

it

2

Transaction are

blocked together

3

Each block is

added to the

next irreversible

chain

4

Page 6: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Data

Hash

Hash of previous

block

Page 7: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Data

From : User A

To: User B

Amount : 1 BTC

Bitcoin Block Example

Page 8: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash

0xFbDD7C6A4F7d7B7BF1b7E1CB

Page 9: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash

0xA7071c2EA43D3Aa730C814F8D

Page 10: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Creates the chain

Hash of previous

block

Page 11: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash : EF56

Previous hash: 0000

Hash : DFGH

Previous hash: EF56

Hash : KL9I

Previous hash: DFGH

1 2 3

Page 12: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash : EF56

Previous hash: 0000

Hash : DFGH

Previous hash: EF56

Hash : KL9I

Previous hash: DFGH

1 2 32

Page 13: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash : EF56

Previous hash: 0000

Hash : DFGH

Previous hash: EF56

Hash : KL9I

Previous hash: DFGH

1 2 32

GHJ5

Page 14: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Hash : EF56

Previous hash: 0000

Hash : DFGH

Previous hash: EF56

Hash : KL9I

Previous hash: DFGH

1 2 32

GHJ5 Not

Right..!

Page 15: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

User B

User C

User D

P2P Network

Page 16: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

User B

User C

User D

P2P Network

New Block

Page 17: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

User B

User C

User D

P2P Network

New Block

Page 18: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

User B

User C

User D

Page 19: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Smart Contract

Page 20: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Contract

Smart Contract

<contract>

</contract>

100110110011010

010110...

Traditional Contract

Page 21: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.
Page 22: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

Want to buy a

land..!

User B

Land SellerTraditional Way

Middle Man

(Bank, etc)

Page 23: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

Want to buy a

land..!

User B

Land Seller

Money

Smart Contract

Digital Way

Land Title

Page 24: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

Want to buy a

land..!

User B

Land Seller

Money

Smart Contract

Digital Way

Land Title

Hold the Money as token

Title Changing Process execution

Page 25: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User B

Smart Contract

Digital Way

MoneyDIgital Signing

Execute the contract

Page 26: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

Transferring the

land ownership

Smart Contract

Digital Way

Execute the contract

Page 27: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

User A

User B

User C

User D

Seen by the whole network

Page 28: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

Smart contract code encrypted

and store in blockchain network..!

Page 29: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

The code can’t be change..!

Page 30: Blockchain Smart Contract - cambodiaict.net · Blockchain Smart Contract Author Eric Lou (Lead Blockchain Developer at RightsLedger Mekong) ... Bitcoin Block Example. Hash 0xFbDD7C6A4F7d7B7BF1b7E1CB.

We are looking for developer..!

[email protected]

rightsledger.io