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

Build your first Raft network

Now, we have installed Quorum and constellation successfully, it's time to set up our first Quorum network. Before setting up the network, you need to decide whether you want to use Raft or IBFT, and accordingly you need to plan and set up. We will learn setting up both kinds of networks. We will also set up a constellation network.

Now, let's build a Raft network with constellation. We will also see how to add and remove new nodes once the network is up and running. We will build a network of four nodes. 

Create a directory named raft. Then, place the geth and constellation-node binaries in it. You can use the --help option of geth and constellation-node to find the various sub-commands and options available.

Setting up a constellation network

Now, let's first create four constellation nodes. For development purposes, we will run all four nodes in the same machine. For every constellation node, we have to generate a separate asymmetric key pair. Run the following...