猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英:...

49
猿でもわかるEthereum 入門 @syrohei

Transcript of 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英:...

Page 1: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

猿でもわかるEthereum入門@syrohei

Page 2: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開発が進められている、分散型アプリケーション (DApps) やスマート・コントラクトを構築するためのプラットフォームの名称、及び関連するオープンソース・ソフトウェア・プロジェクトの総称である。 @wikipedia

Page 3: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

????? ʕ •ᴥ•ʔ ??????

Page 4: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

What’s your Money ?お金とはなんですか?

Page 5: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥10000000

送りたい

Page 6: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥10000000

信用がない

Page 7: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

BANK !!信用が一応ある

Page 8: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

BANK !!

¥10000000 ¥10001200

Page 9: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

KURODA !!画像提供: https://www.flickr.com/photos/15237218@N00/4318431982CC BY-NC-SA 2.0Taken by World Economic Forum.

Hi, IJIGEN NO- IJIGEN NO-信用が

ある

Page 10: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10001200

¥100M

Page 11: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

How to design Money ?

Page 12: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10001200

¥100M

Page 13: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10001100

¥100M

Page 14: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10001000

¥100M

Page 15: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10000900

¥100M

Page 16: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥100.01M

¥10000000 ¥10000800

¥100M

Page 17: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥10000000 ¥10000700

Page 18: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥10000000 ¥10000007

Page 19: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Alt coin series are more than 300 !!

Page 20: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

What is BlockChainBlockChain : Data Structure that Linked previous block_Id (hash) and includes transactions.

Merkle tree structure

Page 21: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

What is merkle tree

Merkle tree structure

Page 22: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Bitcoin’s Problem

Page 23: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Scalability

Approx 6~7 tx/sec

Visa payments specs over 10000 tx/sec affome

Bitcoin’s Problem

Centralized Consensus

Miner has been centralized and low efficiency.

Bitcoin mining chips made by China and Taiwan more than 90%

Solution : We know design approach Smart Contract application

and plugged High scale Economics Consensus Algorithm

Page 24: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥10000000 ¥10000007

SmartContract (Extends Bitcoin Script) like a Application

If ( owner_moneys >= 10000007) { Balance -= msg.sender sendTo(this, toAddress, 10000000)}

SmartContract

Page 25: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

¥20000000

¥1000000

Bank as a ServiceImport backto(_to, _this, _amount)If ( owner_moneys >= 20000000) { Balance -= msg.sender lendTo(this, toAddress, 20000000)}function lendTo( owner, to ,amount){ If (expired) backto(to, this, amount) else throw}

SmartContract

¥1000000

0.05%

0.1%

0.05%

Page 26: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component
Page 27: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Open Source Software Development

Smart Contract Application Platform

The World Consensus Application Build tools

P2P Software consensus Architecture ( BlockChain )

The Next WEB ( Web3 ) Software Design approach

Proof of Work Economics Consensus Design and Gas Price model

What is Ethereum ?

Page 28: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

v0.9.36 Released 7 July 2015

Page 29: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

v1.0.0 Released 29 July 2015

Page 30: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

v1.3.4 Released 2 Feb 2016

Page 31: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

World Etherum Nodes over 7577 !!

Page 32: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Anyone can Build up Smart Contract Application.

This is a Server-Less application architecture. If you’d like to start service and create your application you can build quickly without Server ( it like a PaaS )

Page 33: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Decentralized Application Software Stack

Smart Contract

L5

L4

L3

L1

L2

Diagram featured by Yusaku Senga

Legacy TCP/IP Stacks

Kademlia DHTNetwork

BlockChain Economics Consensus

Ethereum Virtual Machine

Smart Contract Language ( Solidity)

Page 34: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component
Page 35: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

SERVERLESS !

Page 36: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

TRUSTLESS !

Page 37: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

How it works

Running on EVM(ethereum virtual machine)

Store all StatementTo the BlockChain

SmartContract(solidity language

Programing)

Compilesolc

Page 38: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

How it works

web3.js Running on EVM(ethereum virtual machine)

Store all StatementTo the BlockChain

Integrate to IPFS

Page 39: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component
Page 40: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component
Page 41: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Tools : IPFSP2P file system

Page 42: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Integrate Etherum and IPFS

Page 43: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Smart Contract Application Deploy process.

Private net Test net Live net

Page 44: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Tools : TRUFFLE

A Developing tools for Smart Contract and Dapps. Supported Solidity Smart Contract Language. And it works additional component react.js, meteor.js and it can be useful first steps of Dapps tutorials.

$ truffle init

$ truffle create:MetaCoin

$ truffle migrate

$ truffle test

$ truffle serve

Page 45: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component
Page 46: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

DEMo

Page 47: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

DEMo

$ git clone https://github.com/syrohei/truffle-tutorial

Page 48: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

On Going project on Ethereum:

Singular DTV

They finished Crawd Sale 2nd oct.

Sold out in 15min ! about $7.5M

There are source code is

https://github.com/ConsenSys/singulardtv-contracts

Page 49: 猿でもわかる 入門 - OSPN · 入門 @syrohei. Ethereumはイーサリアム(英: Ethereum)は、イーサリアム・プロジェクト[1]により開 ... additional component

Thanks!Any questions?You can find me at:

@syrohei

[email protected]