Blockchain with Hyperledger Fabric


Book Description

Learn to develop blockchain-based distributed ledgers and deploy a Hyperledger Fabric network with concrete exercises and examples Key FeaturesUpdated with the latest features and additions that come with Hyperledger Fabric 2Write your own smart contracts and services using Java and JavaScript on a Hyperledger Fabric networkDive into real-world blockchain challenges such as integration and scalabilityBook 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 learnDiscover why blockchain is a technology and business game changerSet up blockchain networks using Hyperledger Fabric version 2Understand how to create decentralized applicationsLearn how to integrate blockchains with existing systemsWrite smart contracts and services quickly with Hyperledger Fabric and Visual Studio CodeDesign transaction models and smart contracts with Java, JavaScript, TypeScript, and GolangDeploy REST gateways to access smart contracts and understand how wallets maintain user identities for access controlMaintain, monitor, and govern your blockchain solutionsWho this book is for This book is designed in such a way that professionals from different areas including business leaders, technology leaders, blockchain application developers, and even beginners can benefit from it.




Programming Hyperledger Fabric


Book Description

An enterprise blockchain or distributed ledger technology (DLT) is very much like a shared document stored on a cloud drive. There are just two differences. First, there is no master copy of this document stored with an escrow or arbiter, and second, any change to the document happens only after it has been signed off by all required stakeholders. This allows businesses to form a peer-to-peer network and establish a common ground of truth without giving up its control in hands of a single organization. The decentralized nature of the ledger combined with version control or immutability of the stored data is perfect for fast account reconciliation, secure tracking and tracing of products, and transparent records with no costly third-party auditing. This book teaches you how to build such decentralized applications.What's Inside:* Covers v2.0 of Fabric. Examples written in TypeScript and JavaScript* Deploying to production across multiple nodes using Docker* Securing communications with TLS* Handling Data Privacy* Comprehensive coverage of Fabric CA Server and Client* Bonus chapters on Bitcoin and LDAPThe author has done justice to it by really starting from the basics and explaining with wit the core concepts and taking the reader slowly to the core of Fabric.- Satej Sahu, Senior Enterprise Architect, HoneywellA very beginner friendly introduction to a massive amount of data needed to operate in the blockchain world.- Gregory Reshetniak, Product Owner, Ocado TechnologyA detailed bible about Hyperledger Fabric. This book is mandatory in the blockchain world. - Krzysztof Kamyczek, Architect Software Developer, Luxoft




Hands-On Blockchain with Hyperledger


Book Description

Leverage the power of Hyperledger Fabric to develop Blockchain-based distributed ledgers with ease Key Features Write your own chaincode/smart contracts using Golang on hyperledger network Build and deploy decentralized applications (DApps) Dive into real world blockchain challenges such as integration and scalability Book Description Blockchain and Hyperledger technologies are hot topics today. Hyperledger Fabric and Hyperledger Composer are open source projects that help organizations create private, permissioned blockchain networks. These find application in finance, banking, supply chain, and IoT among several other sectors. This book will be an easy reference to explore and build blockchain networks using Hyperledger technologies. The book starts by outlining the evolution of blockchain, including an overview of relevant blockchain technologies. You will learn how to configure Hyperledger Fabric and become familiar with its architectural components. Using these components, you will learn to build private blockchain networks, along with the applications that connect to them. Starting from principles first, you’ll learn to design and launch a network, implement smart contracts in chaincode and much more. By the end of this book, you will be able to build and deploy your own decentralized applications, handling the key pain points encountered in the blockchain life cycle. What you will learn Discover why blockchain is a game changer in the technology landscape Set up blockchain networks using basic Hyperledger Fabric deployment Understand the considerations for creating decentralized applications Learn to integrate business networks with existing systems Write Smart Contracts quickly with Hyperledger Composer Design transaction model and chaincode with Golang Deploy Composer REST Gateway to access the Composer transactions Maintain, monitor, and govern your blockchain solutions Who this book is for The book benefits business leaders as it provides a comprehensive view on blockchain business models, governance structure, and business design considerations of blockchain solutions. Technology leaders stand to gain a lot from the detailed discussion around the technology landscape, technology design, and architecture considerations in the book. With model-driven application development, this guide will speed up understanding and concept development for blockchain application developers. The simple and well organized content will put novices at ease with blockchain concepts and constructs.




Blockchain for Business with Hyperledger Fabric


Book Description

Step-by-step guide to understand the business implementation of Hyperledger Fabric DESCRIPTION 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 its tech in front of the likes of multi-national 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 is required to build and support solutions on Hyperledger Fabric. This book aims to equip you with enough knowledge of enterprise blockchain platforms in conjunction with skills to use Fabric in order to succeed in the role of a Blockchain developer or Subject Matter Expert. The book starts with a brief introduction to the world of blockchain. The book will cover all aspects of fabric ranging from network setup, to use case deployment and testing. Several examples have been covered in this book which will provide you a hands-on understanding of the subject. You will also learn to use the basic functions, libraries and packages required in a Fabric business network deployment. KEY FEATURES Learn the basics of blockchain and Distributed Ledger Technology from a business and enterprise perspective Understand the advantages of Hyperledger Fabric and get acquainted with its architecture and tools used Acquire skills to create, deploy and interact with Chaincode in Node.js Learn to set up a new Hyperledger Fabric network Demystify Chaincode, in Fabric, for developers and operators Develop knowledge to invoke Chaincode from Fabric SDK and create APIs Get acquainted with the production environment for Fabric business networks WHAT WILL YOU LEARN This book will help the reader learn techniques for developing enterprise applications using Hyperledger Fabric. It will also help understand why blockchain is being regarded as a game changing technology within the business world. Reader will learn to deploy Fabric based business networks and chaincodes, and will come across case studies to put their knowledge to practice and solve real-life business problems using Hyperledger Fabric. WHO THIS BOOK IS FOR The book is intended for anyone looking for a career in blockchain, all aspiring Hyperledger Fabric SMEs who want to learn the most powerful innovation of the current time or working professionals who want to switch their career to blockchain by using Hyperledger Fabric Ð one of the most commonly used business platforms for blockchain. While no prior knowledge of Blockchain or Fabric is assumed, it will be helpful to have some programming experience. Table of Contents Blockchain and Decentralization Introduction to Hyperledger and Composer Basics of Hyperledger Fabric Frameworks, Network Topologies and Modelling Chaincode in Hyperledger Fabric Fabric SDK: Interaction with Fabric Network Fabric SDK: Building End-to-End Application with Fabric Network Fabric in Production




Blockchain Quick Start Guide


Book Description

Learn quick and effective techniques to get up and running with building blockchain including Ethereum and Hyperledger Fabric. Key FeaturesUnderstand the key concepts of decentralized applications and consensus algorithmsLearn key concepts of Ethereum and Solidity programmingPractical guide to get started with build efficient Blockchain applications with Ethereum and HyperledgerBook Description Blockchain is a technology that powers the development of decentralized applications.This technology allows the construction of a network with no single control that enables participants to make contributions to and receive benefits from the network directly. This book will give you a thorough overview of blockchain and explain how a blockchain works.You will begin by going through various blockchain consensus mechanisms and cryptographic hash functions. You will then learn the fundamentals of programming in Solidity – the defacto language for developing decentralize, applications in Ethereum. After that, you will set up an Ethereum development environment and develop, package, build, and test campaign-decentralized applications.The book also shows you how to set up Hyperledger composer tools, analyze business scenarios, design business models, and write a chain code. Finally, you will get a glimpse of how blockchain is actually used in different real-world domains. By the end of this guide, you will be comfortable working with basic blockchain frameworks, and develop secure, decentralized applications in a hassle-free manner. What you will learnUnderstand how blockchain hashing worksWrite and test a smart contract using SolidityDevelop and test a decentralized applicationBuild and test your application using Hyperledger FabricImplement business network using Hyperledger ComposerTest and interact with business network applicationsWho this book is for The book is for developers, analysts, or anyone looking to learn about Blockchain in a quick and easy manner.




Securing Blockchain Networks like Ethereum and Hyperledger Fabric


Book Description

Build secure private blockchain networks to handle mission-critical security challenges such as denial-of-service attacks, user wallets, and pool mining attacks Key FeaturesExplore blockchain concepts such as cryptography, consensus algorithms, and security assumptionsArchitect network security for mission-critical decentralized apps (Dapps) using design security considerationsConsider various deployment and operational aspects while building a blockchain networkBook Description Blockchain adoption has extended from niche research to everyday usage. However, despite the blockchain revolution, one of the key challenges faced in blockchain development is maintaining security, and this book will demonstrate the techniques for doing this. You’ll start with blockchain basics and explore various blockchain attacks on user wallets, and denial of service and pool mining attacks. Next, you’ll learn cryptography concepts, consensus algorithms in blockchain security, and design principles while understanding and deploying security implementation guidelines. You’ll not only cover architectural considerations, but also work on system and network security and operational configurations for your Ethereum and Hyperledger Fabric network. You’ll later implement security at each level of blockchain app development, understanding how to secure various phases of a blockchain app using an example-based approach. You’ll gradually learn to securely implement and develop decentralized apps, and follow deployment best practices. Finally, you’ll explore the architectural components of Hyperledger Fabric, and how they can be configured to build secure private blockchain networks. By the end of this book, you’ll have learned blockchain security concepts and techniques that you can implement in real blockchain production environments. What you will learnUnderstand blockchain consensus algorithms and security assumptionsDesign secure distributed applications and smart contractsUnderstand how blockchains manage transactions and help to protect wallets and private keysPrevent potential security threats that can affect distributed ledger technologies (DLTs) and blockchainsUse pentesting tools for assessing potential flaws in Dapps and smart contractsAssess privacy compliance issues and manage sensitive data with blockchainWho this book is for This book is for blockchain developers, security professionals, and Ethereum and Hyperledger developers who are looking to implement security in blockchain platforms and ensure secure data management using an example-driven approach. Basic knowledge of blockchain concepts will be beneficial.




Blockchain Development with Hyperledger


Book Description

Learn quick and effective techniques for developing blockchain-based distributed ledgers with ease Key FeaturesDiscover why blockchain is a game changer in the technology landscapeSet up blockchain networks using Hyperledger FabricWrite smart contracts at speed with Hyperledger ComposerBook 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 SunHands-On Blockchain with Hyperledger by Nitin Gaur et al.What you will learnUnderstand why decentralized applications are necessaryDevelop and test a decentralized application with Hyperledger Fabric and Hyperledger ComposerWrite and test a smart contract using SolidityDesign transaction models and chain code with GolangDeploy the Composer REpresentational State Transfer (REST) Gateway to access Composer transactionsMaintain, monitor, and manage your blockchain solutionsWho 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.




Mastering Hyperledger Fabric


Book Description

Mastering Hyperledger Fabric. A one-stop solution to become Master in the Hyperledger Fabric Key Features Detailed Explanation of One way TLS and mutual TLS Detailed Explanation of docker sockets (docker.sock) Exposed functionalities of Fabric CLI’s and SDK’s Enterprise-level chaincode development A glimpse of Hyperledger Fabric 2.0 Advanced examples of Node and golang Fabric SDK Onboard new organization using Node.js SDK (No more CLI) CI/CD for chaincode (Install chaincode directly onto peers from GitHub using Node.js) Fabric setup explanation with Different real-time use cases Deployment of Hyperledger Fabric using docker swarm and Kubernetes Setup and configure caliper to check benchmarks Monitor consortium with Prometheus and grafana Monitor docker and docker swarm using swarmpit and logspout Logging consortium with ELK/EFK stack Some interesting open-source tools and some Bonus concepts Table of Contents Chapter1: Introduction to the Hyperledger Landscape Chapter2: The Disruptive Potential of TLS Chapter3: All about docker sockets Chapter4: Installation Guide Of Prerequisites Chapter5: All about fabric CLI Chapter6: All about SDK's (go lang and Node.js) Chapter7: Advanced Chaincode Development Chapter8: End to End fabric consortium with Solo consensus using docker with one use case Chapter9: End to End fabric Consortium with Kafka consensus using docker swarm with one use case Chapter10: End to End fabric Consortium with Raft consensus using Kubernetes with one use case Chapter11: Private Data Concepts, Consortium level ACL(Access Control Lists) and raft consensus mechanism Chapter12: Setup and Benchmark Blockchain Consortium Using Caliper Chapter13: Monitoring Consortium with Prometheus and grafana Chapter14: Logging Consortium with ELK Stack Chapter15: Glimpse of Hyperledger fabric 2.0 Chapter16: Some Interesting tools Who this Book is For This Book benefits Software Engineers who are ready to shift their focus to distributed technologies and Blockchain. This book provides a comprehensive view of Solution Architecture, so it will be easy for architects to architect their solution. CTO’s around the world want to add hyperledger fabric to their technology stack. Managers to cope up with the latest trend. Faculty Professors in order to get industry insights. Even Engineering Students who want to be ready with the latest technologies. Book Description Mastering Hyperledger Fabric is a craving topic for all Hyperledger Fabric Developers around the world. Hyperledger Fabric is an open-source project that helps organizations create and maintain permissioned distributed Blockchain consortiums. This book is for readers who are looking for Hyperledger offerings to build end-to-end projects with growing complexity and functionalities. This book will be a one-stop solution for all developers who want to build blockchain consortiums using Hyperledger Fabric. Topics include TLS, Unix sockets, caliper(Benchmark tool), raft consensus, advanced chaincode development, key collision and MVCC, chaincode access controls, chaincode encryption, node.js SDK, golang SDK, docker daemon API, private data concepts, onboarding organizations using node.js SDK, deploy hyperledger fabric using Kubernetes, deploy hyperledger fabric using docker swarm, monitoring hyperledger fabric, monitoring Kubernetes, monitoring docker swarm, logging hyperledger fabric. After reading this book the reader will be able to set up Production grade hyperledger fabric consortium using raft consensus mechanisms with monitoring using Prometheus and grafana, even logging. This book explains so many key concepts of hyperledger fabric including 2.0 and written with three years of hyperledger fabric production experience.




Hyperledger Fabric In-Depth


Book Description

Create real-world applications using Hyperledger Fabric with ease Key Features a- Understand the importance of Blockchain in an Enterprise. a- Master the core characteristics of Blockchain, i.e., Decentralization, Cryptography, and Consensus Algorithms. a- Get yourself acquainted with Hyperledger Fabric's core concepts and the design philosophy behind it. a- Learn how to work with network configurations, TLS, PDC, ACL, RAFT, monitoring using Prometheus, and Grafana. Description Hyperledger Fabric is an open-source Enterprise Blockchain project. It is best suited for Enterprise Solutions, where the aim is to deliver Blockchain ready solutions in a closed environment between multiple parties. This book aims to cover Hyperledger Fabric in-depth and its role in enterprise applications. This book is divided into two parts. The first part talks about Blockchain in general, decentralization, consensus algorithms, and various cryptographic primitives in Blockchain. It takes a cue from Bitcoin and Ethereum wherever required. This section aims to cement foundational concepts of Blockchain. The second section focuses on Hyperledger Fabric. It helps you to get a deep level understanding of its key core concepts, main constituents, architecture internals, and transaction flow. It is then followed by examples that will help you set up a network. A detailed explanation of Chaincode will help you understand how to write a Smart Contract, unit test, and deploy them in the dev network. This book also covers Network Configurations, ACLs, RAFT, and Monitoring so that you can start thinking about making production-grade applications. What will you learn a- Get familiar with the fundamentals of Blockchain. a- Understand the core concepts of Hyperledger's system architecture. a- Create Fabric based blockchain networks with different configurations. a- Learn to write, test and deploy smart contracts (chaincode) in Hyperledger a- Get familiar with the Security and Privacy aspect in Blockchain. Who this book is for This book is for anyone who wants to get started on blockchain. This book is for developers and architects who want to learn how to develop a fabric based blockchain application and apply advanced concepts that help them build enterprise grade applications. Table of Contents 1. Understanding Blockchain 2. World of Decentralization 3. Cryptography - a pillar 4. Consensus Algorithms 5. Blockchain in Enterprises 6. Hyperledger Fabric 7. Hyperledger Architecture and Transaction Flow 8. Setting up Fabric Network 9. Smart Contracts 10. Privacy and Security 11. Hyperledger Fabric v 2.0 About the Author Ashwani Kumar is a technologist by profession having 19+ years of experience working in large enterprise-grade solutions. He was instrumental in architecting, designing, developing, and delivering multiple solutions for numerous industry verticals. His area of expertise involves J2EE and cloud computing technologies. Ashwani holds a Bachelor of Engineering Degree in Computer Technology from Nagpur University. Though Ashwani has worked on several technologies throughout his tenure, however chancing upon Blockchain a couple of years ago brought up an interesting point in his zeal of learning new and emerging technologies. Blockchain and specifically Hyperledger Fabric was till then into nascent stages from understanding and application perspective. Ashwani has spent considerable time working and exploring Hyperledger Fabric, which is most sought after permissioned blockchain and has seen it evolve release after releases. Ashwani is a firm believer in sharing knowledge and believes sharing increases your own outlook and hence this book. Your Blog links: https://medium.com/@asharora78 Your LinkedIn Profile: https://www.linkedin.com/in/ashwani-kumar-719b722/




Mastering Blockchain


Book Description

Learn about cryptography and cryptocurrencies, so you can build highly secure, decentralized applications and conduct trusted in-app transactions. Key Features Get to grips with the underlying technical principles and implementations of blockchain Build powerful applications using Ethereum to secure transactions and create smart contracts Explore cryptography, mine cryptocurrencies, and solve scalability issues with this comprehensive guide Book Description A blockchain is a distributed ledger that is replicated across multiple nodes and enables immutable, transparent and cryptographically secure record-keeping of transactions. The blockchain technology is the backbone of cryptocurrencies, and it has applications in finance, government, media and almost all other industries. Mastering Blockchain, Second Edition has been thoroughly updated and revised to provide a detailed description of this leading technology and its implementation in the real world. This book begins with the technical foundations of blockchain technology, teaching you the fundamentals of distributed systems, cryptography and how it keeps data secure. You will learn about the mechanisms behind cryptocurrencies and how to develop applications using Ethereum, a decentralized virtual machine. You will also explore different other blockchain solutions and get an introduction to business blockchain frameworks under Hyperledger, a collaborative effort for the advancement of blockchain technologies hosted by the Linux Foundation. You will also be shown how to implement blockchain solutions beyond currencies, Internet of Things with blockchain, blockchain scalability, and the future scope of this fascinating and powerful technology. What you will learn Master the theoretical and technical foundations of the blockchain technology Understand the concept of decentralization, its impact, and its relationship with blockchain technology Master how cryptography is used to secure data - with practical examples Grasp the inner workings of blockchain and the mechanisms behind bitcoin and alternative cryptocurrencies Understand the theoretical foundations of smart contracts Learn how Ethereum blockchain works and how to develop decentralized applications using Solidity and relevant development frameworks Identify and examine applications of the blockchain technology - beyond currencies Investigate alternative blockchain solutions including Hyperledger, Corda, and many more Explore research topics and the future scope of blockchain technology Who this book is for This book will appeal to those who wish to build fast, highly secure, transactional applications. It targets people who are familiar with the concept of blockchain and are comfortable with a programming language.