Hands-On Smart Contract Development with Hyperledger Fabric V2 (ebook) Kolonowskie

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 …

od 203,15 Najbliżej: 45 km

Liczba ofert: 1

Oferta sklepu

Opis

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 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, Alibaba, IBM, Google, and Oracle.Walk through the architecture and components of Hyperledger Fabric 2.0Migrate your current Hyperledger Fabric projects to version 2.0Develop blockchain applications on the Hyperledger platform with Node.jsDeploy and integrate Hyperledger on Amazon Managed Blockchain, IBM Cloud, and Oracle CloudDevelop blockchain applications with Hyperledger Aries, Avalon, Besu, and GridBuild end-to-end blockchain supply chain applications with Hyperledger Spis treści: Preface How to Build Enterprise Blockchain Applications with Hyperledger Who Is This Book For? Overview of the Chapters Conventions Used in This Book Using Code Examples OReilly Online Learning How to Contact Us Acknowledgments I. Introduction to Blockchain 1. Fundamental Concepts of Blockchain What Is Blockchain? Origin of Blockchain The Blockchain Revolution Blockchain 2.0 Core Components of Blockchain Decentralized Network Cryptography Digital signatures Hash functions Wallet Shared Ledger Ledger database World state database Consensus PoW PoS PBFT PoET Smart Contracts Blockchain Architecture Nodes Blocks Chains Channels Supporting Technology and Concepts DLT Decentralization Peer-to-Peer Immutability Identity Accounts SDK API Transactions Incentives Privacy State Turing Complete Gas Tokens On-Chain Off-Chain Scalability Cryptocurrency Enclaves Oracles DApps Virtual Machine Fork Governance Genesis Clients Summary II. Introduction to Hyperledger Projects 2. Overview of Hyperledger Projects and Tools Evolution and Phases of Blockchain Technology Blockchain 1.0 Blockchain 2.0 Blockchain 3.0 Blockchain 4.0 Hyperledger Family, Architecture, and Ecosystem The Hyperledger Design Philosophy Modular architecture Ultra secure Interoperability Noncryptocurrency architecture Application programming interfaces Overview of Hyperledger Consensus layer Smart contract layer Communication layer Data store abstraction Crypto abstraction Identity service API Interoperation Overview of Hyperledger Projects Distributed Ledger Frameworks Hyperledger Indy Hyperledger Fabric Hyperledger Iroha Hyperledger Sawtooth Hyperledger Besu Hyperledger Cactus Hyperledger Burrow Domain-Specific Hyperledger Grid Overview of Hyperledger Tools and Libraries Tools Hyperledger Caliper Hyperledger Cello Hyperledger Explorer Hyperledger Avalon Libraries Hyperledger Aries Hyperledger Quilt Hyperledger Ursa Hyperledger Transact Summary 3. Hyperledger Fabric Architecture and Components Hyperledger Fabric Overview Hyperledger Fabric Model Blockchain Network Identity Membership Service Provider Policies Nodes Chaincode Ledger The Ordering Service Private Collections of Data Summary III. Developing Smart Contracts with Hyperledger Fabric 4. Smart Contract Development Installing Prerequisites and Setting Up Hyperledger Fabric Git cURL Node.js and npm Docker and Docker Compose Fabric Installation Script Fundamental Requirements of a Smart Contract SDK Contract class Transaction context Context class Transaction functions Validate and sanitize arguments Simple state interaction (get, put, delete) Create and Execute Queries Defining a Smart Contract Define Assets by Using Key-Value Pairs Collect Private Data Set Attribute-Based Access Control Initialize the Ledger State Chaincode invoke init Chaincode query Installing and Instantiating a Smart Contract Package the Chaincode Install the Chaincode Query the Installation Approve the Package Check Commit Readiness Commit the Chaincode Definition Query Whether the Chaincode Is Committed Initialize the Contract Execute a Query Summary 5. Smart Contract Invocation Overview of fabric-samples, Fabcar, and the Test Network fabric-samples Fabcar Fabcar client Fabcar smart contract Fabric Test Network Docker Container and CouchDB databases Deploying a Smart Contract Understand the startFabric.sh Anatomy Execute startFabric.sh Generate Fabric Certificate Authorities Create Org1 Identities Invoke the Peer Chaincode Invoking Smart Contract Transactions Peer Command Fabric SDK for Node.js Command-Line Application Enroll our application administrator Register our application user Invoke a write transaction Query the world state Summary 6. Testing and Maintenance Creating a Fabcar UI Client Error Response Handling Fabcar UI Web Pages Enroll Admin Register User Invoke Query API Fabcar UI Code Fabcar UI Execution Performing Rapid Smart Contract Testing Setting Up Start the orderer Start the peer Create a channel and join the peer Build and run the chaincode Approve and commit the chaincode Test the deployed chaincode Preparing the Fabcar Smart Contract for Testing and Debugging Performing Fabcar Testing and Debugging Identifying and Reviewing Logs Creating Unit Test Contracts Summary IV. Blockchain Supply Chain with Hyperledger 7. Building Supply Chain DApps with Hyperledger Fabric Designing a Blockchain Supply Chain Understanding the Supply Chain Workflow Defining a Consortium Reviewing the PLN Life Cycle Equipment attributes and values Equipment state changes Equipment in the hand of the pharmacy Understanding Transactions Writing Chaincode as a Smart Contract Project Structure Contract Class Transaction Logic Compiling and Deploying Fabric Chaincode Install Prerequisites Review the Project Structure Cryptogen Configtx Docker Install Binaries and Docker Images Start the PLN Network Monitor the PLN Network Create a PLN Channel Running and Testing the Smart Contract Install the Smart Contract Test the Smart Contract Developing an Application with Hyperledger Fabric Through the SDK Summary V. Hyperledger FabricOther Topics 8. Deploying Hyperledger Fabric on the Cloud Deploying Hyperledger Fabric on Amazon Blockchain Services Set Up Amazon Managed Blockchain with Prerequisites Set Up the Hyperledger Fabric Network Set Up the Hyperledger Fabric Client Clone the Samples Repository Enroll an administrative user Create a peer node in your membership Run the Hyperledger Fabric Application Configure and run Docker Compose to start the Hyperledger Fabric CLI Create configtx for Hyperledger Fabric channel creation Set environment variables for the orderer Using IBM Cloud for Blockchain Applications Understand the Platform Features Development Operation Scalability Create an IBM Cloud Account Decide the Structure of the Blockchain Network Create and Join the Fabric Network Build the Blockchain Network Add a certificate authority Associate the admin identity Register users Create the peer organizations MSP definition Create the peer node Create the ordering service Add the organization as a consortium member Create a channel Join the channel Deploy the Smart Contract Create the Application Oracle Blockchain Platform Overview Oracle Blockchain Platform Use Case Explore the Use Case Engage with the Solution Business topology Access control Channel Digital asset Transactions Solution architecture Experiment with Oracle Blockchain Platform Configure Oracle Cloud Infrastructure Create OBP instances Create a blockchain network Export participant(s) organization certificate Import participant(s) certificate to founder organization Export orderer settings from founder Import orderer settings to participants Create the transaction infrastructure Create a channel at the founder Add the participants peer node to the channel Experience the Solution Develop chaincode Use OBPs app builder Deploy and instantiate the chaincode Deploy chaincode to participants Test the chaincode Verify transactions at the ledger Summary 9. Hyperledger Fabric V2 Integration New Features of Hyperledger Fabric V2 Decentralized Governance for Smart Contracts New Chaincode Application Patterns Private Data Enhancements External Chaincode Launcher State Database Cache for CouchDB Alpine-Based Docker Images Sample Test Network Project structure Peers and orgs Generating crypto material Updating the Capability Level of a Channel Update to the Newest Capability Levels Retrieve the latest channel config Modify the necessary channel config Create a config update transaction Upgrade Components Set Environment Variables for the Binaries Back Up and Restore the Ledger Upgrade the Orderer Nodes Upgrade the Peers Upgrade the Node SDK Clients Considerations for Moving to V2 Chaincode Life Cycle Chaincode Shim Changes (Go Chaincode Only) Chaincode Logger (Go Chaincode Only) Peer Databases Upgrade Capabilities Define orderer node endpoint per organization Summary 10. Overview of Other Hyperledger Projects Hyperledger Aries Set Up the VON Network Run Hyperledger Aries Cloud Agent Issue credentials Request a proof Hyperledger Avalon Trusted Execution Environment Zero-Knowledge Proofs Multiparty Computation Hyperledger Avalon Architecture Hyperledger Besu Hyperledger Besu Architecture Ethereum storage layer Storage layer Network storage layer Set Up Hyperledger Besu JSON-RPC HTTP service endpoint JSON-RPC WebSocket GraphQL HTTP service endpoint Web block explorer address Prometheus address Grafana address Set up MetaMask and account Smart Contract and DApp in Hyperledger Besu Private Network Hyperledger Grid Domain Models Smart Contracts Pike SDK Sample Apps Summary Concluding Remarks Next Steps Now Its Your Turn Further Reading Index

Specyfikacja

Podstawowe informacje

Autor
  • Matt Zand, Xun (Brian) Wu, Mark Anthony Morris
Kategorie
  • Hacking