Bitcoin Essentials - Albert Szmigielski - E-Book

Bitcoin Essentials E-Book

Albert Szmigielski

0,0
26,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Gain insights into Bitcoin, a cryptocurrency and a powerful technology, to optimize your Bitcoin mining techniques

About This Book

  • Learn how to use the advanced features of Bitcoin wallets
  • Set up your Bitcoin mining operations to mine with efficiency
  • Explore what the future holds for mining and blockchains in this pragmatic guide

Who This Book Is For

If you have never mined before, this book will ensure that you know what mining is all about. If you are familiar with Bitcoin mining, then it will help you to optimize your mining operations at a deeper level. A basic understanding of computers and operating systems is assumed, and some familiarity with cryptocurrency basics would be an added advantage.

What You Will Learn

  • Get introduced to Bitcoin mining from the ground up
  • Find out about mining software and the different types of mining hardware
  • Master setup techniques to enable efficient mining
  • Examine the pros and cons of the different types of mining hardware
  • Deduce the differences between solo and pool mining
  • Take a peek into professional mining farms
  • Explore the future of mining and blockchain-based applications

In Detail

Blockchain is being billed as the technology of the future. Bitcoin is the first application of that technology. Mining is what makes it all possible. Exploring mining from a practical perspective will help you make informed decisions about your mining setup. Understanding what the future may hold for blockchains, and therefore for mining, will help you position yourself to take advantage of the impending changes.

This practical guide starts with an introduction to Bitcoin wallets, as well as mining hardware and software. You will move on to learn about different mining techniques using the CPU, GPU, FPGA, and ultimately the ASIC as an example. After this, you will gain an insight into solo mining and pool mining, and see the differences between the two. The book will then walk you through large-scale mining and the challenges faced during such operations. Finally, you will take a look into the future to see a world where blockchain-based applications are commonplace and mining is ubiquitous.

Style and approach

This is a practical guide that includes detailed step-by-step instructions and examples on each essential concept of Bitcoin mining.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 134

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Bitcoin Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the color images of this book
Errata
Piracy
Questions
1. Bitcoin Wallets and Mining Software
Bitcoin wallets
What is a Bitcoin wallet?
Why do we need Bitcoin wallets?
Types of wallets
Software wallets
Hardware wallets
Full wallet versus thin client
Hosted wallets
Wallet security
Mining software
The need for mining software
What does mining software do?
Which mining software to choose?
Summary
2. CPU Mining
Mining with Bitcoin Core
Mining software
Let's start mining
Pros and cons of mining
Pros of mining
Cons of mining
Best practices when mining with CPUs
Profitability of mining
Summary
3. GPU Mining
Setting up a GPU for mining
Drivers
Mining software
Windows installation instructions
Linux installation instructions
Let's start mining
Multiple GPU setup
Mining on a GPU
Pros and cons of GPU mining
Pros of GPU mining
Cons of GPU mining
Best practices when mining with GPUs
Benchmarks of mining speeds with different GPUs
GPU versus CPU mining
Profitability of GPU mining
Summary
4. FPGA Mining
Setup and installation of the required software
Mining software
Linux installation instructions
Windows installation instructions
Let's start mining
What happens when mining on a FPGA
Pros and cons of FPGA mining
Pros of FPGA mining
Cons of FPGA mining
Best practices when mining with FPGAs
Benchmarks of mining speeds with different FPGAs
FPGA versus GPU and CPU mining
Profitability of FPGA mining
Summary
5. ASIC Mining
Setting up mining software
Drivers
Mining software
Installing cgminer on Linux
Installing cgminer on Windows
Let's start mining
What happens when mining on a ASIC
Pros and cons of ASIC mining
Pros of ASIC mining
Cons of ASIC mining
Best practices when mining with ASICs
Benchmarks of mining speeds with different ASICs
ASIC versus FPGA, GPU, and CPU mining
Profitability of ASIC mining
Summary
6. Solo Versus Pool Mining
Solo mining
Setting up a wallet for solo mining
Setting up mining software for solo mining
Setting up mining software for pool mining
Pool mining discussion
Mining pools
Choosing a pool
Solo versus pool mining
Profitability
Majority attack on Bitcoin
51% attack
Summary
7. Large Scale Mining
Large Scale Mining overview
Large Scale Mining challenges
Inexpensive and reliable electricity
Good network connectivity
Access to latest hardware
Stable political climate
Bitcoin exchange rate
Cooling of mining hardware
Large Scale Mining operations
BitFury
KnC Miner
21 INC
Mega Big Power
Genesis Mining
Other mine operators
Summary
8. The Future of Bitcoin Mining
Overview of the current state of mining
Further centralization of mining
Hardware arms race
Halving of the reward
Consolidation, mergers, and acquisitions
Bitcoin exchange rate
Quantum computing and mining
Cracking the security of SHA-256
Centralization by region
Governments adopting cryptocurrencies
Decentralization of mining
Mining chips everywhere
21 INC and the Bitcoin Computer
Mining devices as a source of heat
The end of the ASIC arms race is near
Decentralized mining is key
Elimination of PoW
Inefficiency of PoW
Replacement of PoW
Can we do without mining?
Replacing or eliminating mining
Efficiency of mining
Possible ways in which mining may change
Summary
Index

Bitcoin Essentials

Bitcoin Essentials

Copyright © 2016 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: February 2016

Production reference: 1170216

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78528-197-6

www.packtpub.com

Credits

Author

Albert Szmigielski

Reviewer

Kevin M. Fitzgerald

Commissioning Editor

Edward Bowkett

Acquisition Editor

Ruchita Bhansali

Content Development Editor

Sanjeet Rao

Technical Editor

Saurabh Malhotra

Copy Editor

Sneha Singh

Project Coordinator

Judie Jose

Proofreader

Safis Editing

Indexer

Priya Sane

Production Coordinator

Shantanu N. Zagade

Cover Work

Shantanu N. Zagade

About the Author

Albert Szmigielski is a thinker, a computing scientist, a software engineer, and a blockchain professional. He holds a BSc in Computer Science and an MSc in Digital Currency. He has been involved in a number of start-ups and software projects. He believes in a decentralized, distributed nature of storing information, and hence has an interest in Bitcoin and blockchain technology.

Albert is a researcher at CryptoIQ and a mentor at the Blockchain Institute. He frequently contributes to his blog at blog.cryptoIQ.ca.

I would like to thank Carla Miller for her support and general feedback. I would also like to thank my family; they give meaning to my life.

About the Reviewer

Kevin M. Fitzgerald is the platform architect for Okanjo.com. He has well over a decade of development experience in education, medical systems, and start-ups. He has been tinkering with the Web since dial-up modems went mainstream.

He is active in the Open Source community and has contributed to the Mono project and also to Umbraco communities. He continues to be active on GitHub, working with the latest technologies and projects. He has also contributed to the book WebGL Game Development by Sumeet Arora.

He and his wife, Luciana, are celebrating their seventh year of marriage and enjoy long walks on the beach with their daughter, Rosalia, talking about Node.js, C#, and Bitcoin.

www.PacktPub.com

eBooks, discount offers, and more

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Preface

Surely, by now you have heard of the phenomenon called Bitcoin. Is it digital money, is it a payment system, is it a network, or is it something else? The answer is yes to all the previous questions. Bitcoin is all of those and more. In this book, we will concentrate on the mining aspect of Bitcoin. Mining is how new bitcoins are created and how transactions are accepted into the Bitcoin blockchain. We will show you how to mine for yourself, if you are interested. We explain step-by-step what is necessary and how to do it. CPU, GPU, FPGA, and ASIC mining is also discussed. We will examine solo mining and pool mining. We will spend a little bit of time taking a look at large mining operations. Finally, we will speculate what the future may look like in the mining world of Bitcoin.

What this book covers

Chapter 1, Bitcoin Wallets and Mining Software, gives an overview of Bitcoin wallets: hardware, software, full and thin clients. The chapter also discusses mining software.

Chapter 2, CPU Mining, looks at Bitcoin mining using a CPU. It covers everything you need to get started.

Chapter 3, GPU Mining, concentrates on GPU mining. It covers GPU driver setup, mining software setup, and it touches upon practical mining issues. Examples are included.

Chapter 4, FPGA Mining, examines FPGA mining, including software, drivers, and a discussion of best practices.

Chapter 5, ASIC Mining, looks at ASIC mining in detail. We set up the software that is needed to mine and we show you practical examples of mining with ASICS.

Chapter 6, Solo Versus Pool Mining, explains solo and pool mining and weighs the pros and cons of both ways of mining.

Chapter 7, Large Scale Mining, looks at mining as a business. There are a handful companies that decided to mine for profit. They represent the bleeding edge in mining techniques.

Chapter 8, The Future of Bitcoin Mining, speculates how mining may evolve in the future. We look at the possibility of mining becoming more centralized and the possibility of mining becoming decentralized.

What you need for this book

You will need a computer, preferably running Linux, but Windows and OS X is fine as well. You will also need an internet connection. If you'd like to try mining with a GPU, FPGA, or ASIC, you would need to have one (or more) of those hardware pieces. All software is open source and can be downloaded from the internet. We provide links in the chapters to the required software.

Who this book is for

If you have never mined before, this book will ensure that you know what mining is all about. If you are familiar with Bitcoin mining, then it will help you to optimize your mining operations at a deeper level. A basic understanding of computers and operating systems is assumed and some familiarity with cryptocurrency basics would be an added advantage.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " Execute the getmininginfo command in the console of the Bitcoin Core wallet."

Any command-line input or output is written as follows:

./minerd --url <poolurl:port> --userpass <USERNAME.WORKER:PASSWORD> -a<algorithm>

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Now click on the Help menu and select Debug Window."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/BitcoinEssentials_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at <[email protected]>, and we will do our best to address the problem.

Chapter 1. Bitcoin Wallets and Mining Software

In this chapter, we will take a look at the various Bitcoin wallets available, explore the mining software that is currently available, review the functions that Bitcoin wallets perform, and why we need them. We will take a brief look at both software and hardware wallets. The difference between full wallets and thin client wallets will also be explored. We will also touch upon hosted wallets and look into wallet security.

Next, we will take a brief look at mining software and examine why the software is needed and what it does. Finally, we will quickly review what mining software is available to us and which software we should use. Keep in mind that the material presented in this chapter will be brief and serve only as a review of the basics:

Bitcoin walletsTypes of walletsWallet securityMining software

Bitcoin wallets

In this section, we will take a closer look at Bitcoin wallets. We will define what a wallet is and explain why we need a wallet. We will look at the types of wallets available. There are software and hardware wallets, full wallets, and the so-called thin wallets. There are also hosted wallets that are run by companies for the users' convenience. We will look at the most popular wallet called Bitcoin Core; finally, we will touch upon wallet security.

What is a Bitcoin wallet?

A Bitcoin wallet (sometimes called a client) is a software that facilitates performing bitcoin transactions. Wallets come in different flavors. The most capable of them are called full clients. They can perform bitcoin transactions and act as a gateway to the Bitcoin network. Full clients also store a copy of the Bitcoin block chain locally. An example of a full client is the Bitcoin Core software application.

Note

Definition

Block chain: The Bitcoin database that stores all the transaction data is called a block chain. The transactions are grouped together in batches for efficiency reasons. A batch is called a block and each block (except for the first, called genesis block) has a link to the previous block. This linking together of blocks is the chain part of the block chain.