Technical Overview of Bitcoin

Slides:



Advertisements
Similar presentations
Secure Multiparty Computations on Bitcoin
Advertisements

COMS 486 Iowa State University Introduction to Bitcoin A P2P Electronic Cash System.
Bitcoin. What is Bitcoin? A P2P network for electronic payments Benefits: – Low fees – No middlemen – No central authority – Can be anonymous – Each payment.
Bitcoin Double Spending Attack Karame, Androulaki & Capkun Presented by Subhro Kar CSCE 715, Fall 2013.
Towards a More Democratic Mining in Bitcoins Goutam Paul R. C. Bose Centre for Cryptology & Security, Indian Statistical Institute Pratik Sarkar Indian.
The world’s first decentralized digital currency Meni Rosenfeld Bitcoil 29/11/2012Written by Meni Rosenfeld1.
Bitcoin (what, why and how?)
1 Bitcoin A Digital Currency. Functions of Money.
Bitcoin today (October 2, 2015)
Intro to Block Chain Bitcoin. Blocks ●Ethereum - block chain ●Dogecoin - block chain ●Ripple - not a block chain ●Stellar - not a block chain ●Bitcoin.
Demystifying incentives in the consensus computer Loi Luu, Jason Teutsch, Raghav Kulkarni, Prateek Saxena National University of Singapore.
SCP: A Computationally Scalable Byzantine Consensus Protocol for Blockchains Loi Luu, Viswesh Narayanan, Kunal Baweja, Chaodong Zheng, Seth Gilbert, Prateek.
Bitcoin Tech Talk Zehady Abdullah Khan (Andy) Graduate Assistant, Computer Science Department, Purdue University.
Bitcoin is a cryptographic currency that has been in continuous operation over the last 3 years. It currently enjoys an exchange rate of $4.80 (as of April.
Section #9: Bitcoins. Digital currency Unique string of bits Use cryptography for security and privacy Not tied to names: hard to trace Finite set of.
Towards Reference Architecture for Cryptocurrencies: Bitcoin Architectural Analysis Israa Alqassem, Davor Svetinovic.
First… What is Cryptocurrency? A Cryptocurrency is a digital currency that is created through mathematical engineering (algorithm). It is designed to.
Bitcoin Bitcoin is a cryptocurrency. The platform that hosts Bitcoin is a p2p system. Bitcoin can be abstracted as a digital file that records the account.
Block Chain 101 May 2017.
Motivation ✓ ✘ ? Bitcoin/Ideal Credit Card Works on Internet
What Is Bitcoin? Launched in 2009 A p2p Electronic Cash System
Passion for building stronger business
Bitcoin and the Blockchain
Cryptocurrencies by.
Bitcoin Based on “Bitcoin Tutorial” presentation by
Evaluation Forms for Blockchain- Based System ver. 1.0
Mechanics of Bitcoin Part II
Virtual currency? Crypto-currency? Internet Money? Property?
Bitcoin - a distributed virtual currency system
Mechanics of Bitcoin Part I
Distributed Systems for Information Systems Management
Cryptocurrencies By Rui Sakurai and Shane Spears
Bitcoin Created By: CoinSecure.in.
A private and secure cryptocurrency for mobile devices
Dash Mining - for Dummies. Dash, an altcoin, is best known for two main features – ability to send instantly and highest level of privacy provision. It’s.
So what is Blockchain anyway?
Blockchain Adrian Zaragoza.

Zcash Mining – A Guide For Beginners. Zcash (also known as ZEC and seventeenth most valued cryptocurrency with market capitalization of $500 million)
Let’s build a Blockchain!
Providing Secure Storage on the Internet
NEECOM – May 16, 2018 Todd L. Gould, CEO
BLOCKCHAIN BASICS & LEGAL ISSUES
Bitcoin and the Blockchain
Bitcoin: A New Internet Currency
Blockchains slides have been taken from:
Bitcoin: Data flow.
Nonce Making Sense of Nonces.
Modernization of. Currency. Evolution Of Currency: Bartering System: Grains and cattle are popular in Barters. Firstly recorded in Egypt. Coinage: Metals.
Blockchain Principles
Blockchain Concepts RISK FORUM 2017 Hash function (e.g. SHA-256)
Bitcoin & Blockchain Bina Ramamurthy 2/22/2019.
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
OurSQL = MySQL + Blockchain
Kai Bu 04 Blockchain Kai Bu
Blockchains and Smart Contracts for the Internet of Things
Bitcoin Data Structures
Modified from Bob Vachon
Wokshop SAIS 2018 Dr. Meg Murray Kennesaw state university
Faculty Seminar Series Blockchain Technology
Zerocash: Decentralized Anonymized Payments from Bitcoins
CSE 552 preparation for reading
Campbell R. Harvey Duke University and NBER
Blockchain Tech Big Picture
Blockchain Tech Big Picture
Bitcoin and Blockchain
Explore Txs, block, blockchain in Bitcoin
BUILDING A BLOCKCHAIN USING PYTHON
Cryptocurrency and Blockchain Technology
Presentation transcript:

Technical Overview of Bitcoin Xiaojie Zhu

Content Exclude Include Economics: Shall I buy Bitcoin? Laws: Is it a legal currency? Politics: How to avoid Bitcoin for stabling countries? .... Include Techniques: hash chain, POW, distributed consensus and so on Code: Bitcoin core 09.11.2018

Questions What is Bitcoin? How does it work? Why does it work? Data structure that is utilized in the bitcoin network. 09.11.2018

Overview Data Structure Transaction Block Mining Network Forks Wallet Data structure that is utilized in the bitcoin network. 09.11.2018

Where are they in Bitcoin blueprint? Data structure that is utilized in the bitcoin network. 09.11.2018

What is Bitcoin? Super Mario Bros. Withdraw Store issue Gold Coin 09.11.2018

What is Bitcoin? Without bank? Yoshi Luigi 09.11.2018

What is Bitcoin? The allegory of the long spoons  09.11.2018

What is Bitcoin? How to avoid the bad thing happening to the “heaven”, e.g., good man starves to death? 09.11.2018

log metric value What is Bitcoin? Record the history Create metric to evaluate the contribution Set the priority level based on the contribution How to implement it in a system? log metric value 09.11.2018

Bitcoin is created to implement previous mission What is Bitcoin? Bitcoin is created to implement previous mission 09.11.2018

How does it work? Hash Chain b1 h(b1) b2 h(h(b1, h(b1)), b2) b3 h(b3, h(h(b1, h(b1)), b2)) How to make sure the content inside a log is real? 09.11.2018

How does it work? Merkle tree (binary hash chain) Data structure that is utilized in the bitcoin network. 09.11.2018

How does it work? Block chain Data structure that is utilized in the bitcoin network. 09.11.2018

How does it work? Transaction records the ownership change of Bitcoin Transaction hash Input address We talk about the transaction. 1:Not unspent transaction? 2:The same address? Output address 3: How do you know? 09.11.2018

How does it work? Two kinds of transactions No Input List of inputs Why it is zero input? Data structure that is utilized in the bitcoin network. Reward transactions Normal transactions 09.11.2018

How does it work? Input script Output script Transaction signature ScriptSig: PUSHDATA(72) [3045022100f0569b4734f446d021d81c2ecf3d91ce6e5251f064628769888e6a701c56292d02201fc5943c62c302473cb1c65d54d426115e812c72df65ea0dccdf70582181271b01] PUSHDATA(33)[02227cedfab55d1b7642d47a5ac92638ed8822a23c3ddadf88defea45a37f5935e] Public key Different? ScriptSig: The length of a signature is from 71 to 73 bytes. The probability is, 25%, 50% and 25%. DDP:Duplicates the top item on the stack OP_HASH160: hash twice, fitst using OP_EQUALVERIFY:Returns true if the inputs are equal. Returns false and marks the transaction as invalid if they are unequal OP_CHECKSIG: Checks that the input signature is a valid signature using the input public key for the hash of the current transaction OP_CHECKMULTISIG:Checks that the k signatures on the transaction are valid signatures from k of the specified public keys. Address hash HASH160 PUSHDATA(20)[42bf530f0afed3149338ba351148be0f844f49e5] EQUAL DUP HASH160 PUSHDATA(20)[b08f46e4d21cd0547a8a1e2e43e5440284f710a4] EQUALVERIFY CHECKSIG 09.11.2018

How does it work? Script execution (Spend the transaction) Lock? Validation:<sig><PubK><DUP><HASH160><PukKHash><EqualVerify><CheckSig> 09.11.2018

How does it work? Dup PubkHash Hash160 PubK PubkHash PubKHASH PubK Data structure that is utilized in the bitcoin network. PubK EQUALVERIFY Sig CHECKSIG 09.11.2018

How does it work? Block Transaction data is permanently recorded in files called blocks (wiki) 09.11.2018

How does it work? Why it needs timestamp? Number Of Transactions 1978 Transaction Fees 1.57825302 BTC Height 506236 (Main Chain) Timestamp 2018-01-26 18:30:30 Difficulty 2,603,077,300,218.59 Nonce 2682281202 Block Reward 12.5 BTC Why it needs timestamp? What are they? any relatinship? 09.11.2018

How does it work? Mining The process of adding transaction records to Bitcoin's public ledger of past transactions (wiki) It is a decentralized computational process that serves 2 purposes: (a mining company) Confirms transactions in a trustful manner when enough computational power (effort) is devoted to block Creates (issues) new bitcoins in each block Data structure that is utilized in the bitcoin network. 09.11.2018

How does it work? Verify if transaction is valid Bundle transactions in a block Select the header of the most recent block and insert it into the new block as a hash Solve the Proof of Work problem When the solution is found, the new block is added to the local blockchain and propagated to the network 09.11.2018

How does it work? Nonce (an incremental number) No Is hash < target value? Proposed new block Combine and hash Hash number Start Yes Data structure that is utilized in the bitcoin network. Mining pool? You solve the POW Head of the most recent block determines Mining difficulty Mining reward 09.11.2018

How does it work? Proof-of-work: Hash puzzle A piece of data which is difficult (costly, time-consuming) to produce but easy for others to verify and which satisfies certain requirements (wiki) Hash puzzle 09.11.2018

How does it work? Mining difficulty & Target value 09.11.2018

How does it work? Labyrinth Game Difficulty Increases with the resources that a challenger owns. 09.11.2018

How does it work? Consensus Consensus rules in Bitcoin “Well, everyone will basically agree.”(wiki) Consensus rules in Bitcoin The specific set of rules that all the nodes having all blocks and transactions will unfailingly enforce when considering the validity of a block and its transactions (wiki) Is it necessary for all ? Block verfication 09.11.2018

How does it work? Is it scalable? Is it robustness? Is it reliable? Gossip protocol 09.11.2018

How does it work? Forks Application Soft forks: main chain rejects the miners that did not update the blocks built by the miners that did not update themselves do not match the new requirement Hard forks: miners that did not update reject main chain the main chain includes new blocks that without update miners verifies as invalid blocks Application Introduce new operation code(Hard) Software update (Soft) 09.11.2018

How does it work? Bitcoin fork & New Coins 09.11.2018

How does it work? Wallet SPV (Simple Payment Verification) A collection of private keys but may also refer to client software used to manage those keys and to make transactions on the Bitcoin network (wiki) SPV (Simple Payment Verification) A client that only downloads the headers of blocks during the initialization process and then requests transactions from full nodes as needed a way where you can determine that a particular transaction was in a block in the block chain without requiring the entire block chain to be downloaded Block Headers: (byte) 4 version, 32 previous block header, 32 mercle root, 4 time, 4 encode of target, 4 nounce. In total 80 bytes 09.11.2018

How does it work? Transaction confirmation Inside block:506364 Most recent: 506367 09.11.2018

Why does it work? Cryptographically secure hash function Its input can be any string of any size. It produces a fixed size output It is efficiently computable It is hard to reverse It is collision‐resistance 09.11.2018

Why does it work? Unforgeable signature Each user can efficiently produce his/her own signature on document of his/her choice Every user can efficiently verify whether a given string a signature of another user on a specific document It is infeasible to produce signature of other users to documents that they did not sign 09.11.2018

Why does it work? Bloom filter & Proof of membership It is a space-efficient probabilistic data structure It is is used to test whether an element is a member of a set It has Zero false negative 09.11.2018

Book references Bitcoin and Cryptocurrency Technologies Distributed consensus: 2.2,2.3 Minging and proof of work: 2.4 Bitcoin transactions: 3.1 Bitcoin scripts: 3.2 Bitcoin Blocks: 3.4 Bitcoin network: 3.5 Forks: 3.6 Mastering Bitcoin - Second Edition: chapter 2 09.11.2018

Website references https://blockchain.info/ https://en.bitcoin.it/wiki/Main_Page https://mastanbtc.github.io/blockchainnotes/consensustypes https://www.bitcoinmining.com/ 09.11.2018

Discussion What is the advantage and disadvantage of Block chain? What is the difference between pay-to-publick key and pay-to-script-hash? Why the system reaches a consensus finally? Is it necessary to have transaction fees? How is the reliability and validity of the SPV mechanism? Why the mining difficulty should be around 10 minutes? Is there any better/alternative mechanism in addition to POW? 09.11.2018