SlideShare una empresa de Scribd logo
1 de 48
NYC Data Science Academy
Introduction to BitCoin
NYC Data Science Academy
P2P: Peer-to-Peer Network
 A peer-to-peer (P2P) network is a type of
decentralized and distributed network architecture in
which individual nodes in the network (called "peers")
act as both suppliers and consumers of resources, in
contrast to the centralized client–server model where
client nodes request access to resources provided by
central servers.
 Peers are distributed in the whole Internet. It is hard
to control and monitor the network activities. It is
widely used in fields asking for high privacy.
A P2P network
A network based on the
client-server model
NYC Data Science Academy
BitCoin
 The fundamental paper by Satoshi Nakamot
 Feature: Based on algorithm and public recognition, Decentralized
 Scarcity, Mining, SHA256, Easy to exam, limit of speed
 Comparing to Gold. Does bitcoin worth it?
 Is BitCoin a Ponzi Scheme?
 BitCoin and Anarchism
 Problems: Copycats, Deflation, Anti-Conservation
 How to maintain and manage the P2P network?
NYC Data Science Academy
Blueprint of Electronic Money
NYC Data Science Academy
Duplicated transactions
 Solution: An authorized organization to record and exam transactions
 A Mint is an organization that produce valid electronic money(avoid duplicated
transactions). Receiver of a transaction need to send electronic money back to the
mint for validation.
 Pitfall: Relying too much on the central organization
(Breakdown, Attacked, Manipulated, Monitored or Spied)
NYC Data Science Academy
Basic Concepts: the system of Bitcoin
 Block: account book
 Transaction
 Bitcoin
 Item: record of transactions
 Transactions are recorded by Items
 A block consists of many items (and other data)
 Many blocks form a chain
 Iterate over the items in the block chain to check account balance and transaction
validity,
NYC Data Science Academy
Experiment: Check a block
 http://blockexplorer.com/
 Enter your block number to see the data
NYC Data Science Academy
What is inside a Block?
NYC Data Science Academy
Transaction
NYC Data Science Academy
Block
 Bitcoin system only record blocks but not balance. Balance is calculated from items
(records of transactions) in blocks
 Every block stores all the items from all over the world in ten minutes. And there will
be a new block every ten minutes. The speed is stable.
 Number of items in a block is not stationary
 Every node is producing block but the valid block is unique. We will talk about it later.
 An ideal block:
Block ID
Item 1,
Item 2,
...
Item n
Previous Block ID,
Next Block ID,
Other Information
NYC Data Science Academy
Block Chain
 Blocks are connected by doubly linked list according to their generation order. This
structure is convenient for iteration.
 Every node is storing a block chain. Finally these chains are all the same, as the only
valid one in the system.
The 1st Block
Block ID
Prev ID
Next ID
The 2nd Block
Block ID
Prev ID
Next ID
The 3rd Block
Block ID
Prev ID
Next ID
NYC Data Science Academy
Bitcoin and block generation
 How to create Bitcoin: generate blocks (Fierce competitions of the generation, that is
what we called 'Mining' .)
 Rules: the first to the 210 thousand-th block worth 50 Bitcoins each, the 210
thousand-th to the 420 thousand-th block woth 25 Bitcoins, and so on. Repeating this
procedure, we will get in total 21Million Bitcoins.
 Because the real-world is always expanding, Bitcoin is determined to meet the
problem of deflation.
 Blocks will be generated cotinuously, because transactions will be charged for the
service.
NYC Data Science Academy
Security
 Private key and Public key, digital signature
 SHA256: http://en.wikipedia.org/wiki/SHA-2
NYC Data Science Academy
Security
 Private key and Public key, digital signature
 SHA256: http://en.wikipedia.org/wiki/SHA-2
NYC Data Science Academy
Security
 Enough money for the transaction (Solved)
 Authenticity of transaction
 Repeat Transactions
NYC Data Science Academy
Authenticity of transaction: Digital Signature
NYC Data Science Academy
 Calculate a hash number a, from all the data of block A.
 Store a in the next block B.
 Verify that if A is the previous block of B: Calculate a from A again, then compare to
the hash number x stored in B.
 Generate b from B and store it in C. Then we repeat this process and will get a block
chain.
Duplicated Transactions: Timestamp
Block
Previous hash number x
Item Item Item Item
Block
Previous hash number x
Item Item Item Item
NYC Data Science Academy
Timestamp
 Do not rely on the local time, only related to the order of blocks
 If there's a center maintaining the chain of valid blocks, it would be easy to check
duplicated transactions.
 How to achieve it in a decentralized network?
NYC Data Science Academy
Problems of P2P
 Various network condition
 Nodes are not running 24/7
 No center for management
 May exist evil nodes
NYC Data Science Academy
Bitcoin solution of P2P
 Proof of Work
 Controlling of block generation speed
 Block broadcast and valid block chain
NYC Data Science Academy
Proof of Work
1. Calculate a hash number from the latest block
2. Keep receive items that are broadcasted but not inside any blocks. Check them and
delete invalid ones(not enough money).
3. Randomly choose a number, Nounce.
4. Group data in step 1~3 and use SHA256 to calculate a 256bit hash number x.
5. Verify if there are enough leading 0s in x. If yes, then verify if this x meets the
difficulty. If yes, then this process is finished.
6. Else, repeat from step 2. If there's a new block from other nodes, we need to restart
the whole process.
NYC Data Science Academy
Difficulty of Proff-of-Work
 https://en.bitcoin.it/wiki/Difficulty
NYC Data Science Academy
Difficulty
 Controlling the speed of block generation. Updated every 2016 blocks (2 weeks) .
 Difficulty = maximum_target / current_target
 The target is a 256-bit number (extremely large) that all Bitcoin clients share. The SHA-
256 hash of a block's header must be lower than or equal to the current target for the
block to be accepted by the network. The lower the target, the more difficult it is to
generate a block.
 Max target:
00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 Current target (this is changing):
0000000000000000B3AA00000000000000000000000000000000000000000000
NYC Data Science Academy
Bits
 Each block stores a packed representation (called "Bits") for its actual hexadecimal
target. The target can be derived from it via a predefined formula. For example, if the
packed target in the block is 0x1b0404cb, the hexadecimal target is
 0x0404cb * 2**(8*(0x1b - 3)) =
0x00000000000404CB000000000000000000000000000000000000000000000000
NYC Data Science Academy
Difficulty is a Global parameter
 If there's the only valid block chain, every node will get the same difficulty.
 Difficulty is controlling the speed of block generation
 Difficulty is also useful when checking a block's validity.
NYC Data Science Academy
Meaning of Difficulty
 Control the speed and avoid inflation. A rapid increase in computation power is not
affecting the generation speed.
 Increase the cost of cheating.
 The P2P netword need a lot of nodes to ensure the security (avoid manipulation).
Difficulty is what drives nodes running.
NYC Data Science Academy
Temporal Block
 Content of the block:
1. x genereted from SHA256, as the block ID
2. All the collected valid items
3. Random Number n
4. The latest hash number from the global block chain
5. Other informations
 Broadcast this block to the P2P network
 What will other nodes do:
Duplication transactions and Validation
NYC Data Science Academy
Validation
 Get items in the block
 Check if there's duplicated items
 Other validation steps
 Link this block to the end of the locally stored 'Global Block Chain' . It is not formally
added to the global block chain yet.
NYC Data Science Academy
Braches
 A node will receive many new blocks generated from a common global chain.
 For each block, generate braches locally.
 Nodes are receiving blocks in different time points, and this leads to different local
braches.
 When there comes a longer chain, a node will turn to the longer one and discard the
shorter one.
 This algorithms will ensure the convergence to the longest chain.
NYC Data Science Academy
Example of Braches
 The Green block is the 1st block of the world.
 Black blocks represents the longest block
chain, and validated to be the global chain.
 Grey blocks are blocks on local braches, and
discarded finally.
NYC Data Science Academy
Example of Braches
1. The form of two braches.
2. The right brach receive a new block and we discard the left one.
3. Again, different blocks linked to the end of global chain.
NYC Data Science Academy
Example of Braches
4. Firstly we receive two more blocks on the right brach
5. And another two blocks on the left brach, now these two
braches are still of the same length.
6. Receive another block and we finally discards the right one.
NYC Data Science Academy
Example of Braches
7. The left brach receives another block.
8. Another one added to the left branch.
NYC Data Science Academy
Example of Braches
 Finally, we have our longest block chain.
NYC Data Science Academy
Confirm the Transaction
 To confirm a transaction, we need to add it to a newly generated block, and after 5
more blocks, this transaction could be finally confirmed and the transaction is
successfully recorded.
 After 6 blocks added to the global chain, it is nearly impossible to cheat or attack the
original chain. The cheater cannot find a cluster that overwhelms all the other honest
nodes and add 6 more fake blocks to the global chain.
 Once the transaction is confirmed, it is almost impossible to modify or cancel.
NYC Data Science Academy
Summary of security of Bitcoin
 All nodes in a P2P network monitor and save the global unique transaction backup
 Timestamp ensure the order of blocks is valid
 SHA256 ensure the generation of a block is hard, but validation is easy.
 Proof-of-Work ensure the majority (honest nodes) have the true transaction record.
NYC Data Science Academy
Problems of Bitcoin system
 Privacy
 Transaction needs a lot of time to be confirmed
 Deflation
 Anti Conservation
 Increasing amount of data
NYC Data Science Academy
Bitcoin in Action!
 How to register?
 How to mine?
 How to trade Bitcoin?
 How to pay with Bitcoin?
NYC Data Science Academy
The official website
 https://bitcoin.org/en/
NYC Data Science Academy
What? There's official website?
 https://bitcoin.org/en/about-us
NYC Data Science Academy
Bitcoin Wallet
 MultiBit
NYC Data Science Academy
Need Screenshot from Mac or just
demonstration in real time
 Need Screenshot from Mac or just demonstration in real time
NYC Data Science Academy
Bitcoin Miner
 GUIMiner
NYC Data Science Academy
Popular Mining Website
 Deepbit
 BTCGuild
 BMP
NYC Data Science Academy
Need Screenshot from Mac or just
demonstration in real time
 Need Screenshot from Mac or just demonstration in real time
NYC Data Science Academy
Bitcoin exchange
 Mt.Gox: It was the largest website, but closed in February 2014.
 BTC-E: https://btc-e.com/
 Bitstamp: https://www.bitstamp.net/
NYC Data Science Academy
Pay with Bitcoin
 Bitcoin is told to be the best currency for illegal missions.
 But publicly it is not very popular.
 Donate bitcoin to personal projects is more popular. As in the popular game 2048.
NYC Data Science Academy
FAQ
FAQ

Más contenido relacionado

La actualidad más candente

Report on Bitcoin- The cryptocurrency (November 2017)
Report on Bitcoin- The cryptocurrency (November 2017)Report on Bitcoin- The cryptocurrency (November 2017)
Report on Bitcoin- The cryptocurrency (November 2017)AJSH & Co LLP
 
BitCoining Experience
BitCoining ExperienceBitCoining Experience
BitCoining ExperienceRanjeet Tayi
 
Bitcoin presentation slides
Bitcoin presentation slidesBitcoin presentation slides
Bitcoin presentation slidesAhmad Asad
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesQuasarVentures
 
Bitcoin: The Internet of Money Seminar Report
Bitcoin: The Internet of Money Seminar ReportBitcoin: The Internet of Money Seminar Report
Bitcoin: The Internet of Money Seminar ReportMaheshInder2
 
A primer on Bitcoin Technology
A primer on Bitcoin TechnologyA primer on Bitcoin Technology
A primer on Bitcoin TechnologySebin Benjamin
 
Bitcoin:Global Digital Currency
Bitcoin:Global Digital CurrencyBitcoin:Global Digital Currency
Bitcoin:Global Digital CurrencySurbhi Jain
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoinWolf McNally
 
Bitcoin as an Emerging Technology Written Report
Bitcoin as an Emerging Technology Written ReportBitcoin as an Emerging Technology Written Report
Bitcoin as an Emerging Technology Written ReportShane Hickey
 
Introduction to BitCoin
Introduction to BitCoinIntroduction to BitCoin
Introduction to BitCoinRajesh Kumar
 
Seminar Report On Bitcoin
Seminar Report On BitcoinSeminar Report On Bitcoin
Seminar Report On BitcoinTouroxy
 
What is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginnersWhat is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginnersJonathan Waller
 
BITCOIN TECHNOLOGY(AAappZZ)
BITCOIN TECHNOLOGY(AAappZZ)BITCOIN TECHNOLOGY(AAappZZ)
BITCOIN TECHNOLOGY(AAappZZ)Arun Nair
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and BitcoinHugo Rodrigues
 

La actualidad más candente (20)

Report on Bitcoin- The cryptocurrency (November 2017)
Report on Bitcoin- The cryptocurrency (November 2017)Report on Bitcoin- The cryptocurrency (November 2017)
Report on Bitcoin- The cryptocurrency (November 2017)
 
What is Bitcoin?
What is Bitcoin?What is Bitcoin?
What is Bitcoin?
 
Bitcoin data mining
Bitcoin data miningBitcoin data mining
Bitcoin data mining
 
BitCoining Experience
BitCoining ExperienceBitCoining Experience
BitCoining Experience
 
Bitcoin presentation slides
Bitcoin presentation slidesBitcoin presentation slides
Bitcoin presentation slides
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential Opportunities
 
Bitcoin: The Internet of Money Seminar Report
Bitcoin: The Internet of Money Seminar ReportBitcoin: The Internet of Money Seminar Report
Bitcoin: The Internet of Money Seminar Report
 
A primer on Bitcoin Technology
A primer on Bitcoin TechnologyA primer on Bitcoin Technology
A primer on Bitcoin Technology
 
Bitcoin:Global Digital Currency
Bitcoin:Global Digital CurrencyBitcoin:Global Digital Currency
Bitcoin:Global Digital Currency
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoin
 
Bitcoin as an Emerging Technology Written Report
Bitcoin as an Emerging Technology Written ReportBitcoin as an Emerging Technology Written Report
Bitcoin as an Emerging Technology Written Report
 
Introduction to BitCoin
Introduction to BitCoinIntroduction to BitCoin
Introduction to BitCoin
 
Seminar Report On Bitcoin
Seminar Report On BitcoinSeminar Report On Bitcoin
Seminar Report On Bitcoin
 
Bitcoin ppt
Bitcoin pptBitcoin ppt
Bitcoin ppt
 
Bitcoin ppt
Bitcoin pptBitcoin ppt
Bitcoin ppt
 
What is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginnersWhat is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginners
 
BITCOIN TECHNOLOGY(AAappZZ)
BITCOIN TECHNOLOGY(AAappZZ)BITCOIN TECHNOLOGY(AAappZZ)
BITCOIN TECHNOLOGY(AAappZZ)
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 

Destacado

Bitcoin - An Introduction
Bitcoin - An IntroductionBitcoin - An Introduction
Bitcoin - An IntroductionDawie Poolman
 
Magento North East: Introduction to BitCoin
Magento North East: Introduction to BitCoinMagento North East: Introduction to BitCoin
Magento North East: Introduction to BitCoinPeacock Carter Ltd
 
An Introduction to BitCoin and Cryptocurrency Ecosystem
An Introduction to BitCoin and Cryptocurrency EcosystemAn Introduction to BitCoin and Cryptocurrency Ecosystem
An Introduction to BitCoin and Cryptocurrency EcosystemJalal Rohani
 
What is Bitcoin? How Bitcoin works in under 5 minutes.
What is Bitcoin? How Bitcoin works in under 5 minutes.What is Bitcoin? How Bitcoin works in under 5 minutes.
What is Bitcoin? How Bitcoin works in under 5 minutes.Ryan Shea
 
An Introduction to Bitcoin
An Introduction to BitcoinAn Introduction to Bitcoin
An Introduction to BitcoinSigimera
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Moneywinklevosscap
 

Destacado (10)

Bitcoin -An Introduction
Bitcoin -An IntroductionBitcoin -An Introduction
Bitcoin -An Introduction
 
Bitcoin - An Introduction
Bitcoin - An IntroductionBitcoin - An Introduction
Bitcoin - An Introduction
 
Magento North East: Introduction to BitCoin
Magento North East: Introduction to BitCoinMagento North East: Introduction to BitCoin
Magento North East: Introduction to BitCoin
 
An Introduction to BitCoin and Cryptocurrency Ecosystem
An Introduction to BitCoin and Cryptocurrency EcosystemAn Introduction to BitCoin and Cryptocurrency Ecosystem
An Introduction to BitCoin and Cryptocurrency Ecosystem
 
Introduction Bitcoin
Introduction BitcoinIntroduction Bitcoin
Introduction Bitcoin
 
What is Bitcoin? How Bitcoin works in under 5 minutes.
What is Bitcoin? How Bitcoin works in under 5 minutes.What is Bitcoin? How Bitcoin works in under 5 minutes.
What is Bitcoin? How Bitcoin works in under 5 minutes.
 
Bitcoin technology
Bitcoin technologyBitcoin technology
Bitcoin technology
 
Bitcoin - the Basics
Bitcoin - the BasicsBitcoin - the Basics
Bitcoin - the Basics
 
An Introduction to Bitcoin
An Introduction to BitcoinAn Introduction to Bitcoin
An Introduction to Bitcoin
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Money
 

Similar a Introduction to bit coin

Get Some Ideas About Bitcoin.docx
Get Some Ideas About Bitcoin.docxGet Some Ideas About Bitcoin.docx
Get Some Ideas About Bitcoin.docxSameerShaik43
 
The Basic Theories of Blockchain
The Basic Theories of BlockchainThe Basic Theories of Blockchain
The Basic Theories of BlockchainSota Watanabe
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersElifTech
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin Jérôme Kehrli
 
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...Mariya James
 
BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxSohanaAmreen
 
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportBitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportShivek Khurana
 
Blockchain Money PPTjthkgykjtjkhyjhj.pdf
Blockchain Money PPTjthkgykjtjkhyjhj.pdfBlockchain Money PPTjthkgykjtjkhyjhj.pdf
Blockchain Money PPTjthkgykjtjkhyjhj.pdfmrmanojkumar1004
 
1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.pptbansalvvinayak832
 
38 C O M M U N I C AT I O N S O F T H E A C M M A.docx
38    C O M M U N I C AT I O N S  O F  T H E  A C M       M A.docx38    C O M M U N I C AT I O N S  O F  T H E  A C M       M A.docx
38 C O M M U N I C AT I O N S O F T H E A C M M A.docxdomenicacullison
 
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyBlockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyUnbiased Technolab
 
Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssHoward Anglin
 
unit3consesence.pptx
unit3consesence.pptxunit3consesence.pptx
unit3consesence.pptxGopalSB
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-BitcoinSatwikaHotwani
 

Similar a Introduction to bit coin (20)

Get Some Ideas About Bitcoin.docx
Get Some Ideas About Bitcoin.docxGet Some Ideas About Bitcoin.docx
Get Some Ideas About Bitcoin.docx
 
The Basic Theories of Blockchain
The Basic Theories of BlockchainThe Basic Theories of Blockchain
The Basic Theories of Blockchain
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For Beginners
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
 
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...
A Comprehensive Guide To Create Blockchain In Python | Blockchain Development...
 
BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptx
 
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - ReportBitcoin : A fierce decentralized crypto currency - Report
Bitcoin : A fierce decentralized crypto currency - Report
 
Blockchain Money PPTjthkgykjtjkhyjhj.pdf
Blockchain Money PPTjthkgykjtjkhyjhj.pdfBlockchain Money PPTjthkgykjtjkhyjhj.pdf
Blockchain Money PPTjthkgykjtjkhyjhj.pdf
 
1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt1910990335_ppt on blockchain and its issue.ppt
1910990335_ppt on blockchain and its issue.ppt
 
BLOCKCHAIN TECHNOLOGY
BLOCKCHAIN TECHNOLOGYBLOCKCHAIN TECHNOLOGY
BLOCKCHAIN TECHNOLOGY
 
38 C O M M U N I C AT I O N S O F T H E A C M M A.docx
38    C O M M U N I C AT I O N S  O F  T H E  A C M       M A.docx38    C O M M U N I C AT I O N S  O F  T H E  A C M       M A.docx
38 C O M M U N I C AT I O N S O F T H E A C M M A.docx
 
Basics of Block Chain
Basics of Block ChainBasics of Block Chain
Basics of Block Chain
 
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyBlockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain technology
Blockchain technologyBlockchain technology
Blockchain technology
 
Blockchain and bitcoin
Blockchain and bitcoinBlockchain and bitcoin
Blockchain and bitcoin
 
Tutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ssTutorial blockchain technical overview-ss
Tutorial blockchain technical overview-ss
 
unit3consesence.pptx
unit3consesence.pptxunit3consesence.pptx
unit3consesence.pptx
 
Cryptocurrency-Bitcoin
Cryptocurrency-BitcoinCryptocurrency-Bitcoin
Cryptocurrency-Bitcoin
 

Más de Vivian S. Zhang

Career services workshop- Roger Ren
Career services workshop- Roger RenCareer services workshop- Roger Ren
Career services workshop- Roger RenVivian S. Zhang
 
Nycdsa wordpress guide book
Nycdsa wordpress guide bookNycdsa wordpress guide book
Nycdsa wordpress guide bookVivian S. Zhang
 
We're so skewed_presentation
We're so skewed_presentationWe're so skewed_presentation
We're so skewed_presentationVivian S. Zhang
 
Wikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataWikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataVivian S. Zhang
 
A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data Vivian S. Zhang
 
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Vivian S. Zhang
 
Data mining with caret package
Data mining with caret packageData mining with caret package
Data mining with caret packageVivian S. Zhang
 
Streaming Python on Hadoop
Streaming Python on HadoopStreaming Python on Hadoop
Streaming Python on HadoopVivian S. Zhang
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorVivian S. Zhang
 
Nyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedNyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedVivian S. Zhang
 
Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Vivian S. Zhang
 
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataTHE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataVivian S. Zhang
 
Max Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningMax Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningVivian S. Zhang
 
Winning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangWinning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangVivian S. Zhang
 
Using Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesUsing Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesVivian S. Zhang
 
Introducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rIntroducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rVivian S. Zhang
 

Más de Vivian S. Zhang (20)

Why NYC DSA.pdf
Why NYC DSA.pdfWhy NYC DSA.pdf
Why NYC DSA.pdf
 
Career services workshop- Roger Ren
Career services workshop- Roger RenCareer services workshop- Roger Ren
Career services workshop- Roger Ren
 
Nycdsa wordpress guide book
Nycdsa wordpress guide bookNycdsa wordpress guide book
Nycdsa wordpress guide book
 
We're so skewed_presentation
We're so skewed_presentationWe're so skewed_presentation
We're so skewed_presentation
 
Wikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big DataWikipedia: Tuned Predictions on Big Data
Wikipedia: Tuned Predictions on Big Data
 
A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data A Hybrid Recommender with Yelp Challenge Data
A Hybrid Recommender with Yelp Challenge Data
 
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow Kaggle Top1% Solution: Predicting Housing Prices in Moscow
Kaggle Top1% Solution: Predicting Housing Prices in Moscow
 
Data mining with caret package
Data mining with caret packageData mining with caret package
Data mining with caret package
 
Xgboost
XgboostXgboost
Xgboost
 
Streaming Python on Hadoop
Streaming Python on HadoopStreaming Python on Hadoop
Streaming Python on Hadoop
 
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its authorKaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
 
Xgboost
XgboostXgboost
Xgboost
 
Nyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expandedNyc open-data-2015-andvanced-sklearn-expanded
Nyc open-data-2015-andvanced-sklearn-expanded
 
Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015 Nycdsa ml conference slides march 2015
Nycdsa ml conference slides march 2015
 
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public dataTHE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
THE HACK ON JERSEY CITY CONDO PRICES explore trends in public data
 
Max Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learningMax Kuhn's talk on R machine learning
Max Kuhn's talk on R machine learning
 
Winning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen ZhangWinning data science competitions, presented by Owen Zhang
Winning data science competitions, presented by Owen Zhang
 
Using Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York TimesUsing Machine Learning to aid Journalism at the New York Times
Using Machine Learning to aid Journalism at the New York Times
 
Introducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with rIntroducing natural language processing(NLP) with r
Introducing natural language processing(NLP) with r
 
Bayesian models in r
Bayesian models in rBayesian models in r
Bayesian models in r
 

Último

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Último (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Introduction to bit coin

  • 1. NYC Data Science Academy Introduction to BitCoin
  • 2. NYC Data Science Academy P2P: Peer-to-Peer Network  A peer-to-peer (P2P) network is a type of decentralized and distributed network architecture in which individual nodes in the network (called "peers") act as both suppliers and consumers of resources, in contrast to the centralized client–server model where client nodes request access to resources provided by central servers.  Peers are distributed in the whole Internet. It is hard to control and monitor the network activities. It is widely used in fields asking for high privacy. A P2P network A network based on the client-server model
  • 3. NYC Data Science Academy BitCoin  The fundamental paper by Satoshi Nakamot  Feature: Based on algorithm and public recognition, Decentralized  Scarcity, Mining, SHA256, Easy to exam, limit of speed  Comparing to Gold. Does bitcoin worth it?  Is BitCoin a Ponzi Scheme?  BitCoin and Anarchism  Problems: Copycats, Deflation, Anti-Conservation  How to maintain and manage the P2P network?
  • 4. NYC Data Science Academy Blueprint of Electronic Money
  • 5. NYC Data Science Academy Duplicated transactions  Solution: An authorized organization to record and exam transactions  A Mint is an organization that produce valid electronic money(avoid duplicated transactions). Receiver of a transaction need to send electronic money back to the mint for validation.  Pitfall: Relying too much on the central organization (Breakdown, Attacked, Manipulated, Monitored or Spied)
  • 6. NYC Data Science Academy Basic Concepts: the system of Bitcoin  Block: account book  Transaction  Bitcoin  Item: record of transactions  Transactions are recorded by Items  A block consists of many items (and other data)  Many blocks form a chain  Iterate over the items in the block chain to check account balance and transaction validity,
  • 7. NYC Data Science Academy Experiment: Check a block  http://blockexplorer.com/  Enter your block number to see the data
  • 8. NYC Data Science Academy What is inside a Block?
  • 9. NYC Data Science Academy Transaction
  • 10. NYC Data Science Academy Block  Bitcoin system only record blocks but not balance. Balance is calculated from items (records of transactions) in blocks  Every block stores all the items from all over the world in ten minutes. And there will be a new block every ten minutes. The speed is stable.  Number of items in a block is not stationary  Every node is producing block but the valid block is unique. We will talk about it later.  An ideal block: Block ID Item 1, Item 2, ... Item n Previous Block ID, Next Block ID, Other Information
  • 11. NYC Data Science Academy Block Chain  Blocks are connected by doubly linked list according to their generation order. This structure is convenient for iteration.  Every node is storing a block chain. Finally these chains are all the same, as the only valid one in the system. The 1st Block Block ID Prev ID Next ID The 2nd Block Block ID Prev ID Next ID The 3rd Block Block ID Prev ID Next ID
  • 12. NYC Data Science Academy Bitcoin and block generation  How to create Bitcoin: generate blocks (Fierce competitions of the generation, that is what we called 'Mining' .)  Rules: the first to the 210 thousand-th block worth 50 Bitcoins each, the 210 thousand-th to the 420 thousand-th block woth 25 Bitcoins, and so on. Repeating this procedure, we will get in total 21Million Bitcoins.  Because the real-world is always expanding, Bitcoin is determined to meet the problem of deflation.  Blocks will be generated cotinuously, because transactions will be charged for the service.
  • 13. NYC Data Science Academy Security  Private key and Public key, digital signature  SHA256: http://en.wikipedia.org/wiki/SHA-2
  • 14. NYC Data Science Academy Security  Private key and Public key, digital signature  SHA256: http://en.wikipedia.org/wiki/SHA-2
  • 15. NYC Data Science Academy Security  Enough money for the transaction (Solved)  Authenticity of transaction  Repeat Transactions
  • 16. NYC Data Science Academy Authenticity of transaction: Digital Signature
  • 17. NYC Data Science Academy  Calculate a hash number a, from all the data of block A.  Store a in the next block B.  Verify that if A is the previous block of B: Calculate a from A again, then compare to the hash number x stored in B.  Generate b from B and store it in C. Then we repeat this process and will get a block chain. Duplicated Transactions: Timestamp Block Previous hash number x Item Item Item Item Block Previous hash number x Item Item Item Item
  • 18. NYC Data Science Academy Timestamp  Do not rely on the local time, only related to the order of blocks  If there's a center maintaining the chain of valid blocks, it would be easy to check duplicated transactions.  How to achieve it in a decentralized network?
  • 19. NYC Data Science Academy Problems of P2P  Various network condition  Nodes are not running 24/7  No center for management  May exist evil nodes
  • 20. NYC Data Science Academy Bitcoin solution of P2P  Proof of Work  Controlling of block generation speed  Block broadcast and valid block chain
  • 21. NYC Data Science Academy Proof of Work 1. Calculate a hash number from the latest block 2. Keep receive items that are broadcasted but not inside any blocks. Check them and delete invalid ones(not enough money). 3. Randomly choose a number, Nounce. 4. Group data in step 1~3 and use SHA256 to calculate a 256bit hash number x. 5. Verify if there are enough leading 0s in x. If yes, then verify if this x meets the difficulty. If yes, then this process is finished. 6. Else, repeat from step 2. If there's a new block from other nodes, we need to restart the whole process.
  • 22. NYC Data Science Academy Difficulty of Proff-of-Work  https://en.bitcoin.it/wiki/Difficulty
  • 23. NYC Data Science Academy Difficulty  Controlling the speed of block generation. Updated every 2016 blocks (2 weeks) .  Difficulty = maximum_target / current_target  The target is a 256-bit number (extremely large) that all Bitcoin clients share. The SHA- 256 hash of a block's header must be lower than or equal to the current target for the block to be accepted by the network. The lower the target, the more difficult it is to generate a block.  Max target: 00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF  Current target (this is changing): 0000000000000000B3AA00000000000000000000000000000000000000000000
  • 24. NYC Data Science Academy Bits  Each block stores a packed representation (called "Bits") for its actual hexadecimal target. The target can be derived from it via a predefined formula. For example, if the packed target in the block is 0x1b0404cb, the hexadecimal target is  0x0404cb * 2**(8*(0x1b - 3)) = 0x00000000000404CB000000000000000000000000000000000000000000000000
  • 25. NYC Data Science Academy Difficulty is a Global parameter  If there's the only valid block chain, every node will get the same difficulty.  Difficulty is controlling the speed of block generation  Difficulty is also useful when checking a block's validity.
  • 26. NYC Data Science Academy Meaning of Difficulty  Control the speed and avoid inflation. A rapid increase in computation power is not affecting the generation speed.  Increase the cost of cheating.  The P2P netword need a lot of nodes to ensure the security (avoid manipulation). Difficulty is what drives nodes running.
  • 27. NYC Data Science Academy Temporal Block  Content of the block: 1. x genereted from SHA256, as the block ID 2. All the collected valid items 3. Random Number n 4. The latest hash number from the global block chain 5. Other informations  Broadcast this block to the P2P network  What will other nodes do: Duplication transactions and Validation
  • 28. NYC Data Science Academy Validation  Get items in the block  Check if there's duplicated items  Other validation steps  Link this block to the end of the locally stored 'Global Block Chain' . It is not formally added to the global block chain yet.
  • 29. NYC Data Science Academy Braches  A node will receive many new blocks generated from a common global chain.  For each block, generate braches locally.  Nodes are receiving blocks in different time points, and this leads to different local braches.  When there comes a longer chain, a node will turn to the longer one and discard the shorter one.  This algorithms will ensure the convergence to the longest chain.
  • 30. NYC Data Science Academy Example of Braches  The Green block is the 1st block of the world.  Black blocks represents the longest block chain, and validated to be the global chain.  Grey blocks are blocks on local braches, and discarded finally.
  • 31. NYC Data Science Academy Example of Braches 1. The form of two braches. 2. The right brach receive a new block and we discard the left one. 3. Again, different blocks linked to the end of global chain.
  • 32. NYC Data Science Academy Example of Braches 4. Firstly we receive two more blocks on the right brach 5. And another two blocks on the left brach, now these two braches are still of the same length. 6. Receive another block and we finally discards the right one.
  • 33. NYC Data Science Academy Example of Braches 7. The left brach receives another block. 8. Another one added to the left branch.
  • 34. NYC Data Science Academy Example of Braches  Finally, we have our longest block chain.
  • 35. NYC Data Science Academy Confirm the Transaction  To confirm a transaction, we need to add it to a newly generated block, and after 5 more blocks, this transaction could be finally confirmed and the transaction is successfully recorded.  After 6 blocks added to the global chain, it is nearly impossible to cheat or attack the original chain. The cheater cannot find a cluster that overwhelms all the other honest nodes and add 6 more fake blocks to the global chain.  Once the transaction is confirmed, it is almost impossible to modify or cancel.
  • 36. NYC Data Science Academy Summary of security of Bitcoin  All nodes in a P2P network monitor and save the global unique transaction backup  Timestamp ensure the order of blocks is valid  SHA256 ensure the generation of a block is hard, but validation is easy.  Proof-of-Work ensure the majority (honest nodes) have the true transaction record.
  • 37. NYC Data Science Academy Problems of Bitcoin system  Privacy  Transaction needs a lot of time to be confirmed  Deflation  Anti Conservation  Increasing amount of data
  • 38. NYC Data Science Academy Bitcoin in Action!  How to register?  How to mine?  How to trade Bitcoin?  How to pay with Bitcoin?
  • 39. NYC Data Science Academy The official website  https://bitcoin.org/en/
  • 40. NYC Data Science Academy What? There's official website?  https://bitcoin.org/en/about-us
  • 41. NYC Data Science Academy Bitcoin Wallet  MultiBit
  • 42. NYC Data Science Academy Need Screenshot from Mac or just demonstration in real time  Need Screenshot from Mac or just demonstration in real time
  • 43. NYC Data Science Academy Bitcoin Miner  GUIMiner
  • 44. NYC Data Science Academy Popular Mining Website  Deepbit  BTCGuild  BMP
  • 45. NYC Data Science Academy Need Screenshot from Mac or just demonstration in real time  Need Screenshot from Mac or just demonstration in real time
  • 46. NYC Data Science Academy Bitcoin exchange  Mt.Gox: It was the largest website, but closed in February 2014.  BTC-E: https://btc-e.com/  Bitstamp: https://www.bitstamp.net/
  • 47. NYC Data Science Academy Pay with Bitcoin  Bitcoin is told to be the best currency for illegal missions.  But publicly it is not very popular.  Donate bitcoin to personal projects is more popular. As in the popular game 2048.
  • 48. NYC Data Science Academy FAQ FAQ