Book Review: Mastering Bitcoin

MasteringBitcoinAndreasAntonopoulosMastering Bitcoin: Unlocking Digital Cryptocurrencies

By: Andreas M. Antonopoulos

Published: O’Reilly Media Inc. ©2015

ISBN: 978-1-449-37404-4

 

Review:  Andreas Antonopoulos quickly goes through the history of cryptocurrencies before Bitcoin was created and shows how the creation of bitcoin was really, like so many other technological advances, an inevitability in the cryptology and computing world.  He then gives us six different scenarios which will be covered though out the book, such as how to buy a cup of coffee using bitcoin, or how to mine bitcoin, and what happens behind the scenes when we do these activities.

Andreas next goes over the key differences between a bitcoin address, a public key, and a private key, as well as the mathematics involved in creating them, showing how secure the private key is through this form of mathematics.  The bitcoin address is used to know where the bitcoins are going to, and the public and private keys are used to validate the transactions.

Next, Mr. Antonopoulos goes into detail about the bitcoin transaction process, starting with how the transaction is first created and then broadcast and propagated in the bitcoin network.  I was surprised to find out that “in extreme cases, a bitcoin transaction could be transmitted over packet radio, satellite relay, or short wave using burst transmissions, spread spectrum, or frequency hopping to evade detection and jamming.  A bitcoin could even be encoded as smileys (emoticons) and posted in a public forum, or sent as a text message, or skype….” (page 112)  I think this proves how versatile and unstoppable bitcoin really is.

Once the transaction makes it to a bitcoin node, (for example a bitcoin wallet) it will immediately propagate itself to all the other bitcoin nodes.  Transaction outputs are calculated first, and then Inputs.  Transaction fees are usually taken out automatically unless you are in terminal, and are given to the miners for processing the transactions.

The peer-to-peer Network Architecture which Bitcoin and other cryptocurrencies use, makes every node equal, creating a truly decentralized form of currency.  There are four different types of nodes:

  • Wallet
  • Miner
  • Full Blockchain
  • Network Routing

All nodes at the very least serve as Network Routing nodes.

Andreas now goes into more detail about the blockchain and mining.  Since I, myself am a miner, this was of particular interest to me.  Plus, since I also believe that mining promotes freedom when it comes to any kind of money, I think this section of the book is very important!

Structure of a block:  A block is composed of four things:

  • Block size
  • Blockheader
  • Transaction Counter (how many transactions follow)
  • Transactions

The block header contains the following:

  • Version
  • Previous Block hash
  • Merkle Root (hash of the root of the Merkle tree of this block’s transactions)
  • Timestamp
  • Difficulty Target (Proof-of-work algorithm difficulty target for this block).
  • Nonce (a counter used for the proof-of-work algorithm)

Miners are responsible for processing bitcoin transactions and protecting the system from fraudulent transactions, as well as double-spend transactions, and in return are paid bitcoin for their efforts.  A block is mined roughly every 10 minutes.  Miners earn bitcoin in 2 ways:

  1. New coins created with each block
  2. Transaction fees from all the transactions in the block.

Every four years the amount of bitcoin gained by a block added to the blockchain is halved.  So, in Jan. 2009 when bitcoin was first mined, you could get 50 bitcoins per block.  Now, in 2016 it is down to about 12.5 bitcoins per block.  So, by the year 2140, miners will no longer be receiving new bitcoins, but will only be rewarded by transaction fees.

With bitcoin being completely decentralized, the real question is how can the network decide the global consensus of the ledger?  There are four processes which allow it to do so, called Emergent Consensus:

  • Independent verification of each transaction
  • Independent aggregation of those transactions into new blocks
  • Independent verification of the new blocks
  • Independent selection of the chain with the most cumulative computation demonstrated through proof-of-work

Blockchain forks are often created when miners all over the world are mining for the blockchain.  These forks become “children” of the “parent” block.  Whoever builds the longer blockchain first, wins as to which block “child” is used as part of the blockchain ledger.  The other  which might have  had other transactions in it, is automatically discarded and then those extra transactions can be used potentially in the next block.

Andreas also goes through possible ways the bitcoin blockchain could be attacked through consensus attacks.  Next, he goes over a number of different altcoins (cryptocurrencies other than bitcoin).  There are over 500 different altcoins!  Some of them are listed HERE.

Bitcoin security is obviously very important, and programmers are always trying to catch up to the hackers.  Some ways you can secure your bitcoin are make a copy (or back up) of your Bitcoin Wallet, use a paper Bitcoin wallet, use a Hardware Wallet, use more than one wallet, or even different kinds of wallets so that you “don’t have all your eggs in one basket”, as they say.

Opinion: There is a lot of technical detail in this book, and since my own background is in business and accounting, not computer programming, this book did not really align with what my own interests about bitcoin are in, however for the avid computer programmer, this book would be an excellent read.  Skimming over the technical details, I did learn a lot about how bitcoin is created, how it is transferred, and even the different choices of bitcoin clients, among many other things, which will help me in the future I am sure.  Other than the fact that some of the Figures I believe were supposed to be in color and it was hard to follow them as a reference in the book because of them being in black and white, this was an excellent book which I would recommend any one who is serious about learning bitcoin to read.

KeepKey

KeepKeyforBlogBitcoin and other Cryptocurrencies are generally pretty secure.  However, there has been theft of Bitcoins in the past, which is partially why other cryptocurrencies were created shortly after the first time Bitcoins were stolen, allegedly from China.  Litecoin was created, and then shortly after that a huge array of other more minor cryptocurrencies were made.

Bitcoin has been revised since then to make it more secure, however many people who enjoy hacking have learned these new changes and often times can still hack into cryptocurrencies.

Since then, those who want to keep bitcoin safe, have been trying to create a better way to keep your Bitcoin safe.  And one of those amazing ways is through hardware devices called hardware walletsKeepKey is one of the most secure hardware wallets.  How does it work?  It has NO operating system, so the usual method that most hackers use to crack open the bitcoin wallet do not work.

KeepKey, works on any operating system including Linux, Mac OS, and Windows.  KeepKey also works for Testnet, Litecoin, Namecoin, Dogecoin, and Dash.

Bitcoin Faucets

Faucet-bitcoinsOn your way up to using Bitcoins, there are some free ways to earn bitcoin.  Now, these won’t make you a lot of bitcoin, but it will help, especially if you are also mining bitcoin on the side.  I only am currently using 4 different faucets, but there are many more out there.

One of the largest ones out there is called Bitvisitor.  It allows you to view ads for about 5 minutes at a time, and at the end you get bitcoins.  Once you’ve collected 60 bits worth, you can cash out.

Another one I use is Coinadder.  This one allows you to cash out once you’ve reached 7500 Satoshi.  However, expect to receive it a bit late, since they use an intermediary company for their transactions.

I really love using Satoshi City.  Although you have to wait 10 minutes for each ad, you get an automatic cash out at about 10000 Satoshi, which usually shows up in your bitcoin wallet in about 24 hours from cash out.

The forth bitcoin faucet I have just started using.  It is great because you can do much more than just bitcoin.  They have just about any crypto-currency you can imagine.  It is called CryptoSpout. If you want to collect all of these coins into one place, there is a great crypto-currency wallet out there which allows you to not only collect many different crypto-currencies, but also allows you to trade between them with ease, called coinomi. This link goes to a GitHub download.

We hope this gets you started in your Bitcoin earnings.  Remember having even a little bitcoin is better than none at all!  Sometimes it can seem like it will take forever to gather enough bitcoins to make a real difference, but remember this is an investment, and like all investments, they take time to grow.

Gold Pressed Latinum Versus Bitcoin

GoldPressedLatinumI wanted to do a fun post about Bitcoin.  Yes, this is a post purely for fun… no seriousness today.  I thought people might enjoy it.  We will be comparing Bitcoin values to other non-existent currencies mostly found in Science Fiction movies and series like Star Trek and Star Wars.

According to sources, 1 bar of gold pressed latinum = $1,000.00.  If this is true, then 1 bar of gold pressed latinum is equal to about 2.48 Bitcoins.  Gold pressed latinum of course is the Ferengi’s preferred form of monetary exchange.

One Federation Credit is assumed to be equal to 1 USD.  Therefore, one Federation Credit is equal to about 0.00236 Bitcoins.

The Klingon Darsek is equal to about 5 Federation Credits =  $5 USD.  Therefore, one Klingon Darsek is about 0.0131933 Bitcoins.

The Romulan T’chak is equal to about 17 Federation Credits = $17 USD.  Therefore, one Romulan T’chak is about 0.044656 Bitcoins.

The Bajoran Lita is equal to about 1.5 Federation Credits = $1.50 USD.  Therefore, one Bajoran Lita is about 0.003940 Bitcoins.

The Cardassian Lek is equal to about 1.7 Federation Credits = $1.70 USD.  Therefore, one Cardassian Lek is about 0.0044657 Bitcoins.

One Galactic Standard Credit from Star Wars is approximately equal to $0.50 USD.  Therefore, one Galactic Standard Credit would be equal to about 0.00122549 Bitcoins.

Cubits from Battlestar Galactica are basically worthless since Starbuck is found just tearing them up because of their extremely low value.

One Solari from the Dune series is equal to about $1.95 USD.  Therefore, one Solari is equal to about 0.0047794 Bitcoins.

So, which currency would you use?  Seems to me, the best two to use are Gold pressed Latinum and Bitcoins because they have the most value. Sorry, we couldn’t fit every single Science Fiction Currency in here, but then the list would be quite extensive.

Bitcoin Leveling out Now

SergeyMMMIt appears that while there was a huge rally in the price of Bitcoin, it appears that it is coming back down now and levelling out.

While the bitcoin went to a high of $480.00 or so, it started out at only around $380.00.  Making a $100.00 jump in only about one month’s time.  This made Bitcoin supporters very excited of course, proving that Bitcoin had some serious value to many.  Unfortunately, it seems it was only a temporary rally, and Bitcoin has now come back down to around $393.00 as I write this.

So, some may wonder what happened?  Why such a rally and then back down so rapidly?  Some had proposed that China somehow was starting to move over to Bitcoin, and that this might have been responsible for the large jump.  However, it was found out that a well-known Russian pyramid schemer named Sergey Mavrodi, who created a new site called MMM forced it’s members to buy Bitcoins and invest them into the Pyramid scheme site.

Some might say that this gives Bitcoin a bad reputation, but we say that there are dozens of more sites out there doing this in US dollars or other “legitimate” currencies, and no one is saying that those currencies have a bad reputation.

What do you think?  Leave a comment below.

Different Bitcoin Mines

BitcoinMinerUSB330MhSaphireIt is not easy to chose a bitcoin mine, unless you have very little money to spare, and will take anything that is cheap (actually that is the current situation I am in), but let’s face it, your circumstances may not always be the same, and you might have very different needs.

bitcoinminer50If you have seen my other posts from one of my other blogs, you’ll know that I have a cheap $50 mine which mines about 60Gigahash/second.  When bitcoin was first being mined, you didn’t even need a mine… all you had to do was use your computer’s processor directly and mine in a bitcoin pool.  But that isn’t true today, mostly because as time goes on, the algorithms get more and more complicated, so you need more and more processing power.  It wasn’t that long ago that you only needed megahash/second to mine a good amount of bitcoin, but that’s not true today, now you need Gigahash/second or more.

BitcoinMinerS7So, I’m going to review some different Bitcoin mines with you today and give you some statistics about them so you can make a better decision about mining Bitcoins.  Remember, we are going over Bitcoin mines ONLY in this post.  In a later post, we will cover script mines which mine other cryptocurrencies such as Litecoin, Dogecoin, Peercoin, and others.

  • ASICMiner Block Erupter USB 330MH/s Sapphire Miner is about $9.99 at amazon.com.  We don’t recommend using this miner only because it will take a VERY long time to accumulate any good amount of bitcoins.

  • BITMAIN ANTMINER U1 1.6 gh/s USB ASIC Miner is about $30.99 at amazon.com, but is subject to change because mostly used mines available.  Again, you won’t get much bitcoin using this miner, but might be fun for you computer geeks out there.

  • Bitmain Antminer U3 Bitcoin miner Version 2 is about $51.00 at amazon.com, but if you get it at https://coinplorer.com/Hardware you will find the same mine for only $20!  While this mine is definitely better than the previous two, it is still somewhat slow, and since I have been mining with it, (from about September 2nd or so 2015) I have only mined about $3.00 USD worth of Bitcoin with it. (That’s about 0.008 of one bitcoin and averages about $1.50 per month.)

  • Bitmain AntMiner S3+ 453Gh/s @0.78 J/Gh Digital miner: most of the time you can find this miner USED but in good condition for around $120.00-150.00.  If you find it brand new, it will be around $400.00.  On the other site previously mentioned, which has many mines listed, you can find a mine which has a mining speed of 800Gh/s for about $300.00.  We would definately recommend using this mine or higher when trying to seriously mine bitcoins.
  • Lketc Mintforger Dragon 1 Th/s (1000Gh/s) SHA-256 ASIC 28 nm Bitcoin miner these normally sell for $2,649.00 on amazon.com, but sometimes individuals will sell theirs used on amazon for around $1,000.00.  However, on https://coinplorer.com/Hardware You can find an S5 mine which does the same (1000Gh/s) for only $340.  Yes, it seems amazon is really ripping people off.
  • AM3400 from Achillies Lab, China, 3400Gh/s, SHA-256 Bitcoin miner, at the coinplorer website sells for about $1,895.00.  This will allow you to mine roughly $100.00 worth (USD) per month, depending of course on the current price of the Bitcoin.
  • AM-6000 from Achillies Lab, China, 6000Gh/s (6Th/s) SHA-256 Bitcoin miner, sells for about $2,895.00.  By our estimates, you should be able to mine about $200.00 USD per month with one of these (mining about 12 hours per day).

As you can see, there are a wide variety of mines for different people’s needs.  If you have little money, buying one of the small mines is perfectly fine.  If you want to accumulate bitcoins very quickly, the larger mines might be something you want to invest in.

But again, it is an investment, and one we think it is worth investing in, especially if an economic collapse hits.  We wish you great success in your mining endeavours!

Satoshi Nakamoto

SatoshiNakamotoNopeI thought it would be a good idea take a moment and go back to the beginning of Bitcoin.  One of the most interesting things about the beginning of Bitcoin is its creator, Satoshi Nakamoto.

Why is he so interesting?  Primarily because no one has ever been able to figure out exactly who he is!  He is a very illusive character.  They don’t even know for sure if the name represents one person, or a group of people who created the Bitcoin.

On his profile in P2P Foundation he listed himself as a 37 year old who lived in Japan.  However, some people speculated that he probably was not Japanese due to the fact that he spoke perfect English, and none of the bitcoin software had been done in Japanese, so this led many people back to square one, trying to figure out who Satoshi Nakamoto really was.

Satoshi Nakamoto was either a group of people, or a complete genius because no one could come up with the code for the Bitcoin by themselves, many thought, and there continued to be lots of speculation as to who he really was.  Another tip, which one of the people who had spoken to Satoshi more directly, said that the person often used British phrases like “Bloody hard”, according to wikipedia.

So, could it be true?  That our beloved Bitcoin actually came from a British man, rather than a Japanese man, as previously thought?  I’m not sure it really matters, but it does seem scandalous that a currency which has no physical substance was created by a person who is completely unknown.  Then again, maybe that’s the theme for Bitcoins, or maybe a great way to advertise them.

More recently, a man in California, who’s name happens to be Satoshi Nakamoto was interviewed, being asked if he had anything to do with Bitcoin and it’s creation.  He completely denied that he had anything to do with it.  So, Bitcoin lovers worldwide, are still on the search for the original Satoshi Nakamoto.

What do you think?  Who do you think he is?  Tell us below if you have any tidbits of information.

(Much of this information was taken from wikipedia by looking up Satoshi Nakamoto)

Legitimate Uses and Places to Use Bitcoins

bitcoin_accepted_hereOver the years, Bitcoin has gotten some negative attention.  This is largely due to a few factors, one of the largest being that many governments have not allowed Bitcoins and other cryptocurrencies to be viewed as legitimate, legal forms of tender.

This is similar to what happened during prohibition, alcohol, being illegal, created around it many other illegal activities.  The same is true today with the drug war.  Many believe that if drugs were made legal, many of the illegal activities surrounding drugs would be far, far less.

Bitcoin, being a completely online currency, and having no real physical coinage, makes it easy to hide in a sense.  Add to that the fact that once a transaction happens, that particular Bitcoin erases all traces of previous transactions, you have a perfectly secure piece of money, but also very hard to trace, making it a wonderful tool for the blackmarket.

Bitcoin is well known for being used on the Silk Road, an underground internet shopping place similar to Amazon, but for blackmarket uses.  Many everyday people might get marijuana and other “street drugs”, however it can also be used for more insidious things, I am sure.

However, it is important to note, Bitcoin can just as easily be used for completely legitimate reasons, which is actually what I wanted to write about today, because Bitcoin has often gotten a bad rap, if you will.  And I believe that is completely unfair to Bitcoin and other cryptocurrencies.

While the U.S. government is trying to legalize Bitcoins, there might still be still some illegal activities going on.  I mean lets face it, even though the U.S. dollar is legal tender, it is still used in a lot of illegal activities, so it is not surprising that the Bitcoin might be used in some also.  Even now, sometimes I see Bitcoins being used in places like gambling sites.

I wanted to show people though, some places which take Bitcoins are completely legitimate.  Some are just Mom and Pop stores even, which happen to enjoy using Bitcoin for transactions because they understand, like so many people are beginning to realize, that there is real value in Bitcoins.

The following are some good places where you can use Bitcoins:

  • Overstock.com
  • Virgin Galactic
  • WordPress
  • The Pirate Bay – Has a library of movies, TV shows, software, and music started accepting Bitcoins in April 2013. The site currently lets users donate to The Pirate Bay using Bitcoins.
  • Reddit – Can buy Reddit gold using Bitcoins.
  • Zynga – popular game playing site.
  • Tesla – well known company for its inventions and electric cars.
  • OkCupid – an online dating site which started accepting bitcoin in 2013.
  • 4Chan.org – a site similar to Reddit.
  • Namecheap – a domain name service site.
  • EZTV – a popular TV show site.
  • mega.co.nz – offers 50 GB of free storage space.  Started using bitcoin in Feb. 2013 for upgrades.
  • Lumfile – Free cloud-based file server.  Citcoin since Dec. 2012.
  • Etsy Vendors – 93 different Etsy vendors allow you to use Bitcoin.  Most often used by their coffee vendors.
  • Pizza For Coins – Dominoes Pizza service which allows you to order your pizza online using bitcoins.
  • Tigerdirect – electronics and computers business which allows you to use Bitcoins to order online.

As you can see, there are a lot of businesses, some very well known businesses which take Bitcoins currently, and even more, such as Paypal, and ebay which are currently considering using Bitcoins in the future.  This does not include of course simply investing in Bitcoins as a currency as I often suggest, which is another completely legitimate way to use them.

Picking the Right Mining Pool

Choosing the proper mining pool is not easy, especially because there are so many pools out there for bitcoin.

If you look on Bitcoinwiki, you will find a list of all of the current bitcoin mining pools here.  There are pools for mining Litecoin as well, but we will get into that on another blog.

As soon as you come to see all the pools it might make your head start to spin.  I mean how do you know which ones are the best?  Truth is, it is hard to tell, but I hope we can help you figure it out.

A lot of people have simply learned through trial and error, and if you have the time, and REALLY want to learn a lot about bitcoin and the mining process, you might want to do it the same way.  All the pools have advantages and disadvantages.  Below is a pie chart of all of the mining pools.

BitcoinMiningPools

My recommendation is to not go for the large mining pools, especially if you are just beginning and have some small mines, because the likelihood of you getting any bitcoins out of a large mining pool is very small.  It is far better to go to a medium mining pool.  I have two favorites: Slush pool, and Bitminter pool.

Now that you have all this information, you might be wondering why you need a pool at all.  Well, it is true that technically you can mine by yourself, but, it is much, much easier to mine in a pool because you can pool everyone’s resources together and complete a “blockchain” more quickly that way.  So, basically, unless you have a lot of mines and computing power behind you, you really need a mining pool to help you out.  The following video shows you more about solo mining versus pool mining:

If you need any more information, let me know in the comments below.  Hope it was helpful!  Best of luck in your mining endeavours!

Raspberry Pi’s and Mining

RaspberryPi2In a previous post I hinted at using Raspberry Pi‘s and Linux for mining Bitcoin.

Some of you who may not be computer geeks, probably won’t know what a Raspberry Pi is, let alone how it could help you mine Bitcoins (or other Crypto-currencies).  Basically Raspberry Pi’s are like miniature motherboards which when given Debian Linux can do many different tasks, especially if you use the new Raspberry Pi 2.

The new Raspberry Pi 2 can even run Windows 10 on it and get onto the internet, has a quad core, and 1 GB RAM.  It costs about $35 for just the board.  If you want to enclose the Raspberry Pi 2 in a case and make it more like an actual computer, the entire kit for that will be about $130.00.

But when mining Bitcoins, you really probably do not need a case, or, if you will be putting many Raspberry Pi’s together to have the ability to mine with several mines at once, you might consider making your own Raspberry case which holds many at once.  Something like this:

ManyRaspberryPiCase

You’ll notice the case not only can hold about 32 Raspberry Pi‘s, but also has 4 fans inside to keep the motherboards cool.  Now, this particular case is handmade by Josh Kiepert and you can watch his video here:  https://youtu.be/i_r3z1jYHAc

Hopefully you can get some ideas from this.  Imagine if you will, having a master motherboard attached to this, plus attached to each one of these 32 Raspberry Pi‘s a large Bitcoin mine.  That is how you would structure it, and make it easy to mine large amounts of bitcoin.

Now, back to the operating system you would use, I recommend Linux, even though you could easily put Windows 10 on your Raspberry Pi’s.  This is because Linux has far less likelihood of getting viruses in it than Windows will.  But plenty of people use Windows to mine bitcoins, so don’t worry if you are using Windows.

On an upcoming blog, I will go into more detail of how to do the software side of mining bitcoins and how to set it all up.  Also, I will talk about how to chose a mining pool, which is very essential to mining bitcoins.