blockchain-lab · 12 phase 2 •ethereum based –smart contracts –oracles –tokens (vgl. icos)...

27
1 Blockchain-Lab V0.3 AUSTRIAPRO Dr. Christian Baumann 19.9.2018

Upload: others

Post on 07-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

1

Blockchain-Lab V0.3

AUSTRIAPRO

Dr. Christian Baumann

19.9.2018

Page 2: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

2

Inhalt

• Phase 1 „classic“

• Phase 2 „Ethereum“ – smart contracts

• Phase 3 „MultiChain“

Page 3: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

3

Phase 1

• „classic“ (crypto coin based) blockchains

– Look & Feel wie Bitcoin, Litecoin … Client

– „Hands on“ • Installation & Betrieb Wallet

• “Werte” transferieren (senden, empfangen)

• Nachrichten signieren

– Mining ausprobieren • Standalone, CPU, GPU

• Über Miningpool

– Weitere Tools kennenlernen • Blockexplorer

• Paper-, Brain-Wallets

– Unterschied „CryptoCurrency – Blockchain“

Page 4: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

4

Classic crypto coin (am Beispiel C2coin)

• Wallet

– Wallet für Windows: http://www4.baumann.at/downloads/c2coin_Wallet_Windows-20141107.zip

– Kurzanleitung dazu: http://www4.baumann.at/downloads/C2coin-Readme.txt

• Mining

– Mining mit GPUs: http://www4.baumann.at/downloads/Mining-with-GPUs.txt

– Miningportal: http://coinz.at:81/

• Tools

– Faucet (coins senden lassen) http://coinz.at/c2coin/send.php

– Infoseite zum C2coin Netz: http://coinz.at/c2coin/

– Einfacher Blockexplorer: http://coinz.at/c2coin/be.php

– Walletgenerator: http://coinz.at/walletgenerator/

22.2.2011

Page 5: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

5

Beispiel: C2coin - Wallet

Page 6: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

6

Beispiel: C2coin – GPU Mining

Page 7: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

7

Beispiel: Miningportal coinz.at

Page 8: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

8

Beispiel: C2coin – „Faucet“

Page 9: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

9

Beispiel: C2coin – Network Info

Page 10: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

10

Beispiel: C2coin – Block Explorer

Page 11: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

11

Beispiel: WalletGenerator

Page 12: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

12

Phase 2

• Ethereum based

– Smart Contracts

– Oracles

– Tokens (vgl. ICOs)

• Lab: Ethereum Test-Chain (Private)

– Bootnode

– Node (mit On Demand Mining) • CPU Mining

• => Setup eigener Node

– Anleitung siehe https://blockchains.web-lab.at/austriapro/Ethereum-Testnet_20180528.pdf

Page 13: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

13

Ethereum Test-Chain - console

Page 14: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

14

Ethereum Test-Chain - „Mist“ - Wallet

Page 15: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

15

Ethereum Test-Chain - Smart Contract

Page 16: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

16

News

• => 19.9.2018

Page 17: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

17

Smart Contract - Code

Page 18: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

18

Smart Contract – „Beobachten“

• „Installieren“ in eigener Umgebung (Wallet)

• Adresse und Schnittstelle müssen bekannt sein

Page 19: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

19

• Aufrufen von definierten Funktionen

• Übergabe von Parameter/n

• Bezahlen der Gebühr (“Gas“)

• http://blockchains.web-

lab.at/austriapro/MyContract1.js

Smart Contract - Nutzung

Page 20: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

20

Phase 3 - MultiChain

• MultiChain - Node

– Installiert im Lab

– Web-GUI

• Demo

• Setup eigener Node

• Next Steps

Page 21: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

21

MultiChain Web-GUI

• Node hat kein GUI

– API Schnittstelle (RPC über https/JSON)

– => Web-GUI

• https://blockchains.web-lab.at/austriapro/multichain/

• Credentials (s.a. Mailing)

Page 22: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

22

MultiChain Web-GUI

Page 23: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

23

MultiChain Demo

• Infos

– Node, Permissions, Infos, Help

• Assets

– Issue

– Update

– Send

• Streams

– Create

– Publish

– View

• Blocks

Page 24: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

24

MultiChain Setup Node

• Download, Infos, Tutorials …

– https://www.multichain.com/

– Aktuell Version 2.0 alpha 4

• In Verzeichnis entpacken

– oder selbst compilieren ;-)

• Erster Start – multichaind [email protected]:7177

– public key wird angezeigt

– => an uns senden => Freigabe

• Start – multichaind apro-lab-1

Page 25: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

25

MultiChain Next Steps

• Sie

– Node installieren

– Eigene Entwicklungen? • Web-GUI

• API

– Basis: https://github.com/MultiChain

• Wir

– Weitere Demos: Wünsche/Vorschläge? • (Notarization, Messdaten, Zertifikate …)

– Sourcecode auf Labs-Homepage und/oder

– https://github.com/austriapro

Page 26: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

26

Startseite Lab

• https://blockchains.web-lab.at/austriapro/

22.2.2011

Page 27: Blockchain-Lab · 12 Phase 2 •Ethereum based –Smart Contracts –Oracles –Tokens (vgl. ICOs) •Lab: Ethereum Test-Chain (Private) –Bootnode –Node (mit On Demand Mining)

27

Kontakt

AUSTRIAPRO

http://www.austriapro.at

[email protected]

DI Dr. Christian Baumann

[email protected]

+43 664 43 24 243