SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Kürzlich hochgeladen (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

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