fast and secure transactions
play

Fast and Secure Transactions Presenter: Dae Kwang Lee Adviser: - PowerPoint PPT Presentation

Bitcoin Blockchain: Fast and Secure Transactions Presenter: Dae Kwang Lee Adviser: Matthew Anderson What is Bitcoin? B C Decentralized peer-to-peer electronic payment system A Each node stores a copy of the public transaction history


  1. Bitcoin Blockchain: Fast and Secure Transactions Presenter: Dae Kwang Lee Adviser: Matthew Anderson

  2. What is Bitcoin? B C Decentralized peer-to-peer electronic payment system A Each node stores a copy of the ▪ public transaction history D E Transactions verified by nodes ▪ Nodes send new transactions to ▪ their peers Peer network of node A

  3. Transaction Block #1 Block #2 Input: previous output hash ▪ Proof of Work Proof of Work Output: instructions for sending ▪ Block #0’s hash Block #1’s hash bitcoins Transactions Transactions

  4. Blockchain Block #1 Block #2 ▪ Miner • Collects transactions & generates a block by Proof of Work Proof of Work solving computational puzzle* Block #0’s hash Block #1’s hash • Sends block to peers • Mines a 1MB block / 10min • Incentivized with bitcoin Transactions Transactions and RESIDUALS *Proof Of Work Hash (previous block’s hash + • transactions + nonce) <= target

  5. Blockchain Forking and Primitive Solution Forking happens when.. Duplicate blocks are generated • Each node has different history • Transactions are not validated! • ? May develop into selfish-mining to • revert transactions and double-spend NAKAMOTO CONSENSUS Stable Blocks Nodes agree on this policy • Resolves by adding block on the • longest chain

  6. Is there a faster policy that generates less stale blocks? Nakamoto Consensus Adds block onto the longest chain ▪ $1 $2 $1.1 $0.5 $1 Greedy Heaviest Observed SubTree (GHOST) 2013 $2 $1 GHOST HIRES Adds block on the heaviest ▪ subtree at each fork $1 $1.5 $1.3 $0.7 Faster but generates more stale ▪ blocks $0.4 Highest Residual Selection Policy (HIRES) $1.1 $1.3 $1.6 $0.6 $2 $1.1 Adds block on the most expensive ▪ subtree at each fork

  7. Bitcoin Simulator ▪ Arthur Gervais Collects block size data from Blockchain.Info from ▪ May 2015 to November 2015 16 threads of mining activities ▪ Can adjust block parameters ▪ Returns each node’s copy of the ledger ▪

  8. Methods I. Collected txFee data to build probability distribution II. Used txFee probability distribution during mining III. Made miners to pick the highest residual for each mining activity IV. Optimized HR policy to go five level down Experiments: I. Typical parameters II. Extreme parameters III. Extreme parameters with selfish mining

  9. Experiment I Left: HIRES Right: NAKAMOTO

  10. Experiment II Left: HIRES Right: NAKAMOTO

  11. Experiment III Left: HIRES Right: NAKAMOTO

  12. Result Parameters Generating 100 1MB blocks within 6s and Generating 100 1MB blocks within 6s while distributing to 500 nodes selfish miner > 50% Nakamoto # Total blocks: 42.120 # Total blocks: 102.13 ▪ ▪ # Stale blocks: 28.094 (66.7%) # Stale blocks: 46.10 (45.1%) ▪ ▪ Mean Block Propagation Time: 87.073 ▪ Honest Mining Income = 55.46 ▪ Attacker Income = 54.92 (-0.009%) ▪ HIRES # Total blocks: 31.60 # Total blocks: 99.36 ▪ ▪ # Stale blocks: 12.1 (38.3%) # Stale blocks: 38.012 (38.2%) ▪ ▪ Mean Block Propagation Time: 128.02 ▪ Honest Mining Income = 59.30 ▪ Attacker Income = 55.206 (-6.9%) ▪

  13. Experiment I ▪ Both policies generate 0 stale blocks • Conclusion: Experiment II ▪ ❖ HIRES: 1. HIRES is slower and generates less Less stale blocks • stale blocks Less blocks in total (timeout expired) • Greater block propagation time • 2. HIRES incentivizes attackers less than honest miners Experiment III ▪ 3. HIRES contradicts my hypothesis ❖ HIRES: based on the GHOST Less stale blocks • Attacker loses more money •

  14. Future Work Optimize the new policy to propagate more blocks I. Fast propagation II. Micro payment III. Makes fewer stale blocks

  15. THANK YOU

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend