Book description
Learn quick and effective techniques for developing blockchain-based distributed ledgers with ease
Key Features
- Discover why blockchain is a game changer in the technology landscape
- Set up blockchain networks using Hyperledger Fabric
- Write smart contracts at speed with Hyperledger Composer
Book Description
Blockchain and Hyperledger are open source technologies that power the development of decentralized applications. This Learning Path is your helpful reference for exploring and building blockchain networks using Ethereum, Hyperledger Fabric, and Hyperledger Composer.
Blockchain Development with Hyperledger will start off by giving you an overview of blockchain and demonstrating how you can set up an Ethereum development environment for developing, packaging, building, and testing campaign-decentralized applications. You'll then explore the de facto language Solidity, which you can use to develop decentralized applications in Ethereum. Following this, you'll be able to configure Hyperledger Fabric and use it to build private blockchain networks and applications that connect to them. Toward the later chapters, you'll learn how to design and launch a network, and even implement smart contracts in chain code. By the end of this Learning Path, you'll be able to build and deploy your own decentralized applications by addressing the key pain points encountered in the blockchain life cycle.
This Learning Path includes content from the following Packt products:
- Blockchain Quick Start Guide by Xun (Brian) Wu and Weimin Sun
- Hands-On Blockchain with Hyperledger by Nitin Gaur et al.
What you will learn
- Understand why decentralized applications are necessary
- Develop and test a decentralized application with Hyperledger Fabric and Hyperledger Composer
- Write and test a smart contract using Solidity
- Design transaction models and chain code with Golang
- Deploy the Composer REpresentational State Transfer (REST) Gateway to access Composer transactions
- Maintain, monitor, and manage your blockchain solutions
Who this book is for
This Learning Path is designed for blockchain developers who want to build decentralized applications and smart contracts from scratch using Hyperledger. Basic familiarity with or exposure to any programming language will be useful to get started with this course.
Publisher resources
Table of contents
- Title Page
- Copyright
- About Packt
- Contributors
- Preface
-
Blockchain - Enterprise and Industry Perspective
- Defining the terms – what is a blockchain?
- Four core building blocks of blockchain framworks
- Fundamentals of the secure transaction processing protocol
- Where blockchain technology has been and where it's going
- Industries putting blockchain technology to work
- Blockchain in the enterprise
- Enterprise design principles
- Business considerations for choosing a blockchain framework
- Technology considerations for choosing a blockchain framework
- Enterprise integration and designing for extensibility
- Other considerations
- Summary
- Exploring Hyperledger Fabric
-
Setting the Stage with a Business Scenario
- Trading and letter of credit
- Business scenario and use case
- Setting up the development environment
- Network components' configuration files
- Launching a sample trade network
- Summary
- Designing a Data and Transaction Model with Golang
-
Exposing Network Assets and Transactions
-
Building a complete application
- The nature of a Hyperledger Fabric application
- Building the application
-
Middleware – wrapping and driving the chaincode
- Installation of tools and dependencies
-
Creating and running the middleware
- Network configuration
- Endorsement policy
- User records
- Client registration and enrollment
- Creating a channel
- Joining a channel
- Installation of chaincode
- Instantiation of chaincode
- Invoking the chaincode
- Querying the chaincode
- Completing the loop – subscribing to blockchain events
- Putting it all together
- User application – exporting the service and API
- Integration with existing systems and processes
- Summary
-
Building a complete application
-
Business Networks
- A busy world of purposeful activity
- Defining business networks
- Introducing participants
- Introducing assets
-
Introducing transactions
- Change as a fundamental concept
- Transaction definition and instance
- Implicit and explicit transactions
- The importance of contracts
- Signatures
- Smart contracts for multi-party transaction processing
- Digital transaction processing
- Initiating transactions
- Transaction history
- Transaction streams
- Separating transactions into different business networks
- Transaction history and asset states
- A business network as a history of transactions
- Regulators and business networks
- Discussing events from the perspective of designing a business network using Composer
- Implementing a business network
- Summary
-
A Business Network Example
-
The letter of credit sample
- Installing the sample
-
Running the sample
- Step 1 – preparing to request a letter of credit
- Step 2 – requesting a letter of credit
- Step 3 – importing bank approval
- Step 4 – exporting bank approval
- Step 5 – letter received by exporter
- Step 6 – shipment
- Step 7 – goods received
- Step 8 – payment
- Step 9 – closing the letter
- Step 10 – Bob receives payment
- Recapping the process
- Analyzing the letter of credit process
- A description of the business network
- A model of the business network
- Examining the live network
- Creating business network APIs
- Summary
-
The letter of credit sample
- Agility in a Blockchain Network
-
Life in a Blockchain Network
-
Modifying or upgrading a Hyperledger Fabric application
- Fabric blockchain and application life cycle
-
Channel configuration updates
- Prerequisites for adding a new organization to the network
- Generating network cryptographic material
- Generating channel artifacts
- Generating the configuration and network components in one operation
- Launching the network components for the new organization
- Updating the channel configuration
- Adding the new organization to the network
- Smart contract and policy updates
- Platform upgrades
- System monitoring and performance
- Summary
-
Modifying or upgrading a Hyperledger Fabric application
- Governance, Necessary Evil of Regulated Industries
-
Hyperledger Fabric Security
- Hyperledger Fabric design goals impacting security
- Hyperledger Fabric architecture 
- Network bootstrap and governance – the first step towards security
- Strong identities – the key to the security of the Hyperledger Fabric network
- Chaincode security
- Common threats and how Hyperledger Fabric mitigates them 
- Hyperledger Fabric and Quantum Computing
- General data protection regulation (GDPR) considerations
- Summary
- Introduction to Blockchain Technology
- Ethereum Fundamentals
- Overview of Solidity Programming
- Building an Ethereum Blockchain Application
-
Exploring an Enterprise Blockchain Application Using Hyperledger Fabric
- Issuance claim
- Setting up a Hyperledger Fabric environment
- Writing chaincode
-
Configuring Hyperledger Fabric
- Generating the certificate
- Generating an orderer genesis block
- Generating a channel configuration transaction
- Overview of Hyperledger Fabric Docker composer configuration files
- Fabric project directory structure
- Docker-compose-base.yaml
- Peer-base.yaml
- Starting the Hyperledger Fabric network
- Creating a channel
- Joining channels
- Updating the anchor
- Installing chaincode
- Instantiating the chaincode
- Invoking add broker
- Invoking add insurer
- Invoking ReportLost
- Invoking RequestedInfo
- Invoking SubmitClaim
- Invoking ConfirmClaimSubmission
- Invoking ApproveClaim
- Querying claim history
- End-to-end test execution 
- Summary
- Implementing Business Networks Using Hyperledger Composer
-
Blockchain Use Cases
-
Blockchain use case examples
- Payment and settlement services
- Import and export finance
- Immutable ledger
- Regulatory compliance and auditing
- Identity theft detection
- Funds back-office operation
- Collateral management
- Healthcare systems
- Real estate trading and rental markets
- IP market
- Elections
- HR and recruiting
- Public records
- Reduce contract disputes
- Sharing economy
- Integration with IoT
- Facilitate commercial and social relationships
- How to choose a proper use case
- DApp use case – healthcare data sharing
- Summary
-
Blockchain use case examples
- Other Books You May Enjoy
Product information
- Title: Blockchain Development with Hyperledger
- Author(s):
- Release date: March 2019
- Publisher(s): Packt Publishing
- ISBN: 9781838649982
You might also like
book
Redis in Action
Summary Redis in Action introduces Redis and walks you through examples that demonstrate how to use …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Building Microservices, 2nd Edition
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. …