Bitcoin and Blockchain

Slides:



Advertisements
Similar presentations
Bitcoin. What is Bitcoin? A P2P network for electronic payments Benefits: – Low fees – No middlemen – No central authority – Can be anonymous – Each payment.
Advertisements

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 Transaction Scripting Andy Ofiesh Senior Software Engineer Armory Technologies, Inc. MIT Bitcoin Expo, May 3rd, 2014 © Armory Technologies, Inc.
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.
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.
Bitcoin Based on “Bitcoin Tutorial” presentation by Joseph Bonneau, Princeton University Bonneau slides marked “JB”
Towards Reference Architecture for Cryptocurrencies: Bitcoin Architectural Analysis Israa Alqassem, Davor Svetinovic.
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
CSE 4095 Lecture 22 – BlockChain Slides adapted from Claudio Orlandi.
Bitcoin A Basic Tutorial on Decentralized money
Bitcoin and the Blockchain
Cryptocurrencies by.
Bitcoin Based on “Bitcoin Tutorial” presentation by
Blockchains . or . How to avoid paying $40,000,000 for two pizzas
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
CPS 512 midterm exam #1, 10/5/17 Your name please: NetID:_______ Sign for your honor:____________________________.
Bitcoin and the Blockchain
Bitcoin Explained in 2 Minutes
So what is Blockchain anyway?
Campbell R. Harvey Duke University and NBER
protocollo e casi studio

Technical Overview of Bitcoin
Atomically Swapping Coins: for Privacy or Cross-Blockchain Trades
Strategizing Testing for Blockchain /Distributed Ledger Products
Advanced Cryptography Protocols
Nakamoto Consensus Marco Canini
EECS 498 Introduction to Distributed Systems Fall 2017
Focus Group 3: Blockchain and digitalisation
CS 240: Computing Systems and Concurrency Lecture 20 Marco Canini
NEECOM – May 16, 2018 Todd L. Gould, CEO
Bitcoin and the Blockchain
Bitcoin: A New Internet Currency
Setting the Stage for a Community Blockchain Incubator
Blockchains (2) slides have been taken from:
Campbell R. Harvey Duke University and NBER
Campbell R. Harvey Duke University and NBER
Blockchain technology
Bitcoin: Data flow.
Nonce Making Sense of Nonces.
Campbell R. Harvey Duke University and NBER
Blockchain Basics Daniel Hao Tien Lee
Blockchain Concepts RISK FORUM 2017 Hash function (e.g. SHA-256)
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Teechain: Scalable Blockchain Payments using Trusted Execution Environments GIZEM AKDENIZ DECEMBER 13 , 2018.
Kai Bu 04 Blockchain Kai Bu
Blockchains and Smart Contracts for the Internet of Things
Wokshop SAIS 2018 Dr. Meg Murray Kennesaw state university
Faculty Seminar Series Blockchain Technology
Zerocash: Decentralized Anonymized Payments from Bitcoins
Lightning or How to Pay Quickly with Bitcoin
CSE 552 preparation for reading
Campbell R. Harvey Duke University and NBER
Blockchain.
Explore Txs, block, blockchain in Bitcoin
Cryptocurrency.
Not about digital currencies
Presentation transcript:

Bitcoin and Blockchain

Overview Bitcoin address Bitcoin transactions Locking and unlocking script Blocks and Bitcoin mining Blockchain

Bitcoin Address Elliptic Curve Cryptography Compressing Public Key Generating Public and Private Keys Compressing Public Key Generating Public-Key Hash

Turning Public-Key Hash into Bitcoin Address

Base58 Encoding

Transactions: Intuition

Components of Transactions & Examples

An Example Changes Transaction fee = (2 + 1.5) – (2.5 + 0.5 + 0.49997) = 0.00003 BTC

Locking and Unlocking Script

Script Examples

Pay-to-PubKey-Hash (P2PH) Note to instructor: using a board or drawing directly on the slide to show how the script execute

Pay-to-MultiSig (P2MS)

Pay-to-Script-Hash (P2SH)

Use P2SH for MultiSig Pay-to-MultiSig (P2MS) Pay-to-Script-Hash (P2SH)

Sending Transaction After a node has generated a transaction, it sends the transaction to its peers Each peer will verify the transaction, and then forward it to their peers Eventually, every node on the network will receive the transaction Some special node called miner will be responsible for adding the transaction to the public ledger (i.e., blockchain).

Generating Blocks Miners group transactions into a new block The new block is appended to the existing blockchain

Mining Proof-of-Work: find a nonce, s.t. when the hash of the block satisfies a special requirement, such as having 20 leading zeros Rewarding: Coinbase transaction: new bitcoins are minted and given to the miner Transaction fees Once a miner has found a block, it immediately sends the block to its peers, who will verify the block and then forward the block to their peers. Eventually, all the nodes will see this new block, and add it to their ledgers.

Include Merkle Root in Block

Merkle Tree Benefit: To find whether a transaction is included in a block, you don’t need all the transactions Good for non-full nodes

Branching Branching occurs when two valid blocks are found at about the same time The longest chain wins

Confirmation Number The larger a block’s confirmation number is, the less likely it will be removed from the blockchain

Probability of Double Spending

Double Spending with Majority Hash Power

Summary Bitcoin address Transactions, locking and unlocking script Bitcoin mining Blockchain, branching, confirmation number, and double spending