Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering Blockchain
Mastering Blockchain

Mastering Blockchain: A deep dive into distributed ledgers, consensus protocols, smart contracts, DApps, cryptocurrencies, Ethereum, and more , Third Edition

eBook
€8.99 €53.99
Paperback
€67.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mastering Blockchain

Blockchain 101

It is very likely that if you are reading this book, you already have heard about blockchain and have some fundamental appreciation of its enormous potential. If not, then let me tell you that this is a technology that has promised to positively alter the existing paradigms of nearly all industries including, but not limited to, the IT, finance, government, media, medical, and law sectors.

This chapter is an introduction to blockchain technology, its technical foundations, the theory behind it, and various techniques that have been combined together to build what is known today as blockchain.

In this chapter, the theoretical foundations of distributed systems are described first. Next, the precursors of Bitcoin are presented. Finally, blockchain technology is introduced. This approach is a logical way of understanding blockchain technology, as the roots of blockchain are in distributed systems and cryptography. We will be covering a lot of ground quickly here...

The growth of blockchain technology

With the invention of Bitcoin in 2008, the world was introduced to a new concept, which revolutionized the whole of society. It was something that promised to have an impact upon every industry. This new concept was blockchain; the underlying technology that underpins Bitcoin.

Some describe blockchain as a revolution, whereas another school of thought believes that it is going to be more evolutionary, and it will take many years before any practical benefits of blockchain reach fruition. This thinking is correct to some extent, but, in my opinion, the revolution has already begun. It is a technology that has an impact on current technologies too and possesses the ability to change them at a fundamental level.

Many prominent organizations all around the world have moved on from the proof-of-concept stage and are already writing production systems utilizing blockchain. The disruptive potential of blockchain has now been fully recognized. For...

Distributed systems

Understanding distributed systems is essential to our understanding blockchain, as blockchain was a distributed system at its core. It is a distributed ledger that can be centralized or decentralized. A blockchain is originally intended to be and is usually used as a decentralized platform. It can be thought of as a system that has properties of the both decentralized and distributed paradigms. It is a decentralized-distributed system.

Distributed systems are a computing paradigm whereby two or more nodes work with each other in a coordinated fashion to achieve a common outcome. It is modeled in such a way that end users see it as a single logical platform. For example, Google's search engine is based on a large distributed system; however, to a user, it looks like a single, coherent platform.

A node can be defined as an individual player in a distributed system. All nodes are capable of sending and receiving messages to and from each other. Nodes...

The history of blockchain and Bitcoin

Blockchain was introduced with the invention of Bitcoin in 2008. Its practical implementation then occurred in 2009. For the purposes of this chapter, it is sufficient to review Bitcoin very briefly, as it will be explored in great depth in Chapter 6, Introducing Bitcoin. However, it is essential to refer to Bitcoin because, without it, the history of blockchain is not complete.

The events that led to blockchain

Now we will look at the early history of computing and computer networks and will discuss how these technologies evolved and contributed to the development of Bitcoin in 2008. We can view this in chronological order:

  • 1960s – Invention of computer networks
  • 1969 – Development of ARPANET
  • 1970s – Early work on secure network communication including public key cryptography
  • 1970s – Cryptographic hash functions
  • 1973 – Extension of ARPANET to other geographic locations...

Blockchain

In 2008, a groundbreaking paper, entitled Bitcoin: A Peer-to-Peer Electronic Cash System, was written on the topic of peer-to-peer e-cash under the pseudonym of Satoshi Nakamoto.

This paper is available at https://bitcoin.org/bitcoin.pdf.

It introduced the term chain of blocks. No one knows the actual identity of Satoshi Nakamoto. After introducing Bitcoin in 2009, he remained active in the Bitcoin developer community until 2011. He then handed over Bitcoin development to its core developers and simply disappeared. Since then, there has been no communication from him whatsoever, and his existence and identity are shrouded in mystery. The term "chain of blocks" evolved over the years into the word "blockchain."

As stated previously, blockchain technology incorporates a multitude of applications that can be implemented in various economic sectors. Particularly in the finance sector, significant improvement in the performance of financial transactions...

Consensus

Consensus is the backbone of a blockchain, as it provides the decentralization of control through an optional process known as mining. The choice of the consensus algorithm to utilize is governed by the type of blockchain in use; that is, not all consensus mechanisms are suitable for all types of blockchains. For example, in public permissionless blockchains, it would make sense to use PoW instead of mechanisms that are more suitable for permissioned blockchains, such as Proof of Authority (PoA) or traditional Byzantine fault-tolerant consensus mechanisms. Therefore, it is essential to choose an appropriate consensus algorithm for a particular blockchain project.

Consensus is a process of achieving agreement between distrusting nodes on the final state of data. To achieve consensus, different algorithms are used. It is easy to reach an agreement between two nodes (in client-server systems, for example), but when multiple nodes are participating in a distributed system...

CAP theorem and blockchain

The CAP theorem, also known as Brewer's theorem, was introduced by Eric Brewer in 1998 as a conjecture. In 2002, it was proven as a theorem by Seth Gilbert and Nancy Lynch. The theorem states that any distributed system cannot have consistency, availability, and partition tolerance simultaneously:

  • Consistency is a property that ensures that all nodes in a distributed system have a single, current, and identical copy of the data.

    Consistency is achieved using consensus algorithms in order to ensure that all nodes have the same copy of the data. This is also called state machine replication. The blockchain is a means for achieving state machine replication.

  • Availability means that the nodes in the system are up, accessible for use, and are accepting incoming requests and responding with data without any failures as and when required. In other words, data is available at each node and the nodes are responding...

Summary

This chapter introduced blockchain technology at an advanced level. First, we discussed blockchain's progress toward becoming a mature technology, followed by some basic concepts about distributed systems, and then the history of blockchain was reviewed. Concepts such as e-cash were also discussed.

Various definitions of blockchain from different points of view were presented. Some applications of blockchain technology were also introduced. Next, different types of blockchain were explored. Finally, the benefits and limitations of this new technology were also examined. Some topics such as blockchain scalability and adaptability issues were intentionally introduced only lightly, as they will be discussed in depth in later chapters.

In the next chapter, we will introduce the concept of decentralization, which is central to the idea behind blockchains and their vast number of applications.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Updated with four new chapters on consensus algorithms, Ethereum 2.0, tokenization, and enterprise blockchains
  • Learn about key elements of blockchain theory such as decentralization, cryptography, and consensus protocols
  • Get to grips with Solidity, Web3, cryptocurrencies, smart contract development and solve scalability, security and privacy issues
  • Discover the architecture of different distributed ledger platforms including Ethereum, Bitcoin, Hyperledger Fabric, Hyperledger Sawtooth, Corda and Quorum

Description

Blockchain is the backbone of cryptocurrencies, with applications in finance, government, media, and other industries. With a legacy of providing technologists with executable insights, this new edition of Mastering Blockchain is thoroughly revised and updated to the latest blockchain research with four new chapters on consensus algorithms, Serenity (the update that will introduce Ethereum 2.0), tokenization, and enterprise blockchains. This book covers the basics, including blockchain’s technical underpinnings, cryptography and consensus protocols. It also provides you with expert knowledge on decentralization, decentralized application development on Ethereum, Bitcoin, alternative coins, smart contracts, alternative blockchains, and Hyperledger. Further, you will explore blockchain solutions beyond cryptocurrencies such as the Internet of Things with blockchain, enterprise blockchains, tokenization using blockchain, and consider the future scope of this fascinating and disruptive technology. By the end of this book, you will have gained a thorough comprehension of the various facets of blockchain and understand their potential in diverse real-world scenarios.

Who is this book for?

If you are a technologist, business executive, a student or an enthusiast who wishes to explore the fascinating world of blockchain technology, smart contracts, decentralized applications and distributed systems then this book is for you. Basic familiarity with a beginner-level command of a programming language would be a plus.

What you will learn

  • Grasp the mechanisms behind Bitcoin, Ethereum, and alternative cryptocurrencies
  • Understand cryptography and its usage in blockchain
  • Understand the theoretical foundations of smart contracts
  • Develop decentralized applications using Solidity, Remix, Truffle, Ganache and Drizzle
  • Identify and examine applications of blockchain beyond cryptocurrencies
  • Understand the architecture and development of Ethereum 2.0
  • Explore research topics and the future scope of blockchain

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 31, 2020
Length: 816 pages
Edition : 3rd
Language : English
ISBN-13 : 9781839211379
Category :
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 31, 2020
Length: 816 pages
Edition : 3rd
Language : English
ISBN-13 : 9781839211379
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 153.97
Machine Learning for Algorithmic Trading
€43.99
Mastering Blockchain
€67.99
Blockchain with Hyperledger Fabric
€41.99
Total 153.97 Stars icon
Banner background image

Table of Contents

23 Chapters
Blockchain 101 Chevron down icon Chevron up icon
Decentralization Chevron down icon Chevron up icon
Symmetric Cryptography Chevron down icon Chevron up icon
Public Key Cryptography Chevron down icon Chevron up icon
Consensus Algorithms Chevron down icon Chevron up icon
Introducing Bitcoin Chevron down icon Chevron up icon
The Bitcoin Network and Payments Chevron down icon Chevron up icon
Bitcoin Clients and APIs Chevron down icon Chevron up icon
Alternative Coins Chevron down icon Chevron up icon
Smart Contracts Chevron down icon Chevron up icon
Ethereum 101 Chevron down icon Chevron up icon
Further Ethereum Chevron down icon Chevron up icon
Ethereum Development Environment Chevron down icon Chevron up icon
Development Tools and Frameworks Chevron down icon Chevron up icon
Introducing Web3 Chevron down icon Chevron up icon
Serenity Chevron down icon Chevron up icon
Hyperledger Chevron down icon Chevron up icon
Tokenization Chevron down icon Chevron up icon
Blockchain – Outside of Currencies Chevron down icon Chevron up icon
Enterprise Blockchain Chevron down icon Chevron up icon
Scalability and Other Challenges Chevron down icon Chevron up icon
Current Landscape and What's Next Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9
(30 Ratings)
5 star 50%
4 star 16.7%
3 star 13.3%
2 star 10%
1 star 10%
Filter icon Filter
Top Reviews

Filter reviews by




hawkinflight Oct 30, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I am new to Blockchain, and I looked at this book to get an introduction. The first chapter, Blockchain 101, provides an excellent start and quickly presents a graph from which a prediction can be extrapolated, "blockchain will progress to become a mature technology by 2025". It answers the questions: why blockchain? "decentralized trust, security, cost savings, transparency, and efficiency" And, what are the challenges being researched? "scalability and privacy". Simply, it states: blockchain is a "decentralized-distributed system". An interesting history is given, blockchain was introduced with Bitcoin in 2008, and a long list of technologies, starting in the 1960's, is given which contributed to the development of Bitcoin. An improvement on the earlier technologies, the Bitcoin blockchain provides the ability to "prevent double spending in a completely trustless or permissionless environment", and it also "solves the SMR problem (probabilistically)". This is a great chapter, a very nice set-up! Further details are given, including of consensus, which provides the "decentralization of control through mining", and mining is used to "add more blocks to the blockchain".I enjoyed the chapter, Blockchain - Outside of Currencies. IoT is described as the "most prominent and most ready candidate for adapting blockchain technology". Interestingly, it is mentioned that the finance sector is exploring uses of blockchain with "high energy and enthusiasm"; however, "it is still far away from production-ready, blockchain-based systems".One of the chapters new to this edition of the book, Enterprise Blockchains, informs that "current public blockchains are not necessarily a suitable choice for enterprise use cases". Enterprise blockchains need faster performance, access governance, privacy, deterministic rather than probabilistic consensus algorithms, and to eliminate the need to have cryptocurrency on hand for transaction fees. It is mentioned that Corda (which is not really a blockchain) and Quorum are production-ready projects built on enterprise blockchains.The chapter on "Scalability and Challenges" addresses changes that need to be made to make the technology more adoptable, with the two most important being: performance on a large scale and privacy. Other issues include regulation, integration, interoperability, adaptability, and security, even though security is quite good already with Bitcoin.In the final chapter on the Current Landscape and What's Next, it is mentioned that there is a current inclination towards making use of an existing blockchain platform with only one application in mind for a specific industry, and these are called: application-specific blockchains (ASBCs). Currently, many start-ups are working on blockchain projects, and research is taking place in both academia and industry, in software and hardware. When it was discovered that methods were no longer efficient, focus shifted to optimizing and developing hardware. New programming languages are being developed for developing smart contracts. Blockchain as a Service (BaaS) is being offered in the cloud by Microsoft and IBM. Blockchain can beneficially converge with other technologies such as IoT and AI. It's mentioned that there are some debatable issues: public vs. private on the blockchain and central bank digital currency. There are some areas to address: regulation, illegal activity, and privacy or transparency. A really interesting list of 16 predictions expected to occur between 2020-2050 is given; for example, 1) The IoT will run on multiple blockchains and will give rise to an M2M economy. This will include energy devices, autonomous cars, and household accessories. 2) Central bank-issued digital currencies will become a reality, and will be applied in day-to-day use within the next two to five years. ...As a final note, it is mentioned that "blockchains are becoming intertwined with our lives just as the internet has been for decades" and "blockchain can arguably be considered the most innovative technology of this decade".This is a very nice, high quality book, which can help you jump on board.
Amazon Verified review Amazon
Amazon Customer Nov 30, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Nice book with deep insights
Amazon Verified review Amazon
Liz Valeo Mar 11, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
2 inches thick and very well organized. Recommend highly as an in depth guide to blockchain at all skill levels.
Amazon Verified review Amazon
Fanta May 13, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Un tour de force attraverso la tecnologia blockchain, le criptovalute e gli smart contract, strumenti e piattaforme. Va nel dettaglio quanto necessario per chi ambisce a contribuire allo sviluppo della piattaforma (core blockchain) o allo sviluppo di applicazioni distribuite. Chiaro e bene illustrato. Livello di dettaglio decisamente eccessivo per chi vuole solo una panoramica dell'argomento (che puo' essere meglio servito da video su YouTube).
Amazon Verified review Amazon
Stefan Apr 16, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Outstanding introduction to Blockchain, covering all relevant aspects. Must read!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.