- blockchain basics · 2018-10-15 · blockchain rules select blockchain technologies (ledger,...

24

Upload: others

Post on 28-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify
Page 2: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

- Blockchain basics

- What is Microsofts position

- How to get started?

- Smart Contract Coding

Agenda

Page 3: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

How does it work?

Page 4: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

What is Blockchain?

Secure

Shared

Distributed

Page 5: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Motivation for Blockchain?Traditional System

Centralized system with stored ledger

Blockchain System

Distributed system with distributed ledger

Page 6: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Tokenization

object Secure digital representation

username & password,

biometrics, …

Digest

0x27a38fd67d1233…

Digest

0x27a38fd67d1233…

0x12834ae7f7e9bc…

0x002142fdc61b22…

0x9f214bc2143a04…

Digest

0x184a3b1dd2ef34…

Page 7: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Block of chained tokens -> Blockchain

0x9786724cfe929122…

Transaction

0xa01312bc92df9211…

0x9786724cfe929122…

0x7982144fa241b27c…

0xa01312bc92df9211…

authentic

transparent

shared

Page 8: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

How we gain trust (or: what‘s mining?)

0x??????????????????…

Consensusauthentic

transparent

shared 0x12834ae7f7e9bc…

0x27a38fd67d1233…

0x002142fdc61b22…

???

find a hash < 0x01…

Proof of Work

Page 9: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Why Microsoft?

Page 10: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Blockchain | Current & Evolution

Blockchain 1.0

Simple State

Machine

Blockchain 2.0

State Machine +

Code

Blockchain 3.0

State Machine + Code

0x1117292138928edc23dc21323c

Property

Value

0x893423022ef8s92d1223412dds321ac

0x1117292138928edc23dc21323c

Property

Value0x893423022ef8s92d1

223412dds321ac

Codecontract accountRegistry{mapping (string => address) accountMap;

function accountRegistry(){….

0x1117292138928edc23dc21323c

Property

Value0x893423022ef8s92d1

223412dds321ac

Codecontract accountRegistry{mapping (string => address) accountMap;

function accountRegistry(){….

Cryptlets

What is missing for enterpise use cases?

• Identity Management

• Integration

• Performance

• Governance & Compliance

• Contract Management

• …

Page 11: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Blockchain Infrastructure made easy

ARM Template

Page 12: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Why Cryptlets?

Blockchain Ledger

Today

Cryptlets

Page 13: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Coding „Best Practices“

Computes „Gas Consumption“

Prevents Compiler Attacks

Kinakuta – Static Contract Analysis

F*

"PUSH1 0x03 JUMPDEST

PUSH1 0x01 SAWP1 SUB DUP1

PUSH1 0x02 JUMPI PUSH9

0x010000000000000016 JUMP

JUMPDEST PUSH4 0xbadf000d

PUSH1 0x11 SSTORE STOP“

F*

Page 14: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

How to start?

Page 15: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Use cases

Financial

ServicesCredits scoring,

Clearing,

Complementary

currency

ManufacturingSupply chain

tracking,

replacement part

tracking

Commercewarranty tracking,

loyalty programs

Automotiveelectric charging,

insurance tracking

Public Sector

Organ donation,

land register,

ressource tracking,

voting

Page 16: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Best PracticesPro

• Don’t start technologically

• Don‘t replace, but re-invented

• Ensure that digital identity can be

derived (Hashing)

• You are not alone: share in

consortiums and involve

additional stakeholder

• If required, make sure, additional

information can be stored

securely off-chain

Contra

• Some transactions are not suitable

for a distributed consensus

process

• Blockchain is not required if you

are the only participant or a single

instance carries all the trust (PKI is

not dead)

If you can hash it, you can use it in your blockchain

Page 17: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Process

Specify

Business ModelUse Machine Learning

and Advanced Analytics

Define

Blockchain

Rules

Select Blockchain

Technologies(Ledger, Consensus, Sidechains, P2P, etc.)

Distribute

Ledger

Match with existing needs

Quantify market readiness

Identify Risks and Blocker

Plan for

Run and

Scale

Blockchain Innovation

Core Process

Analyze & Improve

Incentive Alignment

Who

What

When

Why

BMI Workshop

Centralized vs. Decentralized

Page 18: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Smart Contracts

Page 19: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Trading by using an escrow

Escrow

Buyer Seller

Page 20: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Naive Smart contract as escrow

Escrow

Buyer Seller

Page 21: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Solid Smart contract as escrow

Escrow

Buyer Seller

Page 22: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

Code is Law!

We don‘t need weapons, we code!

Page 23: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify
Page 24: - Blockchain basics · 2018-10-15 · Blockchain Rules Select Blockchain Technologies (Ledger, Consensus, Sidechains, P2P, etc.) Distribute Ledger Match with existing needs Quantify

© 2016 Microsoft Corporation. All rights reserved. Because

Microsoft must respond to changing market conditions, it should

not be interpreted to be a commitment on the part of Microsoft,

and Microsoft cannot guarantee the accuracy of any information

provided after the date of this presentation. MICROSOFT MAKES

NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE

INFORMATION IN THIS PRESENTATION.

Vielen Dank