Hands-On Smart Contract Development with Hyperledger Fabric V2

Book description

Blockchain technology continues to disrupt a wide variety of organizations, from small businesses to the Fortune 500. Today, hundreds of blockchain networks are in production, including many built with Hyperledger Fabric. This practical guide shows developers how the latest version of this blockchain infrastructure provides an ideal foundation for developing enterprise blockchain applications or solutions.

Authors Matt Zand, Xun (Brian) Wu, and Mark Anthony Morris demonstrate how the versatile design of Hyperledger Fabric 2.0 satisfies a broad range of industry use cases. Developers with or without previous Hyperledger experience will discover why no other distributed ledger technology framework enjoys such wide adoption by cloud service providers such as Amazon, Microsoft, IBM, Google, and Oracle.

  • Walk through the architecture and components of Hyperledger Fabric 2.0
  • Learn about the Hyperledger family, projects, and ecosystem
  • Migrate your current Hyperledger Fabric projects to version 2
  • Develop blockchain applications on the Hyperledger platform with Node.js
  • Deploy and integrate Hyperledger on Microsoft Azure, Amazon Managed Blockchain, IBM Cloud, and Oracle Cloud
  • Develop blockchain applications with Hyperledger Aries, Avalon, Besu, and Grid
  • Build end-to-end blockchain supply chain applications with Hyperledger

Publisher resources

View/Submit Errata

Table of contents

  1. I. Introduction to Blockchain
  2. 1. Fundamental Concept of Blockchain
    1. What is Blockchain?
    2. Origin of Blockchain
      1. The Blockchain Revolution
      2. Blockchain 2.0
    3. Core Components of Blockchain
      1. Decentralized Network (public vs. private, permissioned vs. permissionless)
      2. Cryptography
      3. Shared Ledger
      4. Consensus
      5. Smart Contracts
      6. Blockchain Architecture
      7. Supporting Technology and Concepts
    4. Summary
  3. 2. Build Supply Chain DApps with Hyperledger Fabric
    1. 1. Blockchain supply chain design
      1. Supply chain workflow
      2. Defining a Consortium
      3. PLN lifecycle
      4. Transactions
    2. 2. Writing chaincode as a smart contract
      1. Project Structure
      2. Contract class
      3. Transaction logic
      4. Query the ledger
    3. 3. Compiling and deploying Fabric chaincode
      1. Prerequisites
      2. Project structure
      3. Install Binaries, and Docker Images
      4. Start the PLN network
      5. Monitor the PLN network
      6. Creating PLN channel
    4. 4. Running and testing the smart contract
      1. Testing smart contract
    5. 5. Developing an application with Hyperledger Fabric through the SDK
    6. Summary
  4. 3. Hyperledger Fabric V2 Integration
    1. New features of Hyperledger Fabric V2
      1. New chaincode application patterns
      2. Private data enhancements
      3. External chaincode launcher
      4. State database cache for CouchDB
      5. Alpine-based docker images
      6. Sample test network
    2. Updating the capability level of a channel
      1. 1. retrieve the latest channel config
      2. 2. modif y necessary channel config
      3. 3. Create a config update transaction
      4. Upgrading components
      5. Environment variables for the binaries
      6. Ledger backup and restore
      7. Upgrade ordering nodes
      8. Upgrade the peers
      9. Upgrade Node SDK clients
    3. Considerations for moving to v2.0
      1. Cha incode lifecycle
      2. Chaincode shim changes (Go chaincode only)
      3. Chaincode logger (Go chaincode only)
      4. Peer databases upgrade
      5. Capabilities
    4. Summary

Product information

  • Title: Hands-On Smart Contract Development with Hyperledger Fabric V2
  • Author(s): Matt Zand, Xun Wu, Mark Anthony Morris
  • Release date: July 2021
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781492086055