SlideShare a Scribd company logo
Copyright © SAS Institute Inc. All rights reserved.
Blockchain, AI and Machine Learning
Tao Wang
2019
This presentation is based on information in the public domain
Opinions expressed are solely my own, therefore may not represent the views of my employer
Copyright © SAS Institute Inc. All rights reserved.
What is Blockchain?
A single-linked list, distributed/duplicated/decentralized
Image source: https://en.wikipedia.org/wiki/File:Bitcoin_Block_Data.svg
2
Copyright © SAS Institute Inc. All rights reserved.
Part 1:
Bitcoin
3
Copyright © SAS Institute Inc. All rights reserved.
Bitcoin = the king of cryptocurrencies
source: https://coinmarketcap.com
4
Running on the Bitcoin blockchain
Copyright © SAS Institute Inc. All rights reserved.
History
• Satoshi Nakamoto
• Created the reference implementation with a
Genesis Block of 50 Bitcoins ($$$ from air)
• 2008
• August 18, Domain name "bitcoin.org"
registered
• October 31 (*Halloween), Bitcoin white paper
published
• November 09, Bitcoin project registered at
SourceForge.net
• 2009
• January 3, Genesis Block was created
• January 9, Bitcoin v0.1 released and announced
• January 12, First Bitcoin transaction, in block 170
5
Copyright © SAS Institute Inc. All rights reserved.
Who is Satoshi Nakomoto?
A person, a group of people, an alien from the Next Dimension?
6
Copyright © SAS Institute Inc. All rights reserved.
The Bitcoin paper
Bitcoin: A Peer-to-Peer Electronic Cash System
• Bitcoin blockchain = public/distributed ledger
• Transactions are stored in blocks with duplicates in each node
• Goal: $$$ goes from A to B without going through a financial institution
Source: NANCY LIAO, A BRIEF INTRODUCTION TO BLOCKCHAIN
Source: IBM, Making Blockchain Real for Business: Explained
7
Copyright © SAS Institute Inc. All rights reserved.
#1 challenge for decentralized digital currency?
double-spending
Source: Huan Ke, Bitcoin/BlockChain for Experts
8
Copyright © SAS Institute Inc. All rights reserved.
Solution to double-spending
• Timestamp transactions by hashing them into an ongoing chain of hash-
based proof-of-work (mining), forming a record that cannot be changed
without redoing the proof-of-work
Image source: https://en.wikipedia.org/wiki/File:Bitcoin_Block_Data.svg
Source: Huan Ke, Bitcoin/BlockChain for Experts
9
Copyright © SAS Institute Inc. All rights reserved.
Merkle Tree
Source: https://en.wikipedia.org/wiki/Merkle_tree#/media/File:Hash_Tree.svg
10
Copyright © SAS Institute Inc. All rights reserved.
Mining = Proof-of-Work
• Mining = finding a nonce value (integer)
• When hashed with a combined hash of all transactions in a block, the
resulting hash begins with pre-defined a number of zeros
• Why is mining so difficult?
• No smart way to find the nonce, you just need to try every integer
• More zeros required = more difficult
Source: Eugene Luzgin, BLOCKCHAIN: Evolution from bitcoin to smart contracts, December 2017
Source: Tong Li, Cryptocurrency, Blockchain, Mining? What?
11
Copyright © SAS Institute Inc. All rights reserved.
How does it work really?
• New transactions are broadcasted → all nodes
• Each node picks up the info → a block
• Each node tries to do Proof of Work (PoW) for its block
• Consensus
• Mining is difficult!
• Proof of Work = Proof of Waste, sort of
• When a node finds the answer, it broadcasts the block to all
• All nodes will verify & accept if it is valid → verification is easy!
• All nodes create the next block in the chain, independently → see next
page for handling disagreement
12
Copyright © SAS Institute Inc. All rights reserved.
What if there is a disagreement?
Let’s vote!
• Proof-of-work = CPUs are the voters, one CPU one vote
• Longest (most difficult) chain = greatest proof-of-work
• How to reach Consensus?
• most CPUs are honest
• honest chain will grow the fastest and outpace any competing/dishonest chain
Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond
13
Copyright © SAS Institute Inc. All rights reserved.
Why are we doing this (mining)?
Incentive
• First block carries 50 Bitcoins (great, money created from the air)
• All the following blocks carry certain amount of Bitcoins (25, 12.5, etc.)
• What are the expenses?
• CPU/GPU time
• Electricity
14
Copyright © SAS Institute Inc. All rights reserved.
Where to obtain Bitcoins other than mining
Mining is very difficult (1 Bitcoin = 1,000+ years of your CPU time)
• Exchanges
Source: https://coinmarketcap.com/currencies/bitcoin/#markets
15
Copyright © SAS Institute Inc. All rights reserved.
Privacy
• Money is sent to an account/address (public key)
• Your private key can open the digital wallet
Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond
Source: https://www.youtube.com/watch?v=UieiMU-ImvI&list=PLQVvvaa0QuDcq2QME4pfeh0cE71mkb_qz
16
Copyright © SAS Institute Inc. All rights reserved.
Think twice about your privacy
• What is required
• Transactions should be private
• Identity should not be linked to a transaction
• What is the reality
• Transactions are public
• Some public keys are well-known (no privacy for them)
• Using ML techniques, more details can be discovered
BTC inputs to the famous pizza purchase address (red), depth=4
Source: https://cloud.google.com/blog/big-data/2018/02/bitcoin-in-bigquery-blockchain-analytics-on-public-data
17
Copyright © SAS Institute Inc. All rights reserved.
Who Accepts Bitcoins?
• Overstock.com
• Newegg.com
• Microsoft XBOX Network
• Telsa Motors
• Time Inc (publisher)
• Virgin Galactic
• Wordpress
• BitPay claims 44,000 merchants!
Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond
18
Copyright © SAS Institute Inc. All rights reserved.
Part 2:
Ethereum and beyond
19
Copyright © SAS Institute Inc. All rights reserved.
Ethereum
• Ethereum
• Blockchain platform that goes beyond money
• The platform for many other alt-coins & ICOs (Initial Coin Offering)
• Vitalik Buterin
• SEC
- Bitcoin & Ethereum are not securities (will NOT be regulated by SEC?)
- Some ICOs may be
- STO is going to replace ICO?
20
Copyright © SAS Institute Inc. All rights reserved.
Everything can be tokenized!
21
• Royal Albert Hall, from 1867
• Wimbledon debentures, from 1920
• SEC no-action letter 2006 WL 488513
• Solar farm? Services?
Copyright © SAS Institute Inc. All rights reserved.
SEC & ICO
22
Copyright © SAS Institute Inc. All rights reserved.
The Ethereum paper
A Next-Generation Smart Contract and Decentralized Application Platform
• Smart contract = automated process
• Insurance claim been denied by a dishonest provider? Use smart contract!
• Turing-complete
• EVM (Ethereum Virtual Machine)
• Decentralized Applications (DApps)
• Decentralized “Facebook”, “Twitter”, etc.
• Distributed Autonomous Organizations (DAOs)
23
Copyright © SAS Institute Inc. All rights reserved.
Why is Ethereum so important?
• Decentralized Internet = Web 3.0
• Facebook scandal (centralized Internet)
• GDPR compliance and Sovereign Identity
• Unstoppable AI = Artificial General Intelligence
• Can you turn off all the machines on Ethereum
blockchains?
Source: https://www.youtube.com/watch?v=5Tr13l0O1Ws
24
Copyright © SAS Institute Inc. All rights reserved.
Public, permissioned, and private blockchains
Source: https://www.youtube.com/watch?v=OLtsQk6qceE
25
Copyright © SAS Institute Inc. All rights reserved.
Public blockchain vs. permissioned blockchain
Source: https://www.youtube.com/watch?v=Y177TCUc4g0
26
Copyright © SAS Institute Inc. All rights reserved.
Blockchain for X
Industries what will be disrupted (not replaced) by Blockchain
• Financial (banking, exchanges, cross-border money transfers)
• Insurance
• Claims been denied by a dishonest provider? Use smart contract!
• Supply Chain
• Government
• DMV (car titles)
• County’s public record
• Healthcare
• Retail
• Real Estate
• Online gaming/dating
• Elections, voter ID (Sovereign Identity, can be verified everywhere)
• Your Industry
Source: https://venturebeat.com/2016/10/22/blockchain-tech-could-fight-voter-fraud-and-these-countries-are-testing-it/
Source: https://www.netscribes.com/blockchain-patent-landscape
27
Copyright © SAS Institute Inc. All rights reserved.
Applications of blockchain
Blockchain for X, continued
Source: https://www.ccn.com/bitcoin-wedding-marriage-on-the-blockchain/ Source: https://www.coindesk.com/walmart-blockchain-pilot-china-pork-market
Source: https://www.coindesk.com/circles-uk-license-blockchain-impact Source: https://bitcoinist.com/visa-blockchain-solution-payments/
28
Copyright © SAS Institute Inc. All rights reserved.
Blockchain for social network
Steemit
• Creator of Steemit: Daniel Larimer
• Idea: get paid if people like your article
29
Copyright © SAS Institute Inc. All rights reserved.
Blockchain for banking
Take a look at JPM
30
Source: CNBC, Feb 14, 2019 (Happy Valentine's Day)
Source: J.P. MORGAN, 2018
Source: CNBC, 2017
Copyright © SAS Institute Inc. All rights reserved.
Blockchain for X
Who is next?
31
Source: Twitter
Source: Bloomberg
Source: nytimes
Copyright © SAS Institute Inc. All rights reserved.
Industry use cases of permissioned blockchain
Source: https://www.hyperledger.org/wp-content/uploads/2018/03/The-Hyperledger-Vision-11-1.pdf
32
Copyright © SAS Institute Inc. All rights reserved.
Consensus algorithms
• PoW – Proof of Work
• PoS - Proof of Stake
• Delegated PoS
• PoA - Proof-of-Authority
• PoWeight: Proof-of-Weight
• …
33
Copyright © SAS Institute Inc. All rights reserved.
HyperLedger
Source: https://www.hyperledger.org
34
Copyright © SAS Institute Inc. All rights reserved.
Part 3:
A Unified Analytical Framework for
Trustable Machine Learning and
Automation Running with Blockchain
35
Copyright © SAS Institute Inc. All rights reserved.
Goals
Fusion of blockchain and AI
• Blockchain
• Trusted data source for AI
• AI
• Make blockchain smarter
• Gartner: blockchain "is providing decentralized trust across a network of
untrusted participants. The potential ramifications for analytics use cases
are significant"
36
Copyright © SAS Institute Inc. All rights reserved.
Which blockchains to use?
So many are out there…
• Public blockchains
• ETH
• TRX
• EOS
• …
• Permissioned blockchains
37
Copyright © SAS Institute Inc. All rights reserved.
Where is your database?
Data storage on public blockchains can be very expensive
• IPDB (Interplanetary Database), IPFS (Interplanetary File System), others
38
Source: medium.com Source: ipfs.io
Copyright © SAS Institute Inc. All rights reserved.
A Unified Framework for Trustable AI, Machine Learning and Analytics
AI
Analytics Machine Learning
Blockchain – power of trust
39
Copyright © SAS Institute Inc. All rights reserved.
Problems and the solution
• Problems
• Trust
- ML uses data from mutable database (system admin & hacker can modify data)
• Automation
- Best timing to train/score/tune
• Solution
• Trust
- ML uses data from immutable blockchain
• Automation
- ML runs as Smart Contract (automated process) for automation
40
Copyright © SAS Institute Inc. All rights reserved.
Existing work
https://singularitynet.io
• Shoot the moon: blockchain for AGI (Artificial General Intelligence)
- Dr. Ben Goertzel puts some stuff together (Hanson Robotics, OpenCog, etc.)
• Ideas: G2B (GitHub to Business), AI as a service for the AGI token
- Sharing-economy (think Uber) marketplace (GitHub <-> Business) for AI
- A set of Smart Contracts templates, access via the AGI token
• ICO
- Raised $36m in 60 seconds
41
Source: coinmarketcap.com, data retrieved in 2019
Copyright © SAS Institute Inc. All rights reserved.
Existing work, continued
DanKu protocol
• Down to the earth: Neural Net implementation on Ethereum
• Ideas [6]
- Reward giver submits dataset, evaluation function, a reward amount
- Model providers download the dataset and model, submit the model
- The Ethereum blockchain evaluates the models and selects a winner
• Limitations
- Only works for the Ethereum blockchain
- Other limitations listed in the manuscript [6]
42
Copyright © SAS Institute Inc. All rights reserved.
Proposed framework
A Unified Analytical Framework for Trustable ML Running with Blockchain [7]
43
Copyright © SAS Institute Inc. All rights reserved.
Differences with existing work
Between “shoot the moon” and “down to the earth”
• Permissioned blockchain vs. public blockchain
• Proposed framework has little to do with token/money
• Proposed framework vs. SingularityNET
• Not a big fan of AGI (for now)
• Proposed framework vs. DanKu protocol
• Beyond NNET/Ethereum
44
Copyright © SAS Institute Inc. All rights reserved.
Details
Core Machine Learning
• What is Core Machine Learning?
• Implementation of ML algorithm in its native form
• Single-thread-single-machine
• Components
• Model Initialization
• Model Training
• Model Validation
• Model Scoring
• Model Evaluation
• Model Serialization
• Model Clean-up
45
Copyright © SAS Institute Inc. All rights reserved.
Details
Server Layer Implementation
46
• What is a Server Layer?
• Think CAS (SMP, MPP)
• Core ideas
• Unified framework to convert “Core ML” to
SMP & MPP
• Data comes from blockchain in “one shot”
through SQL and APIs
• Use case: build model based on the entire
blockchain data, can do heavy-lifting job
Copyright © SAS Institute Inc. All rights reserved.
Pseudocode Snippet
Server Layer Implementation
Function Thread_main()
{
status = OK; push_exception_handler_to_stack();
wait_for_thread_event {
If (thread_event ==MODEL_INITIALIZATION) status = Model_initialization_at_thread_level(thread_event);
Else if (thread_event ==MODEL_TRAINING) status = Model_training_at_thread_level(thread_event);
Else if (thread_event ==MODEL_VALIDATION) status = Model_validation_at_thread_level(thread_event);
Else if (thread_event ==MODEL_SCORING) status = Model_scoring_at_thread_level(thread_event);
Else if (thread_event ==MODEL_EVALUATION) status = Model_evaluation_at_thread_level(thread_event);
Else if (thread_event ==MODEL_SERIALIZATION) {
status = Model_serialization_at_thread_level(thread_event);
If (status == OK) status = Model_serialization_at_machine_level_for_all_threads(); }
Else if (thread_event ==MODEL_CLEAN_UP) status = Model_clean_up_at_thread_level(thread_event);
Else Break; }
Finish:
pop_exception_handler_from_stack();
Return status;
}
47
Copyright © SAS Institute Inc. All rights reserved.
Details
Streaming Layer Implementation
48
• What is a Streaming Layer?
• Think ESP (moving windows, streaming)
• Core ideas
• Unified framework to make “Core ML” to
handle streaming data
• Data comes from blockchain “on-the-fly”
through streaming and APIs
• Use case: build online model based on the
ever-growing blockchain data, can do
incremental updates
Copyright © SAS Institute Inc. All rights reserved.
Pseudocode Snippet
Streaming Layer Implementation
Function Model_validation_in_sliding_window(data_stream)
{
status = OK;
If (data_stream == ERROR || data_stream == EMPTY) goto Finish;
If (OK != Allocate_memory_for_validation_in_sliding_window())
status = OUT_MEM and goto Finish;
While (obtain_validation_data_from_data_stream() == OK)
status = model_validation();
Finish:
If (data_stream == ERROR) status = ERROR;
return status;
}
49
Copyright © SAS Institute Inc. All rights reserved.
Details
Smart Contract Implementation (contribution lies here)
50
• What is a Smart Contract?
• Fancy word for “Automated Process”
• Running on blockchain
• Core ideas
• Unified framework convert “Core ML” to Smart
Contract
• Blockchain native
• Use case: build model running on blockchain in a
native way as smart contract
Copyright © SAS Institute Inc. All rights reserved.
Pseudocode Snippet
Smart Contract Implementation
Function Reward_smart_contract()
{
status = OK;
If (is_my_digital_wallet_OK() == FALSE) status = BAD_WALLET and goto Finish;
If (winning_inquiry() == TRUE && total_reward() > 0 && can_collect_reward() == TRUE )
If (share_reward_with_others() == TRUE)
status = collect_divided_reward();
Else
status = collect_all_reward();
Finish:
return status;
}
51
Copyright © SAS Institute Inc. All rights reserved.
Experiment
• Kaleido permissioned blockchain (an early start-up). Tech issues remain to be solved.
• Consensus algorithm: quorum/raft.
• 3 pharmacies Pharmacy-A, B, C, each logs transaction (or pointer/hash) onto the blockchain.
• All the data are synthetic and all the drugs are opioid (randomly grabbed from the Internet).
• The data was retrieved using SQL from the Kaleido blockchain to a Sever Layer (CAS).
• ARM is applied with: support >= 20%, confidence >= 70%, number of items in a rule <= 3.
52
Copyright © SAS Institute Inc. All rights reserved.
Results
More results to come…
• 16 rules are found
• “actiq & fentora ==> meperidine”, means that if a patient is prescribed with Actiq and Fentora, this
patient is likely to be prescribed with Meperidine later
• This result does not make sense because the entire dataset is synthetic, and all the drugs are opioids
• However, if given real prescription data, ARM should be able to find trustable rules such as:
1. Some “gateway” non-opioids which may lead to opioids prescriptions.
2. Frequent combinations of opioid and non-opioids which are often prescribed together.
3. Other interesting or surprising rules/analysis.
53
Copyright © SAS Institute Inc. All rights reserved.
Use AI to make smarter blockchains?
• IIN (Interbank Information Network) from JPMorgan
• AI happens first (fraud/anomaly detection, etc.)
• Then, blockchain does its job
• AI-enabled consensus?
• Smart contract: tuning, auditing, etc.?
• The Impossible Triangle?
• Optimize your position (AI=Optimization)
54
Copyright © SAS Institute Inc. All rights reserved.
Blockchain moment for AI?
Will it come? When will it come?
• CV moment for AI
• 2006 - 2018
• NLP moment for AI
• 2017 - present
• Blockchain moment for AI?
• TBD
55
Copyright © SAS Institute Inc. All rights reserved.
Closing remarks
1. Use blockchain for trustable-AI and AutoML
2. Use AI to make blockchain smarter
3. A Unified Analytical Framework for Trustable ML and Automation
56
Copyright © SAS Institute Inc. All rights reserved.
Key References
• [1] S. Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System”, retrieved in
2018.
• [2] V. Buterin, “A Next Generation Smart Contract & Decentralized Application
Platform”, retrieved in 2018.
• [3] CoinMarketCap, https://coinmarketcap.com/all/views/all/
• [4] Eugene Luzgin, BLOCKCHAIN: Evolution from bitcoin to smart contracts,
December 2017.
• [5] David V Duccini, Blockchain Technology: Bitcoin and Beyond.
• [6] A. Kurtulmus and K. Daniel, Trustless Machine Learning Contracts;
Evaluating and Exchanging Machine Learning Models on the Ethereum
Blockchain, arXiv:1802.10185, 2018.
• [7] T. Wang, A Unified Analytical Framework for Trustable Machine Learning
and Automation Running with Blockchain, IEEE Big Data Workshops, 2018.
57
Copyright © SAS Institute Inc. All rights reserved.
58
Upcoming Events, and AMA (Ask Me Anything)
Shameless ads
58
• Running for 2019 ACM SIGAI Vice-Chair (please join SIGAI)
• Vote for Tao Wang
• RTP ACM Chapter is up & running, join us!
• AutoML 2019 workshop, recruiting PC
• Call For Papers
• IEEE SMC 2019 Special Sessions (Human Perception in
Multimedia Computing, code: bf856), Oct 2019, Bari, Italy
• ICSM 2019, Dec 2019, San Diego, CA, USA

More Related Content

What's hot

Building a Successful Organization By Mastering Failure
Building a Successful Organization By Mastering FailureBuilding a Successful Organization By Mastering Failure
Building a Successful Organization By Mastering Failure
jgoulah
 
Crafting an API Strategy with an API Marketplace
Crafting an API Strategy with an API MarketplaceCrafting an API Strategy with an API Marketplace
Crafting an API Strategy with an API Marketplace
WSO2
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)
Financial Poise
 
Blockchain: Real World Use Cases
Blockchain: Real World Use CasesBlockchain: Real World Use Cases
Blockchain: Real World Use Cases
Capgemini
 
Crypto wallets
Crypto walletsCrypto wallets
Crypto wallets
Christian Kameir
 
Understanding Blockchain Security
Understanding Blockchain SecurityUnderstanding Blockchain Security
Understanding Blockchain Security
ITU
 
AI and Blockchain
AI and BlockchainAI and Blockchain
AI and Blockchain
Sasha Lazarevic
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
AlpnaSingh5
 
IDC - Blockchain Threat Model
IDC - Blockchain Threat ModelIDC - Blockchain Threat Model
IDC - Blockchain Threat Model
PeteLind
 
Redecentralizing the Web: IPFS and Filecoin
Redecentralizing the Web: IPFS and FilecoinRedecentralizing the Web: IPFS and Filecoin
Redecentralizing the Web: IPFS and Filecoin
Facultad de Informática UCM
 
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Edureka!
 
DevSecOps 101
DevSecOps 101DevSecOps 101
Blockchain Digital Transformation Presentation
Blockchain Digital Transformation PresentationBlockchain Digital Transformation Presentation
Blockchain Digital Transformation Presentation
101 Blockchains
 
Testing in the blockchain
Testing in the blockchainTesting in the blockchain
Testing in the blockchain
Craig Risi
 
Blockchain Technology | Blockchain Technology Explained | Edureka
Blockchain Technology | Blockchain Technology Explained | EdurekaBlockchain Technology | Blockchain Technology Explained | Edureka
Blockchain Technology | Blockchain Technology Explained | Edureka
Edureka!
 
Slide DevSecOps Microservices
Slide DevSecOps Microservices Slide DevSecOps Microservices
Slide DevSecOps Microservices
Hendri Karisma
 
Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1
Mohammed A. Imran
 
Block chain technology and its applications
Block chain technology and its applications Block chain technology and its applications
Block chain technology and its applications
ABHISHEK JAIN
 
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
Edureka!
 
BLOCKCHAIN
BLOCKCHAINBLOCKCHAIN
BLOCKCHAIN
Nitish sharma
 

What's hot (20)

Building a Successful Organization By Mastering Failure
Building a Successful Organization By Mastering FailureBuilding a Successful Organization By Mastering Failure
Building a Successful Organization By Mastering Failure
 
Crafting an API Strategy with an API Marketplace
Crafting an API Strategy with an API MarketplaceCrafting an API Strategy with an API Marketplace
Crafting an API Strategy with an API Marketplace
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)
 
Blockchain: Real World Use Cases
Blockchain: Real World Use CasesBlockchain: Real World Use Cases
Blockchain: Real World Use Cases
 
Crypto wallets
Crypto walletsCrypto wallets
Crypto wallets
 
Understanding Blockchain Security
Understanding Blockchain SecurityUnderstanding Blockchain Security
Understanding Blockchain Security
 
AI and Blockchain
AI and BlockchainAI and Blockchain
AI and Blockchain
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
IDC - Blockchain Threat Model
IDC - Blockchain Threat ModelIDC - Blockchain Threat Model
IDC - Blockchain Threat Model
 
Redecentralizing the Web: IPFS and Filecoin
Redecentralizing the Web: IPFS and FilecoinRedecentralizing the Web: IPFS and Filecoin
Redecentralizing the Web: IPFS and Filecoin
 
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
 
DevSecOps 101
DevSecOps 101DevSecOps 101
DevSecOps 101
 
Blockchain Digital Transformation Presentation
Blockchain Digital Transformation PresentationBlockchain Digital Transformation Presentation
Blockchain Digital Transformation Presentation
 
Testing in the blockchain
Testing in the blockchainTesting in the blockchain
Testing in the blockchain
 
Blockchain Technology | Blockchain Technology Explained | Edureka
Blockchain Technology | Blockchain Technology Explained | EdurekaBlockchain Technology | Blockchain Technology Explained | Edureka
Blockchain Technology | Blockchain Technology Explained | Edureka
 
Slide DevSecOps Microservices
Slide DevSecOps Microservices Slide DevSecOps Microservices
Slide DevSecOps Microservices
 
Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1Practical DevSecOps Course - Part 1
Practical DevSecOps Course - Part 1
 
Block chain technology and its applications
Block chain technology and its applications Block chain technology and its applications
Block chain technology and its applications
 
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
 
BLOCKCHAIN
BLOCKCHAINBLOCKCHAIN
BLOCKCHAIN
 

Similar to Blockchain, AI and Machine Learning

Bitcoin - Introduction, Technical Aspects and Ongoing Developments
Bitcoin - Introduction, Technical Aspects and Ongoing DevelopmentsBitcoin - Introduction, Technical Aspects and Ongoing Developments
Bitcoin - Introduction, Technical Aspects and Ongoing Developments
Bernhard Haslhofer
 
Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017
🔗Audrey Chaing
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Blockchain Technology Powerpoint
Blockchain Technology PowerpointBlockchain Technology Powerpoint
Blockchain Technology Powerpoint
Andrew Mackey
 
BlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
BlockChain Technology - Technology Behind Bitcoin and other CryptocurrencyBlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
BlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
Yashwanth Reddy
 
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
eMadrid network
 
blockchain bootcamp @WCNJ
blockchain bootcamp @WCNJblockchain bootcamp @WCNJ
blockchain bootcamp @WCNJ
Ash Yadav
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
Brett Colbert
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
Mark Suster
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
Roger Royse
 
Indjic fintech module 6
Indjic fintech module 6Indjic fintech module 6
Indjic fintech module 6
Drago Indjic
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
nimeshQ
 
WHAT IS CRYPTOCURRENCY EXPECTED APPLICATIONS.
WHAT IS CRYPTOCURRENCY  EXPECTED APPLICATIONS.WHAT IS CRYPTOCURRENCY  EXPECTED APPLICATIONS.
WHAT IS CRYPTOCURRENCY EXPECTED APPLICATIONS.
Qutomatic
 
What is Cryptojacking and How Can I Protect Myself?
What is Cryptojacking and How Can I Protect Myself?What is Cryptojacking and How Can I Protect Myself?
What is Cryptojacking and How Can I Protect Myself?
Global Knowledge Training
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 
Getting Started in Blockchain Security and Smart Contract Auditing
Getting Started in Blockchain Security and Smart Contract AuditingGetting Started in Blockchain Security and Smart Contract Auditing
Getting Started in Blockchain Security and Smart Contract Auditing
Beau Bullock
 
Intro to blockchain
Intro to blockchainIntro to blockchain
Intro to blockchain
Ringaile Valiaugaite
 
Introduction to Blockchain and Ethereum
Introduction to Blockchain and EthereumIntroduction to Blockchain and Ethereum
Introduction to Blockchain and Ethereum
Georgios Konstantopoulos
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
inder_barara
 

Similar to Blockchain, AI and Machine Learning (20)

Bitcoin - Introduction, Technical Aspects and Ongoing Developments
Bitcoin - Introduction, Technical Aspects and Ongoing DevelopmentsBitcoin - Introduction, Technical Aspects and Ongoing Developments
Bitcoin - Introduction, Technical Aspects and Ongoing Developments
 
Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Blockchain Technology Powerpoint
Blockchain Technology PowerpointBlockchain Technology Powerpoint
Blockchain Technology Powerpoint
 
BlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
BlockChain Technology - Technology Behind Bitcoin and other CryptocurrencyBlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
BlockChain Technology - Technology Behind Bitcoin and other Cryptocurrency
 
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
02_07_2018_«El valor de blockchain en el registro de la actividad académica: ...
 
blockchain bootcamp @WCNJ
blockchain bootcamp @WCNJblockchain bootcamp @WCNJ
blockchain bootcamp @WCNJ
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
 
Indjic fintech module 6
Indjic fintech module 6Indjic fintech module 6
Indjic fintech module 6
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
 
WHAT IS CRYPTOCURRENCY EXPECTED APPLICATIONS.
WHAT IS CRYPTOCURRENCY  EXPECTED APPLICATIONS.WHAT IS CRYPTOCURRENCY  EXPECTED APPLICATIONS.
WHAT IS CRYPTOCURRENCY EXPECTED APPLICATIONS.
 
What is Cryptojacking and How Can I Protect Myself?
What is Cryptojacking and How Can I Protect Myself?What is Cryptojacking and How Can I Protect Myself?
What is Cryptojacking and How Can I Protect Myself?
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
 
Getting Started in Blockchain Security and Smart Contract Auditing
Getting Started in Blockchain Security and Smart Contract AuditingGetting Started in Blockchain Security and Smart Contract Auditing
Getting Started in Blockchain Security and Smart Contract Auditing
 
Intro to blockchain
Intro to blockchainIntro to blockchain
Intro to blockchain
 
Introduction to Blockchain and Ethereum
Introduction to Blockchain and EthereumIntroduction to Blockchain and Ethereum
Introduction to Blockchain and Ethereum
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
 

Recently uploaded

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 

Recently uploaded (20)

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 

Blockchain, AI and Machine Learning

  • 1. Copyright © SAS Institute Inc. All rights reserved. Blockchain, AI and Machine Learning Tao Wang 2019 This presentation is based on information in the public domain Opinions expressed are solely my own, therefore may not represent the views of my employer
  • 2. Copyright © SAS Institute Inc. All rights reserved. What is Blockchain? A single-linked list, distributed/duplicated/decentralized Image source: https://en.wikipedia.org/wiki/File:Bitcoin_Block_Data.svg 2
  • 3. Copyright © SAS Institute Inc. All rights reserved. Part 1: Bitcoin 3
  • 4. Copyright © SAS Institute Inc. All rights reserved. Bitcoin = the king of cryptocurrencies source: https://coinmarketcap.com 4 Running on the Bitcoin blockchain
  • 5. Copyright © SAS Institute Inc. All rights reserved. History • Satoshi Nakamoto • Created the reference implementation with a Genesis Block of 50 Bitcoins ($$$ from air) • 2008 • August 18, Domain name "bitcoin.org" registered • October 31 (*Halloween), Bitcoin white paper published • November 09, Bitcoin project registered at SourceForge.net • 2009 • January 3, Genesis Block was created • January 9, Bitcoin v0.1 released and announced • January 12, First Bitcoin transaction, in block 170 5
  • 6. Copyright © SAS Institute Inc. All rights reserved. Who is Satoshi Nakomoto? A person, a group of people, an alien from the Next Dimension? 6
  • 7. Copyright © SAS Institute Inc. All rights reserved. The Bitcoin paper Bitcoin: A Peer-to-Peer Electronic Cash System • Bitcoin blockchain = public/distributed ledger • Transactions are stored in blocks with duplicates in each node • Goal: $$$ goes from A to B without going through a financial institution Source: NANCY LIAO, A BRIEF INTRODUCTION TO BLOCKCHAIN Source: IBM, Making Blockchain Real for Business: Explained 7
  • 8. Copyright © SAS Institute Inc. All rights reserved. #1 challenge for decentralized digital currency? double-spending Source: Huan Ke, Bitcoin/BlockChain for Experts 8
  • 9. Copyright © SAS Institute Inc. All rights reserved. Solution to double-spending • Timestamp transactions by hashing them into an ongoing chain of hash- based proof-of-work (mining), forming a record that cannot be changed without redoing the proof-of-work Image source: https://en.wikipedia.org/wiki/File:Bitcoin_Block_Data.svg Source: Huan Ke, Bitcoin/BlockChain for Experts 9
  • 10. Copyright © SAS Institute Inc. All rights reserved. Merkle Tree Source: https://en.wikipedia.org/wiki/Merkle_tree#/media/File:Hash_Tree.svg 10
  • 11. Copyright © SAS Institute Inc. All rights reserved. Mining = Proof-of-Work • Mining = finding a nonce value (integer) • When hashed with a combined hash of all transactions in a block, the resulting hash begins with pre-defined a number of zeros • Why is mining so difficult? • No smart way to find the nonce, you just need to try every integer • More zeros required = more difficult Source: Eugene Luzgin, BLOCKCHAIN: Evolution from bitcoin to smart contracts, December 2017 Source: Tong Li, Cryptocurrency, Blockchain, Mining? What? 11
  • 12. Copyright © SAS Institute Inc. All rights reserved. How does it work really? • New transactions are broadcasted → all nodes • Each node picks up the info → a block • Each node tries to do Proof of Work (PoW) for its block • Consensus • Mining is difficult! • Proof of Work = Proof of Waste, sort of • When a node finds the answer, it broadcasts the block to all • All nodes will verify & accept if it is valid → verification is easy! • All nodes create the next block in the chain, independently → see next page for handling disagreement 12
  • 13. Copyright © SAS Institute Inc. All rights reserved. What if there is a disagreement? Let’s vote! • Proof-of-work = CPUs are the voters, one CPU one vote • Longest (most difficult) chain = greatest proof-of-work • How to reach Consensus? • most CPUs are honest • honest chain will grow the fastest and outpace any competing/dishonest chain Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond 13
  • 14. Copyright © SAS Institute Inc. All rights reserved. Why are we doing this (mining)? Incentive • First block carries 50 Bitcoins (great, money created from the air) • All the following blocks carry certain amount of Bitcoins (25, 12.5, etc.) • What are the expenses? • CPU/GPU time • Electricity 14
  • 15. Copyright © SAS Institute Inc. All rights reserved. Where to obtain Bitcoins other than mining Mining is very difficult (1 Bitcoin = 1,000+ years of your CPU time) • Exchanges Source: https://coinmarketcap.com/currencies/bitcoin/#markets 15
  • 16. Copyright © SAS Institute Inc. All rights reserved. Privacy • Money is sent to an account/address (public key) • Your private key can open the digital wallet Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond Source: https://www.youtube.com/watch?v=UieiMU-ImvI&list=PLQVvvaa0QuDcq2QME4pfeh0cE71mkb_qz 16
  • 17. Copyright © SAS Institute Inc. All rights reserved. Think twice about your privacy • What is required • Transactions should be private • Identity should not be linked to a transaction • What is the reality • Transactions are public • Some public keys are well-known (no privacy for them) • Using ML techniques, more details can be discovered BTC inputs to the famous pizza purchase address (red), depth=4 Source: https://cloud.google.com/blog/big-data/2018/02/bitcoin-in-bigquery-blockchain-analytics-on-public-data 17
  • 18. Copyright © SAS Institute Inc. All rights reserved. Who Accepts Bitcoins? • Overstock.com • Newegg.com • Microsoft XBOX Network • Telsa Motors • Time Inc (publisher) • Virgin Galactic • Wordpress • BitPay claims 44,000 merchants! Source: David V Duccini, Blockchain Technology: Bitcoin and Beyond 18
  • 19. Copyright © SAS Institute Inc. All rights reserved. Part 2: Ethereum and beyond 19
  • 20. Copyright © SAS Institute Inc. All rights reserved. Ethereum • Ethereum • Blockchain platform that goes beyond money • The platform for many other alt-coins & ICOs (Initial Coin Offering) • Vitalik Buterin • SEC - Bitcoin & Ethereum are not securities (will NOT be regulated by SEC?) - Some ICOs may be - STO is going to replace ICO? 20
  • 21. Copyright © SAS Institute Inc. All rights reserved. Everything can be tokenized! 21 • Royal Albert Hall, from 1867 • Wimbledon debentures, from 1920 • SEC no-action letter 2006 WL 488513 • Solar farm? Services?
  • 22. Copyright © SAS Institute Inc. All rights reserved. SEC & ICO 22
  • 23. Copyright © SAS Institute Inc. All rights reserved. The Ethereum paper A Next-Generation Smart Contract and Decentralized Application Platform • Smart contract = automated process • Insurance claim been denied by a dishonest provider? Use smart contract! • Turing-complete • EVM (Ethereum Virtual Machine) • Decentralized Applications (DApps) • Decentralized “Facebook”, “Twitter”, etc. • Distributed Autonomous Organizations (DAOs) 23
  • 24. Copyright © SAS Institute Inc. All rights reserved. Why is Ethereum so important? • Decentralized Internet = Web 3.0 • Facebook scandal (centralized Internet) • GDPR compliance and Sovereign Identity • Unstoppable AI = Artificial General Intelligence • Can you turn off all the machines on Ethereum blockchains? Source: https://www.youtube.com/watch?v=5Tr13l0O1Ws 24
  • 25. Copyright © SAS Institute Inc. All rights reserved. Public, permissioned, and private blockchains Source: https://www.youtube.com/watch?v=OLtsQk6qceE 25
  • 26. Copyright © SAS Institute Inc. All rights reserved. Public blockchain vs. permissioned blockchain Source: https://www.youtube.com/watch?v=Y177TCUc4g0 26
  • 27. Copyright © SAS Institute Inc. All rights reserved. Blockchain for X Industries what will be disrupted (not replaced) by Blockchain • Financial (banking, exchanges, cross-border money transfers) • Insurance • Claims been denied by a dishonest provider? Use smart contract! • Supply Chain • Government • DMV (car titles) • County’s public record • Healthcare • Retail • Real Estate • Online gaming/dating • Elections, voter ID (Sovereign Identity, can be verified everywhere) • Your Industry Source: https://venturebeat.com/2016/10/22/blockchain-tech-could-fight-voter-fraud-and-these-countries-are-testing-it/ Source: https://www.netscribes.com/blockchain-patent-landscape 27
  • 28. Copyright © SAS Institute Inc. All rights reserved. Applications of blockchain Blockchain for X, continued Source: https://www.ccn.com/bitcoin-wedding-marriage-on-the-blockchain/ Source: https://www.coindesk.com/walmart-blockchain-pilot-china-pork-market Source: https://www.coindesk.com/circles-uk-license-blockchain-impact Source: https://bitcoinist.com/visa-blockchain-solution-payments/ 28
  • 29. Copyright © SAS Institute Inc. All rights reserved. Blockchain for social network Steemit • Creator of Steemit: Daniel Larimer • Idea: get paid if people like your article 29
  • 30. Copyright © SAS Institute Inc. All rights reserved. Blockchain for banking Take a look at JPM 30 Source: CNBC, Feb 14, 2019 (Happy Valentine's Day) Source: J.P. MORGAN, 2018 Source: CNBC, 2017
  • 31. Copyright © SAS Institute Inc. All rights reserved. Blockchain for X Who is next? 31 Source: Twitter Source: Bloomberg Source: nytimes
  • 32. Copyright © SAS Institute Inc. All rights reserved. Industry use cases of permissioned blockchain Source: https://www.hyperledger.org/wp-content/uploads/2018/03/The-Hyperledger-Vision-11-1.pdf 32
  • 33. Copyright © SAS Institute Inc. All rights reserved. Consensus algorithms • PoW – Proof of Work • PoS - Proof of Stake • Delegated PoS • PoA - Proof-of-Authority • PoWeight: Proof-of-Weight • … 33
  • 34. Copyright © SAS Institute Inc. All rights reserved. HyperLedger Source: https://www.hyperledger.org 34
  • 35. Copyright © SAS Institute Inc. All rights reserved. Part 3: A Unified Analytical Framework for Trustable Machine Learning and Automation Running with Blockchain 35
  • 36. Copyright © SAS Institute Inc. All rights reserved. Goals Fusion of blockchain and AI • Blockchain • Trusted data source for AI • AI • Make blockchain smarter • Gartner: blockchain "is providing decentralized trust across a network of untrusted participants. The potential ramifications for analytics use cases are significant" 36
  • 37. Copyright © SAS Institute Inc. All rights reserved. Which blockchains to use? So many are out there… • Public blockchains • ETH • TRX • EOS • … • Permissioned blockchains 37
  • 38. Copyright © SAS Institute Inc. All rights reserved. Where is your database? Data storage on public blockchains can be very expensive • IPDB (Interplanetary Database), IPFS (Interplanetary File System), others 38 Source: medium.com Source: ipfs.io
  • 39. Copyright © SAS Institute Inc. All rights reserved. A Unified Framework for Trustable AI, Machine Learning and Analytics AI Analytics Machine Learning Blockchain – power of trust 39
  • 40. Copyright © SAS Institute Inc. All rights reserved. Problems and the solution • Problems • Trust - ML uses data from mutable database (system admin & hacker can modify data) • Automation - Best timing to train/score/tune • Solution • Trust - ML uses data from immutable blockchain • Automation - ML runs as Smart Contract (automated process) for automation 40
  • 41. Copyright © SAS Institute Inc. All rights reserved. Existing work https://singularitynet.io • Shoot the moon: blockchain for AGI (Artificial General Intelligence) - Dr. Ben Goertzel puts some stuff together (Hanson Robotics, OpenCog, etc.) • Ideas: G2B (GitHub to Business), AI as a service for the AGI token - Sharing-economy (think Uber) marketplace (GitHub <-> Business) for AI - A set of Smart Contracts templates, access via the AGI token • ICO - Raised $36m in 60 seconds 41 Source: coinmarketcap.com, data retrieved in 2019
  • 42. Copyright © SAS Institute Inc. All rights reserved. Existing work, continued DanKu protocol • Down to the earth: Neural Net implementation on Ethereum • Ideas [6] - Reward giver submits dataset, evaluation function, a reward amount - Model providers download the dataset and model, submit the model - The Ethereum blockchain evaluates the models and selects a winner • Limitations - Only works for the Ethereum blockchain - Other limitations listed in the manuscript [6] 42
  • 43. Copyright © SAS Institute Inc. All rights reserved. Proposed framework A Unified Analytical Framework for Trustable ML Running with Blockchain [7] 43
  • 44. Copyright © SAS Institute Inc. All rights reserved. Differences with existing work Between “shoot the moon” and “down to the earth” • Permissioned blockchain vs. public blockchain • Proposed framework has little to do with token/money • Proposed framework vs. SingularityNET • Not a big fan of AGI (for now) • Proposed framework vs. DanKu protocol • Beyond NNET/Ethereum 44
  • 45. Copyright © SAS Institute Inc. All rights reserved. Details Core Machine Learning • What is Core Machine Learning? • Implementation of ML algorithm in its native form • Single-thread-single-machine • Components • Model Initialization • Model Training • Model Validation • Model Scoring • Model Evaluation • Model Serialization • Model Clean-up 45
  • 46. Copyright © SAS Institute Inc. All rights reserved. Details Server Layer Implementation 46 • What is a Server Layer? • Think CAS (SMP, MPP) • Core ideas • Unified framework to convert “Core ML” to SMP & MPP • Data comes from blockchain in “one shot” through SQL and APIs • Use case: build model based on the entire blockchain data, can do heavy-lifting job
  • 47. Copyright © SAS Institute Inc. All rights reserved. Pseudocode Snippet Server Layer Implementation Function Thread_main() { status = OK; push_exception_handler_to_stack(); wait_for_thread_event { If (thread_event ==MODEL_INITIALIZATION) status = Model_initialization_at_thread_level(thread_event); Else if (thread_event ==MODEL_TRAINING) status = Model_training_at_thread_level(thread_event); Else if (thread_event ==MODEL_VALIDATION) status = Model_validation_at_thread_level(thread_event); Else if (thread_event ==MODEL_SCORING) status = Model_scoring_at_thread_level(thread_event); Else if (thread_event ==MODEL_EVALUATION) status = Model_evaluation_at_thread_level(thread_event); Else if (thread_event ==MODEL_SERIALIZATION) { status = Model_serialization_at_thread_level(thread_event); If (status == OK) status = Model_serialization_at_machine_level_for_all_threads(); } Else if (thread_event ==MODEL_CLEAN_UP) status = Model_clean_up_at_thread_level(thread_event); Else Break; } Finish: pop_exception_handler_from_stack(); Return status; } 47
  • 48. Copyright © SAS Institute Inc. All rights reserved. Details Streaming Layer Implementation 48 • What is a Streaming Layer? • Think ESP (moving windows, streaming) • Core ideas • Unified framework to make “Core ML” to handle streaming data • Data comes from blockchain “on-the-fly” through streaming and APIs • Use case: build online model based on the ever-growing blockchain data, can do incremental updates
  • 49. Copyright © SAS Institute Inc. All rights reserved. Pseudocode Snippet Streaming Layer Implementation Function Model_validation_in_sliding_window(data_stream) { status = OK; If (data_stream == ERROR || data_stream == EMPTY) goto Finish; If (OK != Allocate_memory_for_validation_in_sliding_window()) status = OUT_MEM and goto Finish; While (obtain_validation_data_from_data_stream() == OK) status = model_validation(); Finish: If (data_stream == ERROR) status = ERROR; return status; } 49
  • 50. Copyright © SAS Institute Inc. All rights reserved. Details Smart Contract Implementation (contribution lies here) 50 • What is a Smart Contract? • Fancy word for “Automated Process” • Running on blockchain • Core ideas • Unified framework convert “Core ML” to Smart Contract • Blockchain native • Use case: build model running on blockchain in a native way as smart contract
  • 51. Copyright © SAS Institute Inc. All rights reserved. Pseudocode Snippet Smart Contract Implementation Function Reward_smart_contract() { status = OK; If (is_my_digital_wallet_OK() == FALSE) status = BAD_WALLET and goto Finish; If (winning_inquiry() == TRUE && total_reward() > 0 && can_collect_reward() == TRUE ) If (share_reward_with_others() == TRUE) status = collect_divided_reward(); Else status = collect_all_reward(); Finish: return status; } 51
  • 52. Copyright © SAS Institute Inc. All rights reserved. Experiment • Kaleido permissioned blockchain (an early start-up). Tech issues remain to be solved. • Consensus algorithm: quorum/raft. • 3 pharmacies Pharmacy-A, B, C, each logs transaction (or pointer/hash) onto the blockchain. • All the data are synthetic and all the drugs are opioid (randomly grabbed from the Internet). • The data was retrieved using SQL from the Kaleido blockchain to a Sever Layer (CAS). • ARM is applied with: support >= 20%, confidence >= 70%, number of items in a rule <= 3. 52
  • 53. Copyright © SAS Institute Inc. All rights reserved. Results More results to come… • 16 rules are found • “actiq & fentora ==> meperidine”, means that if a patient is prescribed with Actiq and Fentora, this patient is likely to be prescribed with Meperidine later • This result does not make sense because the entire dataset is synthetic, and all the drugs are opioids • However, if given real prescription data, ARM should be able to find trustable rules such as: 1. Some “gateway” non-opioids which may lead to opioids prescriptions. 2. Frequent combinations of opioid and non-opioids which are often prescribed together. 3. Other interesting or surprising rules/analysis. 53
  • 54. Copyright © SAS Institute Inc. All rights reserved. Use AI to make smarter blockchains? • IIN (Interbank Information Network) from JPMorgan • AI happens first (fraud/anomaly detection, etc.) • Then, blockchain does its job • AI-enabled consensus? • Smart contract: tuning, auditing, etc.? • The Impossible Triangle? • Optimize your position (AI=Optimization) 54
  • 55. Copyright © SAS Institute Inc. All rights reserved. Blockchain moment for AI? Will it come? When will it come? • CV moment for AI • 2006 - 2018 • NLP moment for AI • 2017 - present • Blockchain moment for AI? • TBD 55
  • 56. Copyright © SAS Institute Inc. All rights reserved. Closing remarks 1. Use blockchain for trustable-AI and AutoML 2. Use AI to make blockchain smarter 3. A Unified Analytical Framework for Trustable ML and Automation 56
  • 57. Copyright © SAS Institute Inc. All rights reserved. Key References • [1] S. Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System”, retrieved in 2018. • [2] V. Buterin, “A Next Generation Smart Contract & Decentralized Application Platform”, retrieved in 2018. • [3] CoinMarketCap, https://coinmarketcap.com/all/views/all/ • [4] Eugene Luzgin, BLOCKCHAIN: Evolution from bitcoin to smart contracts, December 2017. • [5] David V Duccini, Blockchain Technology: Bitcoin and Beyond. • [6] A. Kurtulmus and K. Daniel, Trustless Machine Learning Contracts; Evaluating and Exchanging Machine Learning Models on the Ethereum Blockchain, arXiv:1802.10185, 2018. • [7] T. Wang, A Unified Analytical Framework for Trustable Machine Learning and Automation Running with Blockchain, IEEE Big Data Workshops, 2018. 57
  • 58. Copyright © SAS Institute Inc. All rights reserved. 58 Upcoming Events, and AMA (Ask Me Anything) Shameless ads 58 • Running for 2019 ACM SIGAI Vice-Chair (please join SIGAI) • Vote for Tao Wang • RTP ACM Chapter is up & running, join us! • AutoML 2019 workshop, recruiting PC • Call For Papers • IEEE SMC 2019 Special Sessions (Human Perception in Multimedia Computing, code: bf856), Oct 2019, Bari, Italy • ICSM 2019, Dec 2019, San Diego, CA, USA