170
pages
English
Ebooks
2019
Vous pourrez modifier la taille du texte de cet ouvrage
Obtenez un accès à la bibliothèque pour le consulter en ligne En savoir plus
Découvre YouScribe et accède à tout notre catalogue !
Découvre YouScribe et accède à tout notre catalogue !
170
pages
English
Ebooks
2019
Vous pourrez modifier la taille du texte de cet ouvrage
Obtenez un accès à la bibliothèque pour le consulter en ligne En savoir plus
Publié par
Date de parution
20 septembre 2019
Nombre de lectures
1
EAN13
9789389423945
Langue
English
Poids de l'ouvrage
4 Mo
Publié par
Date de parution
20 septembre 2019
EAN13
9789389423945
Langue
English
Poids de l'ouvrage
4 Mo
BLOCKCHAIN FOR BUSINESS WITH HYPERLEDGER FABRIC
A complete guide to enterprise blockchain implementation using Hyperledger Fabric
by Nakul Shah
FIRST EDITION 2019
Copyright © BPB Publications, India
ISBN: 978-93-88511-650
All Rights Reserved. No part of this publication may be reproduced or distributed in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY
The information contained in this book is true to correct and the best of author's & publisher's knowledge. The author has made every effort to ensure the accuracy of these publications, but cannot be held responsible for any loss or damage arising from any information in this book.
All trademarks referred to in the book are acknowledged as properties of their respective owners.
Distributors:
BPB PUBLICATIONS 20, Ansari Road, Darya Ganj New Delhi-110002 Ph:23254990/23254991
DECCAN AGENCIES 4-3-329, Bank Street, Hyderabad-500195 Ph:24756967/24756400
MICRO MEDIA Shop No. 5, Mahendra Chambers, 150 DN Rd. Next to Capital Cinema, V.T. (C.S.T.) Station, MUMBAI-400 001 Ph: 22078296/22078297
BPB BOOK CENTRE 376 Old Lajpat Rai Market, Delhi-110006 Ph: 23861747
Published by Manish Jain for BPB Publications, 20 Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Ltd, Mumbai
About the Author
Nakul Shah is the founder and director of Sate Development, a leading blockchain and software development company. He is a regular speaker at conferences across the globe on topics like blockchain technology, Hyperledger, and Distributed ledger technology. As a longtime creative thought leader in financial markets, technology, and innovation, he has worked with startups and multinationals across the world.
Nakul has multiple years of experience in research, development, and deployment of solutions using blockchain technology. Besides creating enterprise solutions, he also provides training, consultancy, and development services, helping clients demystify the technology and understand how organizations can leverage its key features.
Nakul has conducted lectures for banks, universities, and governments on various topics covering platforms and use cases of blockchain technology.
Nakul has played a significant role in the adoption and application of blockchain technology. He started his career at State Street Corporation in Boston, which is one of the biggest and oldest providers of mutual fund, pension processing, and asset custody services. He used advanced statistical and technical tools in the field of socially responsible investment. He also served as a product specialist for the wealth management team at Charles River Development. While executing independent consulting assignments, he has advised a leading sustainability firm that helps Fortune500 companies.
Nakul holds a master's degree in financial engineering from the University of Michigan, Ann Arbor, USA.
Acknowledgements
Translating your knowledge of a subject into a book is not as easy as it sounds. I realized this as I started writing the first chapter of this book. I am really grateful to my family for their love, support, and encouragement, which kept me going. The experience, though challenging, was quite rewarding once the book was complete.
My vision with this book is to educate students and professionals about the advantages of blockchain technology and equip them with skills required to develop solutions using Hyperledger Fabric. The use of blockchain technology could ultimately assist businesses to operate in a safe and trusted manner. Blockchain technology represents an opportunity to mutualize data-driven infrastructure across entities spanning diverse industry sectors like banking, insurance, media, and more, thereby translating into huge cost savings and capital growth.
I am overwhelmed in all humbleness and gratefulness to acknowledge my deep gratitude to all those who have helped me put these ideas well above the level of simplicity and into something concrete. I would like to take this opportunity to thank everyone who supported me while I embarked on this journey of following blockchain technology into a new future.
Preface
I was motivated to write this book to help the industry understand the use of blockchain technology and recognize its potential in revolutionizing the way businesses work. In 2016, enterprise blockchain was a new concept. There were very few players in the private permissioned blockchain space. The advent of Hyperledger Fabric has since brought this technology in front of the likes of multinational companies across various sectors like banking, insurance, retail, and more. Corporations and startups across the globe have started moving towards Hyperledger Fabric to find new use cases to support business requirements efficiently. As a result, relevant technical expertise and knowledge are required to build and support solutions on Hyperledger Fabric.
This book aims to equip you with enough knowledge on enterprise blockchain platforms in conjunction with skills to use Fabric in order to succeed as a blockchain developer or subject matter expert.
The book starts with a brief introduction to the world of blockchains. It covers all aspects of Hyperledger Fabric, ranging from network setup, use case deployment, to testing. Several examples have been covered in this book to provide readers with hands-on understanding of the subject. Readers will also learn to use the basic functions, libraries, and packages required in Fabric business network deployment.
The book is aimed to address readers from disparate backgrounds ranging from entrepreneurs to C-level leaders and the entire software development community. This book will serve as a tutorial for understanding and building business solutions using Hyperledger Fabric.
Errata
We take immense pride in our work at BPB Publications and follow best practices to ensure the accuracy of our content to provide with an indulging reading experience to our subscribers. Our readers are our mirrors, and we use their inputs to reflect and improve upon human errors if any, occurred during the publishing processes involved. To let us maintain the quality and help us reach out to any readers who might be having difficulties due to any unforeseen errors, please write to us at :
errata@bpbonline.com
Your support, suggestions and feedbacks are highly appreciated by the BPB Publications' Family.
Table of Contents
1. Blockchain and Decentralization
Definitions
Cryptocurrency
Bitcoin
Blockchain
How Bitcoin works
Wallets
Basics of blockchain
Mining in blockchain
Cryptography
Building blocks of blockchain
Blocks
Transactions
Smart contracts
Virtual machine
Nodes
Peer-to-peer network
State machine
Consensus
Structure of blockchain
Working of Blockchain
Fundamentals of secure transaction processing
Decentralization
History of decentralization
OpenBazaar
Popcorn time
Lighthouse
Gems
Decentralization using blockchain
Decentralized ecosystem
Storage
Communication
Computation
Blockchain for enterprise
Enterprise blockchain platforms
Considerations for using blockchain
Distributed systems
Byzantine Generals problem
Types of blockchains
Summary
2. Introduction to Hyperledger and Composer
Blockchain for business
Advantages of Hyperledger Fabric
Problems with existing blockchain technology
Hyperledger Fabric architecture
Consensus in Hyperledger
Hyperledger tools
Hyperledger Explorer
Hyperledger Cello
Hyperledger Composer
Hyperledger Caliper
Hyperledger Quilt
Hyperledger URSA
Hyperledger Composer
Hyperledger components
Hyperledger application using Composer
Step 1: Create a business network structure
Step 2: Define a business network
Modeling assets, participants, and transactions
Step 3: Generate the business network
Step 4: Deploy the business network
Step 6: Generate a boilerplate angular application
Composer query language
Step 1: Update the business network
Step 2: Create a query definition file
Step 3: Regenerate the business network archive
Step 4: Deploy the updated business network
Step 5: Generate a REST server
Step 6: Generate a skeleton angular application
Fabric Composer Playground
Summary
References
3. Basics of Hyperledger Fabric
Hyperledger and blockchain
Blockchain for enterprises
Hyperledger frameworks and tools
Burrow
Fabric
Indy
Iroha
Sawtooth
Caliper
Cello
Composer
Explorer
Quilt
Fabric and its components
How does a transaction happen in Hyperledger Fabric?
Difference between Bitcoin, Ethereum, and permissioned blockchain
Public versus permissioned networks
Differences between Hyperledger Fabric by Linux Foundation, Corda by R3, and Quorum by JP Morgan
Permissioned parties only
Chaincode/smart contracts
Hyperledger Fabric releases and differences
Fabric 0.6
Fabric 1.0
Fabric 1.1
Fabric 1.2
Fabric 1.3
Fabric 1.4 LTS
World state and states
Membership service provider (MSP)
Generate MSP certificates and their signing keys
Node.js SDK for Hyperledger Fabric
Peers returning transaction proposal
Chaincode in Node.Js
Init(stub) Asynchronous
Invoke(stub) Asynchronous
Summary
References
4. Frameworks, Network Topologies, and Modeling
Unlisted company network in Hyperledger
Hyperledger network and application model
Blockchain network
Build a sample network
Creating network from scratch
Certificate authority
Network administration node
Consortium definition
Channel for consortium
Adding peers and ledgers to network
Client/application and chaincode
Exploring Hyperledger fram