Understanding Blockchain and Cryptocurrencies
eBook - ePub

Understanding Blockchain and Cryptocurrencies

A Primer for Implementing and Developing Blockchain Projects

  1. 216 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Understanding Blockchain and Cryptocurrencies

A Primer for Implementing and Developing Blockchain Projects

About this book

Whether you are a project manager looking to lead blockchain projects, a developer who would like to create blockchain-based applications, or a student with an interest, this book will provide you with the foundational understanding that you need.

You have probably noticed that blockchains are growing in popularity. Governments are investigating Digital Currencies, supply chains are adopting Digital Ledgers, games makers and artists are developing NFTs (Non-Fungible Tokens), and new use-cases are emerging regularly.

With such growth, many people will find themselves needing to understand how these technologies work. There will be new project teams, with technical leads managing blockchain projects and developers creating distributed applications. This book is great for them as it explains the concepts on which blockchain technologies are based, in simple terms.

We will discuss and explain topics such as hashing, Merkle trees, nodes, mining, proof of work and proof of stake, consensus mechanisms encryption, vulnerabilities, and much more. The structures and principles described will be relevant for developers and managers alike, and will be demonstrated through relevant examples throughout the text.

If you are looking to understand this exciting new technology, this is the book for you.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Understanding Blockchain and Cryptocurrencies by Akira Summers in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Networking. We have over one million books available in our catalogue for you to explore.

Information

Chapter 1What are blockchains for?

DOI: 10.1201/9781003187165-1

Provenance and trust

A key feature of blockchains is that they allow you to manage and verify the history of an asset, removing the necessity to trust in a supplier. In doing this, they allow you to establish ownership or proof of origin.
One way in which they stand out from other data types, such as conventional databases, is that they are immutable. That is to say that once something has been added to a well-functioning blockchain it is practically impossible to change it. We will talk later about how a blockchain achieves this immutability.
Let’s look at an example of a supply chain managed by a blockchain and how this works to eliminate the need to trust. As they say in the blockchain community, don’t trust, verify.
Let’s assume I am manufacturing cars. I claim that my car has been made using only high-quality, safety-tested and compliant components (fig 1.1).
Figure 1.1Product supply chain.
Normally as a manufacturer, I have to trust those people who provide me with parts to supply the parts that I have ordered, to the specifications that I have required and anyone who receives a car from me has to trust me in the same way. The truth is that they could quite easily switch to using cheaper, less regulated sources for their components and I might not be able to tell (fig 1.2). I must trust them.
Figure 1.2Dishonest supply chain.
Instead, consider an alternative where the whole supply chain is managed through a blockchain (fig 1.3). Because blockchains offer a way in which we can track the components and their history and this data cannot be changed and is available to see throughout the process, we no longer need to trust in the supplier, we can verify using the blockchain.
Figure 1.3Blockchain supply chain.
In this situation, all the individual manufacturers can check where each of their products has come from, the resources that they were made with, as well as when they were delivered and other information related to the supply. It would not be possible for a manufacturer to claim that their product was made from something that it was not, at it would be easily visible to everyone when they consulted the blockchain.

Downtime

Blockchains are available 24 hours a day, 7 days a week and 365 days a year. Because they don’t require people to operate the system in the same way that comparable systems do, they can provide a continuous service.
Because of the level of validation checking, and the decentralized approach, they are very robust and resistant to attack. In an age of hacking, identity theft and cyber-attacks increased security is a greatly desirable trait.
They can drastically reduce the amount of administrative overhead and in doing so create great cost savings. Their increased transparency makes auditing easier and fraud more difficult. All these benefits and more are derived from the blockchain’s unique approach to data storage and transmission. This approach, the structures, methods and rules that it comprises are all part of the blockchain protocol. We will start by looking at the data structures employed and move onto the networking and transmission.

Not for everything

Blockchains can be very powerful. They are however not for everything. There are certainly some downsides to using blockchains. They can be resource hungry for example, when compared to other methods of storing and working with data. One of the first questions that you should be asking as a developer or project manager is whether a blockchain is needed for your system. As you read through this book and learn more about blockchains, you will develop an understanding of the strengths of blockchains and the associated costs, so that you can answer that question.
Key points about blockchain uses
  • Blockchains allow for trustless relationships.
  • They can be used to establish provenance.
  • They have many applications.
  • They are resilient against issues with downtime.

Chapter 2Basic principles of blockchain

DOI: 10.1201/9781003187165-2

Block structure

There are many features of a blockchain. To make things easy to understand, we will start with a highly simplified model and gradually add and explain additional features, to build up our conceptual model.
At its simplest, blockchains store information by chunking data into blocks and linking them. This is not a new concept in computing. At this level, a linked list (fig 2.1) works in a similar manner, though there are many important differences which we will discuss.
Figure 2.1Linked lists.
With linked lists, each node contains data and a pointer to the location of the next node. Blockchains work in a slightly different way. The following diagram shows the contents of a Bitcoin block (fig 2.2).
With blockchains, each block contains an amount of data and is linked to the previous block. Often blocks are compared to the pages of a book, the complete book being the blockchain and the data sitting inside the page.
Figure 2.2Beginning blockchain.
Each block in addition to the data contained also includes a header consisting of several pieces of metadata about the block. We will explore the structure of this header as we build up our understanding of the blocks and the blockchain that they form.
The blocks are stored as files. They are indexed by a separate index file, outside of the chain, together with other useful information for the system. Bitcoin, for example, has a blkindex.dat file which contains an index of the block files. Block data are stored in the blk000n.dat file, where 000n is the number of the block (fig 2.3).
Figure 2.3Blockchain with index.
Though they are present in blockchains, we will generally leave this indexing information of...

Table of contents

  1. Cover
  2. Half-Title Page
  3. Title Page
  4. Copyright Page
  5. Dedication
  6. Contents
  7. List of tables and figures
  8. About the author
  9. Preface
  10. Who is this book for?
  11. Acknowledgement
  12. Notes
  13. What should you know before reading this book?
  14. Why learn about blockchains?
  15. Chapter 1 What are blockchains for?
  16. Chapter 2 Basic principles of blockchain
  17. Chapter 3 Decentralized computing
  18. Chapter 4 Forks
  19. Chapter 5 Cryptocurrencies
  20. Chapter 6 Coins and transactions
  21. Chapter 7 Mining
  22. Chapter 8 Summary of blockchain so far
  23. Chapter 9 Blockchain 2.0
  24. Chapter 10 Public and private blockchains
  25. Chapter 11 Privacy coins
  26. Chapter 12 Blockchains and cryptocurrency issues and answers
  27. Chapter 13 Attacks
  28. Closing words
  29. Glossary
  30. Index