HPC-51122 Blockchain Technology and Internet of Things: Developing Knowledge About Blockchain
HPC-51122 Blockchain Technology and Internet of Things: Developing Knowledge About Blockchain
HPC-51122 Blockchain Technology and Internet of Things: Developing Knowledge About Blockchain
Lecture 16
Developing Knowledge about Blockchain
1
Beholding the Bitcoin Blockchain
2
Objectives
3
Introduction
• Knowing the basics of how the Bitcoin blockchain operates will allow you to better
understand all the other technology
• In this chapter,
fundamentals of how the Bitcoin blockchain operates
practical things to start doing now with Bitcoin.
find out how to mine the Bitcoin token, a new way to get your hands-on Bitcoins without buying
them
discover how to transfer your tokens to paper wallets
practical ways to keep your tokens safe online.
4
Getting a Brief History of the Bitcoin Blockchain
5
Getting a Brief History of the Bitcoin Blockchain (cont’d)
6
Getting a Brief History of the Bitcoin Blockchain (cont’d)
• mix many old technologies - cryptography and payment are merged to create cryptocurrency
7
Getting a Brief History of the Bitcoin Blockchain (cont’d)
9
10
11
Getting a Brief History of the Bitcoin Blockchain (cont’d)
• blockchain is a public ledger of all transactions in the Bitcoin network
• Bitcoin protocol is the rules that govern this system
• Nodes
computers that are recording entries into that ledger
safeguard the network by mining for the cryptocurrency Bitcoin
New Bitcoins are created as a reward for processing transactions and recording them inside
the blockchain.
Nodes also earn a small fee for confirming transactions.
• Anyone can run the Bitcoin protocol and mine the token.
• It’s an open-source project that thrives as more individuals participate in the network.
• The fewer people who participate - more centralized - weakens the system
• To makes Bitcoin a secure system is the large number of independent nodes that are
globally distributed.
12
Getting a Brief History of the Bitcoin Blockchain (cont’d)
• Now, need to purchase expensive specialized equipment or use a cloud service.(early - could
run the Bitcoin protocol and earn Bitcoins on a desktop computer)
• In order to create a message in the Bitcoin blockchain, you have to send some Bitcoin
from one account to another.
• When you send a transaction in Bitcoin, the message is broadcast across the whole network.
• After the message is sent, it’s impossible to alter it because the message is recorded
inside the Bitcoin blockchain.
This feature makes it imperative that you always choose your message wisely and never broadcast
sensitive information.
• Broadcasting the same message to thousands of nodes and then saving it forever in the token’s
ledger can add up in a hurry.
• So, Bitcoin requires that you keep your communications very short. The current limit is just 40
characters.
13
THE LIMITATIONS OF BITCOIN
• Blocks that make up the Bitcoin blockchain are limited to 1MB in size.
• Bitcoin blockchain can handle to seven transactions per second.
• New blocks occur on average about every ten minutes, but they aren’t guaranteed.
• Decentralization is key to Bitcoin’s robustness.
• Larger blocks would impose hardships on the miners and might push out small operations.
• Bitcoin has built-in limitations that prevent it from handling the global volume of monetary transactions.
• It is also being used to secure other types of data and systems.
• The demand to use the secure Bitcoin ledger is high.
This difficulty is referred to as Bitcoin bloat, and it has slowed down the network and increased the cost of
transactions.
At this point, most blockchain developers are only experimenting with expanding the utility of the Bitcoin
blockchain.
Most are not at a point where they need to scale up their prototypes and concepts so that the Bitcoin
blockchain can handle their request.
Other new blockchain technologies have also helped bring down the pressure on Bitcoin and given developers
cheaper options to secure data. 14
AS THE WORLD TURNS: THE DRAMA OF
BITCOIN
• There is significant conflict around the core development of Bitcoin.
• Dubbed the Bitcoin Civil War or the block size limit debate, the general conflict is between keeping Bitcoin
core as it is and enlarging the functionality of the software.
• This conflict appears simple, but the repercussions are enormous. Bitcoin’s permanent nature and the billions of
dollars’ worth of assets that Bitcoin software secures mean that every code change is rigorously reviewed and
debated.
• Beyond the internal conflict, Bitcoin is also under intense scrutiny from the outside.
• The decentralized nature of Bitcoin that may displace central authorities made it a target for regulators.
• Bitcoin is also favored by people who want to purchase illicit items anonymously or move money from a
controlled economy to a noncontrolled economy, bypassing governmental controls.
• All these factors have given Bitcoin a bad rap and drawn the judgment of society.
• Entrepreneurs that wanted to capitalize on the technology of Bitcoin rebranded it.
• The change in terminology was used to differentiate the software structure of Bitcoin and other cryptocurrencies.
• Software that used the structure of cryptocurrencies began being called blockchain.
• The shift to deemphasize the controversial tokens and highlight the structure of cryptocurrencies changed
15
both
government and commercial views of Bitcoin from fear to excitement.
Getting a Brief History of the Bitcoin Blockchain (cont’d)
• Bitcoin is a living and ever-changing system - improve the system by making it stronger and
faster.
• Anyone can contribute to the Bitcoin protocol by engaging on its GitHub page (
www.github.com/bitcoin) - a small community of dominant core developers of Bitcoin.
• The most prolific contributors are Wladimir Van Der Laan, Pieter Wuille, and Gavin Andresen.
16
Debunking Some Common Bitcoin Misconceptions (cont’d)
• Here are some of the misconceptions you might have heard about Bitcoin:
• Bitcoin was hacked. There has never been a successful attack on the Bitcoin blockchain that
resulted in stolen Bitcoins. However, many central systems that use Bitcoin have been hacked. And
wallets and Bitcoin exchanges are often hacked due to inadequate security. The Bitcoin community
has fought back by developing elegant solutions to keep their coins safe, including wallet
encryption, multiple signatures, offline wallets, paper wallets, and hardware wallets, just to name a
few.
• Bitcoin is used to extort people. Because of the semi-anonymous nature of Bitcoin, it’s used in
ransomware attacks. Hackers breach networks and hold them hostage until payment is made to
them. Hospitals and schools have been victims of these types of attacks. However, unlike cash,
which was favored by thieves in the past, Bitcoin always leaves a trail in the blockchain that
investigators can follow.
• Bitcoin is a pyramid scheme. Bitcoin is the opposite of a pyramid scheme from the point of view
of Bitcoin miners. The Bitcoin protocol is designed like a cannibalistic arms race. Every additional
miner prompts the protocol to increase the difficulty of mining. From a social point of view, Bitcoin
is a pure market. The price of Bitcoins fluctuates based on market supply, demand, and perceived
value. 17
Debunking Some Common Bitcoin Misconceptions (cont’d)
• Bitcoin will collapse after 21 million coins are mined. Bitcoin has a limit to the number of tokens it will
release. That number is hard-coded at 21 million. The estimated date of Bitcoin issuing its last coin is
believed to be in the year 2140. No one can predict what will happen at that point, but miners will always
earn some profit from transaction fees. Plus, users of the blockchain and the Bitcoins themselves will be
incentivized to protect the network, because if mining stops, Bitcoins become vulnerable and so does the
data that has been locked into the blockchain.
• Enough computing power could take over the Bitcoin network. This is true, but it would be extremely
difficult, with little to no reward. The more nodes that enter the Bitcoin network, the harder this type of
attack becomes. In order to pull this off, an attacker would need the equivalent of all the energy production
of Ireland. The payoff of this sort of attack is also extremely limited. It would only allow the attacker to roll
back his own transaction. He couldn’t take anybody else’s Bitcoins or fake transactions or coins.
• Bitcoin is a good investment. Bitcoin is a new and interesting evolution in how people trade value. It isn’t
backed by any single government or organization, and it’s only worth something because people are willing
to trade it for goods and services. People’s willingness and ability to utilize Bitcoin fluctuates a lot. It’s an
unstable investment that should be approached cautiously
18
Bitcoin: The New Wild West
• Fake sites
• No, you first!
• Get-rich-quick schemes
19
Mining for Bitcoins
• Mining for Bitcoin is how to earn Bitcoins by participating in the network.
• It’s usually handled by special mining hardware that is expensive and specialized.
• The equipment also needs Bitcoin mining software to connect to the blockchain and your
mining pool(a collaboration of many miners jointly work together and then splitting the rewards
of their efforts).
• Cloud mining allows you to start earning bitcoins in an industrious afternoon, without the need to
download software or buy equipment. Just follow these steps:
• Go to https://hashflare.io/panel.
• Scroll down the home page and click the Buy Now button under SHA-256 Cloud Mining.
• Go through the sign-up process.
• Link your bitcoin address.
• Buy a small amount of mining power.
• Join a mining pool.
21
Making Your First Paper Wallet
• A paper wallet is a paper copy of your public and private key for your Bitcoins. Because they’re
completely offline, paper wallets are one of the most secure ways to hold Bitcoins when done correctly. The
advantage is that your private key is not stored digitally, so it isn’t subject to hacking. Making a paper wallet
is fairly easy.
1. Go to www.bitaddress.org.
2. Move your mouse around the screen until the amount of randomness shows 100%.
3. Click the Paper Wallet button.
This gives the option to create a paper wallet that you can print.
4. In the Addresses to Generate field, enter 1.
You can make several wallets at once, if you need to, but you might as well just start with one to get the
hang of it.
5. Click the Generate button. Figure shows a paper wallet I created.
6. Click the Print button.
Do not let anyone watch you create your paper wallet. This isn’t something you want to do at a public
computer. Make sure to use a printer that is private and not connected to the Internet so you’re not at
22 risk of
Making Your First Paper Wallet
23
Encountering the Ethereum Blockchain
24
Objectives
25