Book Image

Blockchain for Enterprise

By : Narayan Prusty
Book Image

Blockchain for Enterprise

By: Narayan Prusty

Overview of this book

The increasing growth in blockchain use is enormous, and it is changing the way business is done. Many leading organizations are already exploring the potential of blockchain. With this book, you will learn to build end-to-end enterprise-level decentralized applications and scale them across your organization to meet your company's needs. This book will help you understand what DApps are and how the blockchain ecosystem works, via real-world examples. This extensive end-to-end book covers every blockchain aspect for business and for developers. You will master process flows and incorporate them into your own enterprise. You will learn how to use J.P. Morgan’s Quorum to build blockchain-based applications. You will also learn how to write applications that can help communicate enterprise blockchain solutions. You will learn how to write smart contracts that run without censorship and third-party interference. Once you've grasped what a blockchain is and have learned about Quorum, you will jump into building real-world practical blockchain applications for sectors such as payment and money transfer, healthcare, cloud computing, supply chain management, and much more.
Table of Contents (14 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Private contracts and constellation


Private contracts are an out-of-the-box feature provided by Quorum for enabling data privacy. Private contracts are used for sharing information privately between two or more nodes without other nodes being able to see it. 

Let's look at what private contracts in Quorum are. Contracts that are deployed using private transactions are called private contracts. A private transaction is basically one whose payload (contract code for contract deployment or function arguments for calling functions, the data part of transactions) is shared point to point, outside of blockchain between a selected list of peers mentioned at the time of sending the transaction, and the hash of the payload is recorded in the blockchain by replacing the actual payload with the hash of the payload. Now, the nodes in the network check whether they have the content that hashes to the hash present in the blockchain as payload, and if yes, then they execute the original payload. Quorum...