Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
€8.99 | ALL EBOOKS & VIDEOS
Save more on purchases! Buy 2 and save 10%, Buy 3 and save 15%, Buy 5 and save 20%
Blockchain with Hyperledger Fabric - Second Edition
Blockchain with Hyperledger Fabric - Second Edition

Blockchain with Hyperledger Fabric: Build decentralized applications using Hyperledger Fabric 2, Second Edition

By Nitin Gaur , Anthony O'Dowd , Petr Novotny , Luc Desrosiers , Venkatraman Ramakrishna , Salman A. Baset
€14.99 per month
Book Nov 2020 756 pages 2nd Edition
eBook
€32.99 €8.99
Print
€41.99 €28.99
Subscription
€14.99 Monthly
eBook
€32.99 €8.99
Print
€41.99 €28.99
Subscription
€14.99 Monthly

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Blockchain with Hyperledger Fabric - Second Edition

Exploring Hyperledger Fabric

The focus of this chapter is the Hyperledger Fabric project—its components, design, reference architecture, and overall enterprise readiness. We will also discuss the broader aim of Linux Foundation-hosted Hyperledger projects and the importance of open source and open standards. The goal is to build an understanding of the diversity of various Hyperledger projects, and what frameworks and tools may be suitable for particular enterprise use cases and software consumption models. While the blockchain technology landscape is constantly in flux, Hyperledger projects represent a structure that supports a mature and peer-reviewed technology geared toward enterprise consumption and fueled by a diverse set of talent and community interests.

This chapter will cover the following topics:

  • Building on the foundations of open computing
  • Fundamentals of the Hyperledger project
  • Hyperledger frameworks, tools, and building blocks
  • ...

Building on the foundations of open computing

Open source projects, such as Linux and Java, have gained strength in mainstream businesses by serving as low-cost alternatives to commercial software. They provide capabilities that rival those of proprietary software, thanks to support from a large developer community. Popular open source projects can also accelerate open standards, the collective building blocks for products, by serving as a common implementation. Businesses and vendors using open standards free up development and services budgets for items that offer higher value and competitive advantage.

Open source is a part of the wider open computing movement, along with open standards and open architecture, as shown in the following diagram. Together, these initiatives enable integration and flexibility, and benefit customers by helping them avoid vendor lock-in.

open computing

Figure 2.1: Community innovation as a result of the open computing movement

Enterprises are...

Fundamentals of the Hyperledger project

To start building an understanding of Hyperledger, let's look at some of the key players and fundamental elements of the Hyperledger Fabric space.

The Linux Foundation

The Linux Foundation (LF) is a world leader in supporting open technology development, and it is highly esteemed in the developer community. The LF fosters partnerships that address some of the world's biggest challenges through open source computing. It has made enormous investments in open source projects since it was founded in 2000 and helped to build an ecosystem that paved the way for the technologies discussed in this book.

Hyperledger

Hyperledger is an open source project that came out of the LF and was created to help advance cross-industry blockchain technologies. It's a global open source collaboration involving leaders from numerous industries.

Open source and open standards

As noted previously, the open computing movement...

Hyperledger frameworks, tools, and building blocks

Now that we've looked at Hyperledger's foundations in the open computing movement, as well as its benefits for industry, let's talk about its frameworks, tools, and building blocks. A summary of the Hyperledger projects is shown in the following diagram:

Figure 2.2: Hyperledger frameworks (Source: Hyperledger.org, used under Creative Commons Attribution 3.0 Unported, https://creativecommons.org/licenses/by/3.0/)

In this section, we'll discuss each layer of the Hyperledger project, as illustrated in Figure 2.2, Distributed Ledgers, Libraries, and Tools, before considering some of the broader building blocks and concepts of Hyperledger Fabric.

Hyperledger distributed ledger frameworks

There are six blockchain frameworks, as follows:

  • Hyperledger Besu: This is a Java-based Ethereum Virtual Machine (EVM) client designed for use in private or public networks and for application...

Hyperledger Fabric component design

Let's discuss various Hyperledger Fabric components that facilitate the key blockchain components of the shared ledger, encryption, the trust system, and smart contracts. The components represent the Hyperledger Fabric infrastructure components and provide isolation from contract's development constructs. Chaincode or smart contract development details will be discussed in detail in a separate chapter.

The following diagram depicts the Hyperledger Fabric infrastructure components:

Figure 2.4: Hyperledger Fabric infrastructure components

Let's consider three key components before moving into the design discussion: the membership service, dedicated order nodes, and peers.

The membership service provides identity management to network participants:

  • Hyperledger Fabric CA is a certificate authority-based implementation of membership services, but you are not required to use it (that is, any X509-based PKI...

Hyperledger Fabric – the journey of a sample transaction

Now, let's look at the journey of a sample transaction with Hyperledger Fabric, as illustrated in the following diagram. This section will facilitate an understanding of the transaction processing protocol of Fabric:

Figure 2.7: Hyperledger Fabric walkthrough

Fabric introduces a newly designed blockchain, preserving the transaction processing architecture and aiming at a secure, scalable, resilient, modular, and confidential design. Hyperledger Fabric 2.0 supports the execution of distributed applications supporting enterprise-friendly programming models. The components in Hyperledger Fabric provide a modular design, optimally suited for a business network made of various enterprises. Hyperledger Fabric introduces a model based on three steps, an endorse-order-validate architecture, designed for the distributed execution of untrusted code in an untrusted environment. This separation not only allows...

Actors and components in a Hyperledger Fabric network

In this section we will explore the actors and their roles and responsibilities within a network. In the context of the actors we also look at the list of components of the network. We give a special focus to the role of the developer and the tasks the developer performs in the design of the Fabric-based solution.

Actors in a blockchain network

A blockchain is a network-based infrastructure where network-centric design, development, deployment, management, and support constructs apply. It is therefore vital to understand the various actors and their roles, shown in the following diagram and explained in the following text, that interact with the blockchain network for various purposes such as management, support, business use, regulation, and so on:

Figure 2.8: Actors in a blockchain network

Each actor has a role and entry point and defines a governance structure that aids in network governance, audit, and...

CAP theorem

In Chapter 1, Blockchain – An Enterprise and Industry Perspective, we introduced the CAP theorem in the context of general system properties. Formally, the CAP theorem as postulated by Eric Brewer in 2000 at ACM Symposium on Principles of Distributed Computing (PODC) (https://dl.acm.org/citation.cfm?id=343502) states that in a distributed data store it is impossible to guarantee more than any two of the following three properties: consistency (C), availability (A), and partition tolerance (P). A distributed data store thus can be characterized on the two properties it guarantees, namely CA, CP, or AP.

More specifically, the theorem is aimed at distributed systems deployed across unreliable networks (networks with faults and delays, such as the internet), leading to a partitioning of the system components. According to CAP, in these environments, the system design must focus on the balance between availability and consistency. For example, the...

New features covered in this book

The first edition of this book was published along with Fabric version 1.1. The following is an overview of the new features introduced between version 1.1 and the current version, 2.0:

  • Private data: Private data allows a subset of organizations participating in one ledger to keep some data private between themselves.
  • Service discovery: This helps client applications to dynamically discover configuration information about the network peers, cryptographic materials, endorsement policy, and other information needed to submit transactions to the network.
  • State-based endorsement: This allows the contract-level endorsement policy to be overridden by a policy for a specific key(s).
  • Pluggable system contracts: Developers can now develop own consensus models by implementing and deploying own system endorsement (ESCC) and validation (VSCC) contracts.
  • Identity Mixer: This is a new type of membership provider that provides...

Summary

We have learned about the general concepts that underpin blockchains and reviewed the blockchain frameworks, libraries, and tools currently in development by the LF. Fabric presents a modular and extensible implementation of these general concepts. This design helps us to develop and operate private networks that provide trust to attract new participants, as well as sustaining the confidence of founding and existing participants, all while maintaining business benefits and value. We have also learned about the CAP theorem, which underpins the potential of blockchains, and about the new features included in Fabric since version 1.1.

In the next chapter, we will introduce the notion of a business network and the various concepts of which business networks are composed, including participants, assets, and others.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Updated with the latest features and additions that come with Hyperledger Fabric 2
  • Write your own smart contracts and services using Java and JavaScript on a Hyperledger Fabric network
  • Dive into real-world blockchain challenges such as integration and scalability

Description

Blockchain with Hyperledger Fabric - Second Edition is a refreshed and extended version of the successful book on practical Hyperledger Fabric blockchain development. This edition includes many new chapters, alongside comprehensive updates and additions to the existing ones. Entirely reworked for Hyperledger Fabric version 2, this edition will bring you right up to date with the latest in blockchain. Using a real-world Trade Finance and Logistics example, with working code available on GitHub, you’ll really understand both how and why Hyperledger Fabric can be used to maximum effect. This book is your comprehensive guide and reference to explore and build blockchain networks using Hyperledger Fabric version 2. This edition of the book begins by outlining the evolution of blockchain, including an overview of relevant blockchain technologies. Starting from first principles, you’ll learn how to design and operate a permissioned blockchain network based on Hyperledger Fabric version 2. You will learn how to configure the main architectural components of a permissioned blockchain network including Peers, Orderers, Certificate Authorities, Channels, and Policies. You’ll then learn how to design, develop, package, and deploy smart contracts, and how they are subsequently used by applications. This edition also contains chapters on DevOps, blockchain governance, and security, making this your go-to book for Hyperledger Fabric version 2.

What you will learn

Discover why blockchain is a technology and business game changer Set up blockchain networks using Hyperledger Fabric version 2 Understand how to create decentralized applications Learn how to integrate blockchains with existing systems Write smart contracts and services quickly with Hyperledger Fabric and Visual Studio Code Design transaction models and smart contracts with Java, JavaScript, TypeScript, and Golang Deploy REST gateways to access smart contracts and understand how wallets maintain user identities for access control Maintain, monitor, and govern your blockchain solutions

Product Details

Country selected

Publication date : Nov 27, 2020
Length 756 pages
Edition : 2nd Edition
Language : English
ISBN-13 : 9781839218750
Category :
Concepts :

What do you get with a Packt Subscription?

Free for first 7 days. $15.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details


Publication date : Nov 27, 2020
Length 756 pages
Edition : 2nd Edition
Language : English
ISBN-13 : 9781839218750
Category :
Concepts :

Table of Contents

18 Chapters
Preface Chevron down icon Chevron up icon
1. Blockchain – An Enterprise and Industry Perspective Chevron down icon Chevron up icon
2. Exploring Hyperledger Fabric Chevron down icon Chevron up icon
3. Business Networks Chevron down icon Chevron up icon
4. Setting the Stage with a Business Scenario Chevron down icon Chevron up icon
5. Designing Smart Contract Transactions and Ledger Data Structures Chevron down icon Chevron up icon
6. Developing Smart Contracts Chevron down icon Chevron up icon
7. Developing Applications Chevron down icon Chevron up icon
8. Advanced Topics for Developing Smart Contracts and Applications Chevron down icon Chevron up icon
9. Network Operation and Distributed Application Building Chevron down icon Chevron up icon
10. Enterprise Design Patterns and Considerations Chevron down icon Chevron up icon
11. Agility in a Blockchain Network Chevron down icon Chevron up icon
12. Governance – A Necessary Evil of Regulated Industries Chevron down icon Chevron up icon
13. Life in a Blockchain Network Chevron down icon Chevron up icon
14. Hyperledger Fabric Security Chevron down icon Chevron up icon
15. Blockchain's Future, Protocol Commercialization, and Challenges Ahead Chevron down icon Chevron up icon
16. Another Book You May Enjoy Chevron down icon Chevron up icon
17. Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Top Reviews
No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.