Bitcoin and Bitcoin Mining Introduction Lab of Professor Hidetoshi Shimodaira Zehady Abdullah Khan Bachelor 4 th year, Mathematical Science Course, Department.

Slides:



Advertisements
Similar presentations
The easy answers to the hard questions! WHAT IS BITCOIN?
Advertisements

Let X 1, X 2,..., X n be a set of independent random variables having a common distribution, and let E[ X i ] = . then, with probability 1 Strong law.
Nathan Krussel.  What is a Crypto Currency  Purpose of Crypto Currency  What is Bitcoin  How does Bitcoin work  Mining BTC  How people perceive.
COMS 486 Iowa State University Introduction to Bitcoin A P2P Electronic Cash System.
BITCOIN – 2014 John BlackSpring Digital Currency  Chaum’s ideas in the 1980’s  All ideas required a central bank or single point of trust  Chaum.
Michal Kriziak MA1N0218 Financial Management The Bitcoin Currency.
Bitcoin Double Spending Attack Karame, Androulaki & Capkun Presented by Subhro Kar CSCE 715, Fall 2013.
Reliable System Design 2011 by: Amir M. Rahmani
Towards a More Democratic Mining in Bitcoins Goutam Paul R. C. Bose Centre for Cryptology & Security, Indian Statistical Institute Pratik Sarkar Indian.
Stefan Dziembowski Why do the cryptographic currencies need a solid theory? Forum Informatyki Teoretycznej, Warsaw
Planning under Uncertainty
Session 5 Hash functions and digital signatures. Contents Hash functions – Definition – Requirements – Construction – Security – Applications 2/44.
Advanced Computer Communications PROFESSOR:STUDENT: PROF. DR. ING. BRAD REMUS STEFAN FEILMEIER FACULTATEA DE INGINERIE HERRMANN OBERTH MASTER-PROGRAM.
Tirgul 8 Universal Hashing Remarks on Programming Exercise 1 Solution to question 2 in theoretical homework 2.
BITCOIN An introduction to a decentralised and anonymous currency. By Andy Brodie.
Bitcoin is the FUTURE of MONEY!!
Bitcoin 2013, San Jose Meni Rosenfeld Bitcoil 5/19/2013Written by Meni Rosenfeld1.
J. Wang. Computer Network Security Theory and Practice. Springer 2008 Chapter 4 Data Authentication Part II.
On the Anonymity of Anonymity Systems Andrei Serjantov (anonymous)
The world’s first decentralized digital currency Meni Rosenfeld Bitcoil 29/11/2012Written by Meni Rosenfeld1.
On Power Splitting Games in Distributed Computation: The case of Bitcoin Pooled Mining Loi Luu, Ratul Saha, Inian Parameshwaran, Prateek Saxena & Aquinas.
Digital Currency Kody Myers. Definition Currency that does not exist in any physical form, but can be used similarly to physical currency while retaining.
Business Modeling Lecturer: Ing. Martina Hanová, PhD.
Bitcoin (what, why and how?)
Random Sampling, Point Estimation and Maximum Likelihood.
Chapter 4 Statistics. 4.1 – What is Statistics? Definition Data are observed values of random variables. The field of statistics is a collection.
BitCoin An overview. Why ? First crypto-currency.
Bitcoin, P2P & Distributed Computing How to mine on the Internet By :Michelle Davies.
Bitcoins and the Digital Economy Presented By: Matt Blackman.
Bitcoins – Mining and Trading Jonathan Day, Carpe Diem 18 th July 2013.
CSCI 172/283 Fall 2010 Hash Functions, HMACs, and Digital Signatures.
1 Bitcoin A Digital Currency. Functions of Money.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Mean, Variance, Moments and.
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
OBJECTIVES  To understand the concept of Electronic Payment System and its security services.  To bring out solution in the form of applications to.
Point Estimation of Parameters and Sampling Distributions Outlines:  Sampling Distributions and the central limit theorem  Point estimation  Methods.
Bitcoin Tech Talk Zehady Abdullah Khan (Andy) Graduate Assistant, Computer Science Department, Purdue University.
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.
Business Modeling Lecturer: Ing. Martina Hanová, PhD.
How Bitcoin Achieves Decentralization
First… What is Cryptocurrency? A Cryptocurrency is a digital currency that is created through mathematical engineering (algorithm). It is designed to.
© 2016 consensys.net Intro to The Blockchain. © 2016 consensys.net.
Block Chain 101 May 2017.
Motivation ✓ ✘ ? Bitcoin/Ideal Credit Card Works on Internet
Crypto Mining Presented by: 803Mine.com & TheCryptoMiners.com.
Bitcoin A Basic Tutorial on Decentralized money
Join Bitcoin2You & Start Earning Today!!
Passion for building stronger business
Cryptocurrencies by.
Origins of Banking & Fiat Money
Bitcoin - a distributed virtual currency system
Cryptocurrencies By Rui Sakurai and Shane Spears
Bitcoin Created By: CoinSecure.in.
So what is Blockchain anyway?

Zcash Mining – A Guide For Beginners. Zcash (also known as ZEC and seventeenth most valued cryptocurrency with market capitalization of $500 million)
Data Structures and Analysis (COMP 410)
Life skill presentation
Crypto Mining LLC.
Nonce Making Sense of Nonces.
Data Structures and Analysis (COMP 410)
Presentation On Bit-Coins.
Wokshop SAIS 2018 Dr. Meg Murray Kennesaw state university
Faculty Seminar Series Blockchain Technology
CME Bitcoin Futures: Volatility and Liquidity
GAYATRI INSTITUTE OF COMPUTER AND MANAGEMENT HINJILICUT (GANJAM)
Blockchain Tech Big Picture
Majority is not Enough: Bitcoin Mining is Vulnerable
Explore Txs, block, blockchain in Bitcoin
Presentation transcript:

Bitcoin and Bitcoin Mining Introduction Lab of Professor Hidetoshi Shimodaira Zehady Abdullah Khan Bachelor 4 th year, Mathematical Science Course, Department of Information and Computer Sciences, School Of Engineering Science, Osaka University

Contents Introduction of Bitcoin.What is Bitcoin Mining?Different Mining Methods.Pool-Hopping Problem.Introduction of Hopping-Proof Methods. 2 According to mainly two papers: 1. Bitcoin: A peer-to-peer electronic cash system S. Nakamoto, Tech Report, Analysis of Bitcoin Pooled Mining Reward Systems Meni Rosenfeld - Distributed, Parallel, and Cluster Computing,2011

Bitcoin Digital Currency Public Key Cryptograp hy Internet Security Cryptography Financial Transaction E-Cash Complex Network Intro 3

What is Bitcoin?  A digital currency  Unit: BTC (1 BTC = 110 USD).  Buy or sell goods.  Differences  Decentralized and Distributed.  Low fee & Fast Transaction.  Anonymous : Address Address transaction.  Value increase (Only 21,000,000 Bitcoin)  How do you get and use bitcoin?  Bitcoin exchanges to buy and sell bitcoin.  Bitcoin wallets to use bitcoin to receive or send bitcoin. 4

How Bitcoin looks like?  Not a physical object like gold or paper-money.  A chain of digital signatures in a block-chain.  Block header  Transactions  Block Reward( B )  25 bitcoin per valid block  Halves every 4 year  How do you count your bitcoin?  Bitcoin wallet collects/remembers all the transactions associated with you. 5

Block: Human Readable format 6

Block Confirmation: Proof of Work  Current target( T cur ): “Bits” field  Maximum target( T max ): 0x FFFF  Condition of Block confirmation  Hash of block header T cur  Block Difficulty( D ): (2016 Blocks / every 2 week)  Which hash will validate the block ?  A Hash validating a block is a Rare Event  SHA256 chooses any 256-bit number from 0 ~ 2^256 7 Nonce Change A completely different hash of the block header SHA 256 Cryptographic Hash Function SHA 256 Cryptographic Hash Function Block Header Hash of Block header (256 bit Number) Hash of Block header (256 bit Number)

Block Validation Probability  0x FFFF The offset for difficulty 1 is and for difficulty D is  The expected number of hashes we need to calculate to find a block with difficulty D is  Every hash has a probability of to validate a block bits 16bits T max

Bitcoin Mining Intro  If your hash rate is h and you mine for time, on average the number of found blocks is  D = Difficulty, h = miner’s hashrate  Exp- Ananda buys a mining computer with h = 1Ghash/s = 10^9 hash/s. If he mines for a day( 86,400 s ) when D = and B= 50BTC Found Blocks = ht / ( 2^32 * D) = blocks = * B = BTC  Classification of mining  Solo Mining: Mining alone.  Pooled Mining: Mining with other miners in a mining pool. 9

Solo Mining as a Poisson Process  Number of trial is depends on miner’s hash rate h  p: Probability of success(very small).  n: Number of blocks found by a miner  mining for time t with hash rate h results in on average blocks.  n follows the Poisson distribution P 0 (λ) where λis the parameter called intensity.  P: Payout P= N x 1B = N x 25 x 11500¥ (1B = 1block = 25 BTC)  Exp: Ananda has V[P]=0.0119B 2, σ = 5.454B,  About 3 months to find a block in solo mining.  The process is completely random and memoryless.  May wait on average 3 more months. 10

Pooled Mining  Joint effort & reward distribution.  H: Total hash rate of all miners.  Single miner’s hash rate h = qH (0<q<1)  E[P p ] : Total average payout of the pool  E[P s ] : Single miner’s payout in pooled mining  V[P s ] : Single miner’s variance in pooled mining 11

Pooled Mining  f: Fee/Block, B = Block reward.  Operator’s fee for a block = fB.  Actual Reward for the pool miners = B – fB = (1-f)B.  In a pool  Each miner submits shares into the pool.  Share: Hash of a block header calculated by a miner which is less than T cur assuming D=1 (e.g. T cur = T max ).  Each hash has a probability of to be a share in the pool.  Each share has a probability p = to validate a block.  For a single share, a miner’s Expected payout = Expected contribution to total reward = pB 12

Pooled Mining Reward System  A pool has the potential to improve the variance of a miner.  Dividing a reward in a fair way is difficult. Existing pool reward systems 13 Pooled Mining Simple Reward Systems Proportional Pay-per- share Score-based Systems Slush’s Method Geometric Method Pay-per-last- N-shares

Proportional Pool 14

Proportional Pool  (1-f)B is distributed in proportion to the number of shares in a Round.  Round: Round is the time between two success (2 blocks).  n: Number of shares submitted by a miner during a round.  N: Total number of shares during the round.  Miner’s payout =  Assumption: Fixed number of miners in a proportional system.  N follows a negative binomial distribution with success rate p=1/D. 15

Proportional Pool: Expected Value & Variance  After the success in the previous round, in the next round, we have N-1 failed shares before the final successful share. 16

Proportional Pool: Expected Value & Variance  After the success in the previous round, in the next round, we have N-1 shares before the final success share.  Exp : if D = 1.5 x 10 6, Variance per share of a miner in a pool is 1.13 x 10 5 times less than the variance in solo mining. 17

Pool-Hopping Problem 18  Pool-Hopping: Some miners leave pool early to increase their profit but that decrease the profit of continuous miners.  N: Total Number of shares follows a geometric distribution with parameter p.  Given that, I shares already submitted, then N > I.

Simplification… 19

Pool-hopping Amplification factor 20   Represents the amplification factor when xD = (p I )(1/p)= I shares have already been submitted.  Monotonically decreasing function.  A pool hopper will mine if x x 0.  The payout of the honest miners will be less than expected because of hopping by pool hoppers.

Pay-per-share Pool 21

Pay-per-share pool(PPS)  A hopping-proof method.  Reward is given per share.  When a participant submits a share, he is immediately rewarded with (1-f)pB independent of found blocks.  Operator keeps all the rewards for found blocks.  PPS is a deterministic value known in advance.  Properties:  Offers zero variance in the reward per share.  No waiting time.  No losses due to pool-hopping.  But operator is taking the risk  What if no blocks are found?  Chance of bankruptcy. 22

Marcov chain Modeling in PPS pool  When will the PPS pool go bankrupt?  Goal: Estimate the financial reserves that the pool operator should keep to prevent pool bankruptcy.  Pool operator’s balance can be modeled as the Markov chain where each submitted share corresponds to a step. 23

Marcov chain Modeling in PPS pool (continued)  By the central limit theorem, Long term behavior of the stochastic process is equivalent to the following form with the same expectation fpB and variance pB 2.  Scaling the initial condition by a factor of, we get the following equivalence. 24

Bankruptcy Recurrence Equation  a n : Probability to ever reach 0 (represents bankruptcy ).  Given: We start in state n and denoting  By conditioning on the first step we can get recurrence eqn.  The characteristic polynomial of this eqn. is  General solution:  Boundary Conditions:, we have  Thus, 25

Safe reserve for a PPS pool  R: Starting reserve of the pool operator.  δ: Probability that the pool will ever go bankrupt.  To maintain a bankruptcy probability at most, pool should reserve at least  Exp1: B = 50 BTC,δ=1/1000,f = 5%, R=3454 BTC  Exp2: If operator fixes f=1%,he has R = 500BTC, then Probability of bankruptcy δ= 81.9% 26

Hopping Immunity Theorem  It’s impossible to stop hopping if you pay rewards to unsuccessful shares.  Theorem:  Suppose, difficulty D and block reward B are fixed.  Let a reward method distribute (1-f)B among shares in the round according to a deterministic function of the round length and the share index. 27 Expected Reward per share at the time of submission is always (1-f)pB The entire reward is always given to the last share submitted. The entire reward is always given to the last share submitted.

Methods not discussed  PPS is not that good.  Hopping-proof methods.  First attempt done in Slush’s pool using exponential score function to give scores to the miners.  Not completely hopping-proof.  Other Score based methods  Geometric method.  Pay-per-last-N-shares.  Some other advanced method. 28

Things I want to research  Statistical analysis of pooled mining.  Statistical analysis of transaction graphs.  Integrate or Develop better mining pools. 29

Bibliography  Bitcoin: A Peer-to-Peer Electronic Cash System - S. Nakamoto, Tech Report, 2009  Analysis of Bitcoin Pooled Mining Reward Systems - Meni Rosenfeld - Distributed, Parallel, and Cluster Computing,2011  On Bitcoin and Red Balloons - M. Babaioff, S. Dobzinski, S. Oren, and A. Zohar, SIGEcom(Special Interest Group on ecommerce) Exchanges, 10(3), 2011  Quantitative Analysis of the Full Bitcoin Transaction Graph - D. Ron and A. Shamir, Financial Cryptography 2013  Bitter to Better — How to Make Bitcoin a Better Currency - S. Barber, X. Boyen, E. Shi, and E. Uzun, Financial Cryptography 2012  Cryptographic hash-function basics: Definitions, implications, and separations for preimage resistance, second-preimage resistance, and collision resistance - P Rogaway, T Shrimpton - Fast Software Encryption, Springer 30

The End 31

Bitcoin Global Nodes Charts 32

Bitcoin Demographics Charts 33

Bitcoin Purchase Charts 34

Roles in Bitcoin Network Charts 35

Things happened because of bitcoin Charts 36

Real world/Offline interaction You can buy and Purchase with BTC!!! Charts 37

Offline Bitcoin meetups in USA Charts 38

Companies and Venture Capital Charts 39

Bitcoin Client Software(Wallet) 40

Bitcoin Software Download Graphs 41

Bitcoin Penetration Graphs 42

Downloads vs Penetration vs Internet Access Graphs 43

Global Search Traffic 44 Graphs

Trading Volume 45 Graphs

Trading Volume 46 Graphs

Bitcoin Volatility 2 47

Is everything positive ? NO  Bitcoin can topple governments, destabilize economies, and create uncontrollable global bazaars for contraband.  Bitcoins will facilitate transactions for  criminals,  online poker players,  tax-evaders,  pornographers,  drug dealers,  and other unsavory types tired of carrying around a Vermeer.  Bitcoin is just like knife or hammer. You can kill or you can use it the most efficient,profitable way !!!! 48