Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
サービスデザインプロジェクトB 第1回「ブロックチェーン概論」 / Overview of B...
Search
Kenji Saito
PRO
October 12, 2020
Technology
0
190
サービスデザインプロジェクトB 第1回「ブロックチェーン概論」 / Overview of Blockchain
2020年10月12日、慶應義塾大学大学院メディアデザイン研究科の「サービスデザインプロジェクトB (2020 秋)」第1回にて使用したスライドです。
Kenji Saito
PRO
October 12, 2020
Tweet
Share
More Decks by Kenji Saito
See All by Kenji Saito
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
22
自然言語の扱いと翻訳のためのプロンプト / Natural Language Handling and Prompts for Translation
ks91
PRO
0
11
研究って何だっけ / What is Research?
ks91
PRO
0
22
ブロックチェーンと分散ファイナンス概論 / Introduction to Blockchain and Decentralized Finance
ks91
PRO
0
12
大規模言語モデルの原理と使いこなしの原則 / Principles of Large Language Models and Their Use
ks91
PRO
0
16
講師研究紹介 / Research Introduction of the Lecturer
ks91
PRO
0
34
本授業におけるチャットボットの使い方 / How to Use Chatbots in This Class
ks91
PRO
0
42
LLM とプロンプトエンジニアリング/チューターをビルドする / LLM, Prompt Engineering and Building Tutors
ks91
PRO
1
210
講師自己紹介 / Self-Introduction of the Lecturer
ks91
PRO
0
43
Other Decks in Technology
See All in Technology
バックオフィス向け toB SaaS バクラクにおけるレコメンド技術活用 / recommender-systems-in-layerx-bakuraku
yuya4
2
290
【2025年度新卒技術研修】100分で学ぶ サイバーエージェントのデータベース 活用事例とMySQLパフォーマンス調査
cyberagentdevelopers
PRO
4
6.5k
MCP Documentation Server @AI Coding Meetup #1
yyoshiki41
2
2.6k
はてなの開発20年史と DevOpsの歩み / DevOpsDays Tokyo 2025 Keynote
daiksy
5
1.4k
Amebaにおける Platform Engineeringの実践
kumorn5s
6
900
近年の PyCon 情勢から見た PyCon APAC のまとめ
terapyon
0
290
入社後SREチームのミッションや課題の整理をした話
morix1500
1
250
20250413_湘南kaggler会_音声認識で使うのってメルス・・・なんだっけ?
sugupoko
1
390
Amazon S3 Tables + Amazon Athena / Apache Iceberg
okaru
0
240
やさしいMCP入門
minorun365
PRO
147
95k
改めて学ぶ Trait の使い方 / phpcon odawara 2025
meihei3
1
570
Tokyo dbt Meetup #13 dbtと連携するBI製品&機能ざっくり紹介
sagara
0
430
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
104
19k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.2k
GitHub's CSS Performance
jonrohan
1030
460k
Faster Mobile Websites
deanohume
306
31k
Making Projects Easy
brettharned
116
6.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
119
51k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
30k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Documentation Writing (for coders)
carmenintech
69
4.7k
Transcript
B 2020 1 ( ) B 2020 — 1 —
2020-10-12 – p.1/56
https://speakerdeck.com/ks91 ( ) ( . . . ) Discord Discord
( / / ) Zoom URL ( ) B 2020 — 1 — 2020-10-12 – p.2/56
( ) SFC ( ) CSO (Chief Science Officer) 1993
( ) 2006 ( ) SFC 20 P2P (Peer-to-Peer) ( 9 ) 2011 2018 2019 2019 2020 2020 → ( ) B 2020 — 1 — 2020-10-12 – p.3/56
2020 9 60 (2020) : . . . ( )
. . . B 2020 — 1 — 2020-10-12 – p.4/56
. . . ( ) 2018 1 2 2018 OK
Google, Google ( ) Python (2020 ) ( ) ∈ Alexa, B 2020 — 1 — 2020-10-12 – p.5/56
Alexa, ত࣌ ੈلޙ ࣾձγεςϜ ࣾձڥ ػց ٕज़ ਓؒ ࣗಈγεςϜ ྩ࣌
ੈلલ ిؾ͚ͭͯ ͍ ͍ ిؾ͚ͭͯ ͜ͷ݅ͷͱ͖ ٕज़Ͱ͋Γࣾձڥˠࣗવڥ ਓ ⇒ ( ) B 2020 — 1 — 2020-10-12 – p.6/56
Python 3 Ethereum B 2020 — 1 — 2020-10-12 –
p.7/56
B 2020 — 1 — 2020-10-12 – p.8/56
(1/2) — World Wide Web SARS-CoV-2 COVID-19 2020 1990 World
Wide Web End-to-End ( ) ( ) ( ) End-to-End ( ) 2008 B 2020 — 1 — 2020-10-12 – p.9/56
(2/2) — 2020 ( ) B 2020 — 1 —
2020-10-12 – p.10/56
← Python Flask (Python ) Ethereum Brownie (Python Ethereum )
BBc-1 ( ) B 2020 — 1 — 2020-10-12 – p.11/56
( 2 ) ( ) Discord ( ) ( :
) . . . : ( ) : DApp ( ) B 2020 — 1 — 2020-10-12 – p.12/56
( ) 25% 25% 20% 30% ( ) B 2020
— 1 — 2020-10-12 – p.13/56
( ) 1 10 12 • 2 10 19 3
10 26 1 4 11 2 2 5 11 9 1 6 11 16 2 7 11 30 8 12 7 B 2020 — 1 — 2020-10-12 – p.14/56
1. 2. Ethereum 3. B 2020 — 1 — 2020-10-12
– p.15/56
1. B 2020 — 1 — 2020-10-12 – p.16/56
( ) ( ) ( ) (BP : Blockchain Property
) BP-1 : BP-2 : BP-3 : ( ) ( ) B 2020 — 1 — 2020-10-12 – p.17/56
( ) (LIFO : Last In, First Out) ( )
B 2020 — 1 — 2020-10-12 – p.18/56
( ) ( ) ( ) ( ) ( 16
) SHA (Secure Hash Algorithm) ( ) 1bit B 2020 — 1 — 2020-10-12 – p.19/56
( ) ( ) < , > ( ) ←
: < , > : : < , , > : OK ( 1 ) NG ( ) B 2020 — 1 — 2020-10-12 – p.20/56
BP-1 ( ), BP-2 ( ) BBc-1 f : →
BP-3 ( ) ( ) ( ) ← BP-2 ← BP-3 ( ) ← BP-3 + ← BP-{1,2} B 2020 — 1 — 2020-10-12 – p.21/56
[Lamport 1984][Schneider 1990] (1) (2) (3) (4) ( ) ←
↑ B 2020 — 1 — 2020-10-12 – p.22/56
TX : transaction ( 4 TX ) SMRP (State Machine
Replication Problem) SMRP-1 ( ) SMRP-2 : B 2020 — 1 — 2020-10-12 – p.23/56
( ) ( ) ϒϩοΫ൪߸O ϒϩοΫ൪߸O ϒϩοΫ൪߸O ϒϩοΫ൪߸O
ϒϩοΫ൪߸O ϒϩοΫ൪߸O ϒϩοΫ൪߸O ϒϩοΫ൪߸O ͍ͪΜهɾॻ͖͑ͷίετ͕ߴ͍ྺ࢙ ࠷վ͟Μ͠ʹ͍͘ྺ࢙ ͕༗ޮ ͻͱͭखલͷϒϩοΫͷ ʮμΠδΣετʯ σδλϧॺ໊͞Εͨ ʮτϥϯβΫγϣϯ औҾ ʯ ϒϩοΫΛ࡞ΔͨΊʹɺͦͷʮμΠδΣετʯ͕͋ΔҎԼͱ͍͏݅Λຬͨͨ͠Γ 1SPPGPG8PSL Ծ௨՟ͷ࣋ͪʹԠͨ͡ݖརΛͬͨථͰউͬͨΓ 1SPPGPG4UBLF ͢Δඞཁ͕͋Δ ίετ͕͔͔Δ ϒϩοΫΛ࡞ΔਓͦͷதʹࣗʹѼͯͨ Ծ௨՟ͰͷใुΛॻ͖ࠐΉ͜ͱ͕Ͱ͖ɺ ͦͷϒϩοΫ͕༗ޮͳྺ࢙ͷதʹ͋Δ߹ʹ ݶΓใु༗ޮͱͳΔ τϥϯβΫγϣϯͷଘࡏΛ֬ೝ͢Δ ͨΊͷޮతͳํ๏͕ఏڙ͞ΕΔ ਖ਼ੑ ଘࡏੑ །Ұੑ Proof of Work ( ) . . . → B 2020 — 1 — 2020-10-12 – p.24/56
(BP-3 ) ( : ) (BP-3 ) ( : )
BP-{1,2,3} BP-{1, 2} ⇒ B 2020 — 1 — 2020-10-12 – p.25/56
(Confidentiality) BP-{1,2,3} ↑ ( = ) (Integrity) BP-3 (Availability) BP-2
B 2020 — 1 — 2020-10-12 – p.26/56
2009 ↑ 11 B 2020 — 1 — 2020-10-12 –
p.27/56
( ) ADR (Active (space) Debris Removal) : https://doi.org/10.1109/TCSS.2018.2890655 (1930
) ( ) B 2020 — 1 — 2020-10-12 – p.28/56
( ) ( ) ( ) B 2020 — 1
— 2020-10-12 – p.29/56
( ) ( - ) : https://doi.org/10.1016/j.future.2019.05.019 B 2020 —
1 — 2020-10-12 – p.30/56
( ) ( ) ( ) B 2020 — 1
— 2020-10-12 – p.31/56
( ) B 2020 — 1 — 2020-10-12 – p.32/56
/ ( ) ( ) ( ) ( ) B
2020 — 1 — 2020-10-12 – p.33/56
( ) ( ) ( ) B 2020 — 1
— 2020-10-12 – p.34/56
( ) B 2020 — 1 — 2020-10-12 – p.35/56
( ) ( ) B 2020 — 1 — 2020-10-12
– p.36/56
B 2020 — 1 — 2020-10-12 – p.37/56
with ( ) ( ) ( ) B 2020 —
1 — 2020-10-12 – p.38/56
DNS IP AS B 2020 — 1 — 2020-10-12 –
p.39/56
( ) ( ) (web ) B 2020 — 1
— 2020-10-12 – p.40/56
( ) ( ) ( ) ( ) ( )
( ) B 2020 — 1 — 2020-10-12 – p.41/56
( ) ( ) 3D B 2020 — 1 —
2020-10-12 – p.42/56
2. Ethereum macOS (Catalina 10.15.7) + Homebrew Linux (Ubuntu 18.04)
Windows 10 + Windows Subsystem for Linux (Ubuntu 18.04 ) Ethereum solidity brownie B 2020 — 1 — 2020-10-12 – p.43/56
Solidity Ethereum http://solidity.readthedocs.io/en/latest/installing-solidity.html Linux (on Windows) “sudo apt”, macOS “brew”
solc 0.7.3 (10/10 ) $ solc --version brownie py-solc-x solc (dependencies) ( solc py-solc-x ) B 2020 — 1 — 2020-10-12 – p.44/56
Python3 macOS $ brew install python3 Linux $ sudo add-apt-repository
ppa:deadsnakes/ppa $ sudo apt update $ sudo apt install python3.7 python3.7-dev python3.7-venv python3.7-tk 16.10 python3(.7) apt python3.8 B 2020 — 1 — 2020-10-12 – p.45/56
macOS : . . . macOS wget brew dyld: Library
not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib $ brew uninstall --force gettext $ brew install gettext B 2020 — 1 — 2020-10-12 – p.46/56
Python (venv) macOS ‘python3.7’ ‘python3’ $ python3.7 -m venv bbc1env
$ source bbc1env/bin/activate (bbc1env) $ pip install -U pip (bbc1env) $ pip install wheel bbc1env ( BBc-1 ) ( ) (bbc1env) $ deactivate B 2020 — 1 — 2020-10-12 – p.47/56
Ganache CLI Ethereum RPC npm ( ) macOS https://qiita.com/kyosuke5_20/items/c5f68fc9d89b84c0df09 Linux
https://qiita.com/seibe/items/36cef7df85fe2cefa3ea npm Ganache CLI $ sudo npm install -g ganache-cli B 2020 — 1 — 2020-10-12 – p.48/56
Brownie Python Ethereum https://eth-brownie.readthedocs.io Brownie $ pip install eth-brownie version
1.8.4 (5/13 ) B 2020 — 1 — 2020-10-12 – p.49/56
$ brownie init ( ERC-20 ) $ brownie bake token
$ cd token ( ) $ brownie compile ( ) $ pytest tests B 2020 — 1 — 2020-10-12 – p.50/56
Brownie $ brownie console Python >>> len(accounts) 10 >>> accounts[0].balance()
100000000000000000000 >>> quit() B 2020 — 1 — 2020-10-12 – p.51/56
3. Ethereum ropsten B 2020 — 1 — 2020-10-12 –
p.52/56
infura.io Brownie https://infura.io SIGN UP PROJECT ID infura Ethereum API
infura . . . infura.io PROJECT ID Brownie “brownie-config.yaml” . . . YAML WEB3_INFURA_PROJECT_ID PROJECT ID (∼/.bash_profile ) $ export WEB3_INFURA_PROJECT_ID= PROJECT ID B 2020 — 1 — 2020-10-12 – p.53/56
ropsten ETH brownie console ropsten >>> network.disconnect() >>> network.connect(’ropsten’) >>>
len(accounts) 0 >>> accounts.add() <LocalAccount object ’ 16 ’> >>> accounts[0].private_key 16 >>> quit() Ropsten Ethereum Faucet 1.0ETH https://faucet.ropsten.be ( ) https://metamask.io/ B 2020 — 1 — 2020-10-12 – p.54/56
ropsten ETH brownie console ropsten ETH >>> network.disconnect() >>> network.connect(’ropsten’)
>>> len(accounts) 0 >>> accounts.add( 16 ) <LocalAccount object ’ 16 ’> >>> accounts[0].balace() ETH >>> quit() B 2020 — 1 — 2020-10-12 – p.55/56
B 2020 — 1 — 2020-10-12 – p.56/56