SlideShare a Scribd company logo
1 of 21
Blockchain WG
2017/8/3
Tomokazu Hatate
価値のネットワーク
• ブロックチェーン技術とは、P2Pネットワーク上において複数のノード間で同じ台
帳を共有することを実現する仕組み。
• ノード同士は互いに知り合っておく必要もなく、信頼を前提とすることなく、価値を
交換することが出来る。
• 信頼を前提としない為、価値の交換を保証する第三者機関は不要となる。
• 第三者機関が不要となる代わりに、ネットワーク全体で価値を保証する仕組み
が必要。(コンセンサスアルゴリズム)
• ブロックチェーンを使用する場合、価値を定義しその価値がどう動き、どのように
保管されるか、の観点で考える。
Don't trust. Verify.
Ethereum
Ethereum
• Ethereumとは、ブロックチェーン技術を用いた分散型台帳の一種。
• 主な特徴として、Ethereumブロックチェーン基盤上にDappsと呼ばれる分散型
アプリケーションを作成することができる。
• ブロックチェーン基盤とDappを媒介する実行プログラムをSmart Contractと呼
び、Smart Contractを介してアプリケーションからデータをブロックチェーンに記
録したり、呼び出すことができる。
• Ethereumには2タイプのアカウントがある。通常のアカウント(EOA: externally
owned accounts)とコントラクト用のアカウント(Contract Account)。
• Ethereumにおいて、暗号通貨Ether(ETH)は送金手段や売買の手段としてで
はなく、Smart Contractを実行するための燃料(gas)の位置付けとなっている。
• EtherをEthereumにおける基軸通貨としてDapps上でトークン(独自通貨)を発
行し、トークンをやり取りすることで分散型自律組織(DAO)と呼ばれる独自の
経済圏を作ることも可能。
Ethereum
• Ethereumブロックチェーンネットワーク構造
geth
Contract
DL
EOA
Dapp
Node 1
Node 2
Node 3
A B
C D
E
Dapp
Dapp
Ethereum Network
参考:『ブロックチェーン イーサリアムへの入り口』(Kindle版)
「図11:処理の流れ」を基に作成。
Smart Contract
• Smart Contract(賢い契約)とは、元々、1990年代にNick Zsaboによって提唱
された概念。(※Bitcoinよりも先に誕生している。)
• プログラミングされた契約という考え方で、Zsaboによれば自動販売機もSmart
Contractの一形態と言うことになる。
• Smart Contractの主な特徴としては、(1)仲介者を介さず直接的に契約、(2)
一定条件を満たせば契約は必ず実行、を挙げることができる。
EthereumにおけるSmart Contract
• Ethereumでは、Smart Contractを実装しやすいようSolidityと呼ばれるJava
Scriptライクな言語が用意されている。(※Solidity以外にもある。)
• Solidityは初心者向けにも優しい言語で、Mistと呼ばれるEthereum Projectが
提供するEthereum用Walletにも標準実装されている。
• Ethrereumでは、Smart Contractは通常の送金トランザクションと同様にマイニ
ングによってブロックチェーン上に登録され、Cotract Accountを通じて呼び出す
形となる。
• Smart Contractのブロックチェーンへの登録時及び実行時には一定量のgasを
手数料としてマイナーに支払う必要がある。(※プログラム暴走や悪意ある攻撃
への対策としての効果もある。)
Smart Contract実装例
• お試しに触る場合、Ethereum公式によるBrowser-Solidityを使用すると良い。
• Browser-Solidity : https://remix.ethereum.org/
• デプロイまでの基本的な流れ: http://qiita.com/tomohata/items/27d3cf2f5400ebab6f51
• 実装例:寄付の自動化: http://qiita.com/tomohata/items/637e5b8715e217796d3b
バグ
• 現状、Ethereum上で実際に作成されているSmart Contractにはバグが多い。
• 前提としてプログラムにバグは付き物。
• 如何に致命的なバグのないSmart Contractを作成するかが重要。
Corda
Corda
• CordaとはR3CEVにより提案されているDLT(分散型台帳技術)基盤。
• 金融を中心としたDLTプラットフォーム構築を目指し、R3CEVの開発者も金融
機関のシステム部門出身者が多い。(金融分野以外も対応可能。)
• Cordaネットワーク上にCorDappと呼ばれる分散型アプリケーションを通じて各
種金融取引を実現可能とする。
• ブロックチェーンではなく、各々の取引記録はネットワーク全体にブロードキャス
トされず、一部のノード同士のみで共有する。従って、秘匿性が保証されている。
• 各ノードが保有する台帳はそれぞれ異なっている。
• "Code is not law"、すなわちCordaにおいては、Ethereumで言うところの
Smart Contractは実質的には存在せず、補完的な役割を果たすに過ぎない。
※CorDappを作成するチュートリアルをR3CEVが公開しているので、
試しに検証しながら学んでみるのが一番。
<チュートリアルをまとめているので、以下参考。>
http://qiita.com/tomohata/items/8dec420744c72b029425
分散型データベース ≠ DLT
分散型データベース
出典:「分散データベースと分散台帳」(Corda.net、2016年)
• 単一のエンティティ内で複数ノードが合意形成して一意のデータべースを共有。
• 単一のエンティティによって運営されるものである以上、中央管理者が必要となる。
• また、エンティティ内で動作する為、ノード同士による互いの信頼が前提とされる。
DLT(分散型台帳)
出典:「分散データベースと分散台帳」(Corda.net、2016年)
Cordaの定義では、
• 互いに信頼することなく、共有レコードを他ノードと共に維持することを可能にする。
• ノードは異なる組織により運営され、また互いに信頼できない。
• 従って、受け取ったデータを個別に検証し、公開して良い範囲内でデータを共有する。
Corda ≠ ブロックチェーン
• 一意の台帳を共有することなく、取引をするノード間のみで個々のデータを共有。
出典:Corda Keyconsepts - The ledger ( https://docs.corda.net/key-concepts-ledger.html )
Corda 3つの特徴
出典:Corda Keyconsepts ( https://docs.corda.net/key-concepts.html )
Cordaでは以下3点の技術要素を抑えておくことが重要。
• State
• Contract
• Flow
※何れもCorDapp作成時に要件に合わせてコーディングする。
State
• Stateは状態を示すものでState自身は更新されない。
• 現在のStateは過去のStateをインプットとし、次のStateへのアウトプットとなる。
• 一連のStateは繋がっており、未使用Stateと共にVaultという領域に格納される。
• Stateには、Contract、関与ノード情報、金額等の遷移情報が格納されている。
出典: Corda -Keyconcepts - State ( https://docs.corda.net/key-concepts-states.html )
Contract
• ContractはCordaではSmart Contractのことではない。
• Stateが遷移する際にTransactionが生成されるが、それを検証する機能の位置づけ。
出典: Corda -Keyconcepts - Contract ( https://docs.corda.net/key-concepts-contracts.html)
Flow
• Flowはノード同士のやり取り制御する機能を担う。
• Cordaでは、P2Pネットワーク上にTransactionがブロードキャストしない為、Flow
を利用してコミット(台帳を更新)までのルートを定義する。
出典: Corda -Keyconcepts - Contract ( https://docs.corda.net/key-concepts-contracts.html)
終わりに
ブロックチェーンが必要とされる場面
(例)
• デジタル化できる資産である。
• 互いに信頼できないエンティティが複数存在している。
• 各エンティティは別リージョン内で活動している。
• 各エンティティは一意のデータを共有する必要がある。
• データは改竄されてはならない。
• データに対するトレーサビリティが必要である。
• どういうケースでブロックチェーン基盤が使用されるか想定することで、ブロック
チェーンが真に必要とされるユースケースをより効果的に考えていくことができ
る。

More Related Content

Recently uploaded

新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptxsn679259
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...Toru Tamaki
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsWSO2
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video UnderstandingToru Tamaki
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Gamesatsushi061452
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 

Recently uploaded (10)

新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Blockchain wg 20170803