Showing posts with label Hyperledger. Show all posts
Showing posts with label Hyperledger. Show all posts

Friday, 9 October 2020

HyperLedger Besu - Node Setup

                                        


This article is part of Hyperledger Besu Series. 

In this part of the series, we are going to see how to setup a permissioned network within our local computer. 

Step 1: Move the besu folder from Downloads/ or your default download directory to your Main Working directory with enough storage space.  

Step 2: Install Curl in your system.

Step 3: Create a folder for the Permissioned Network within the besu-1.5.0 folder.

 

View of Besu directory after Permissioned-Network folder creation


Step 4: Create three folder Node-1, Node-2, Node-3 each representing a Node in the Permissioned Network.

 

 
View of Permissioned-Network folder with three Nodes


Step 5: Within each Node folder, create a data folder for storing the blockchain data. The Node key is also saved within this directory when node starts Besu.


View of Node Folder showing the sub-directory 'data'


Step 6: Genesis Block is the first Block in the Blockchain. We need to create a Genesis config file in json format and place it in the Permissioned-Network directory. Clique is the consensus algorithm here, so we need to include atleast signature of one node in the genesis file.  



Step 7:  Copy the file from the link and paste in Permissioned-Network Directory

Step 8: Get the Node-1 Address from the file in /Node-1/data/nodeAddress1 and replace that instead of text <Node-1 Address>  for the parameter  "extraData" in the cliqueGenesis.json file.

 Step 9: Copy the permissions config from the link and paste in data directory all Nodes (/Node-1/data, /Node-2/data, /Node-3/data)

 


 

Thursday, 23 July 2020

HyperLedger Besu - Installation Help



HyperLedger Besu is an Ethereum client designed to be enterprise-friendly for both public and private permissioned use cases. It can run on the existing Ethereum public network or private permissioned networks, as well as test networks such as Ropsten, Rinkeby, Kovan and Görli. Besu supports different consensus algorithms like PoW (for mining), Proof of Authority (PoA) and Byzantine Fault Tolerance (IBFT). 

 We are going to see how to install HyperLedger Besu Binaries in Windows.

Prerequisites :

-        4GB of RAM

-        Java JDK 11+ installed ( To download, Click here )

-        GitBash ( To download, Click here )

Two ways of installing Besu:

  •      Installing the binary distribution
  •      Building from source

Here we are going to install the binary distribution.

Steps:

  1. Download the Binaries from this website. (We have downloaded besu-1.5.0.tar.gz)
  2. Open Git Bash, Move to the folder where you saved the downloaded binaries.
  3. Unpack the compressed file using the command: $ tar -xzf <besu file name>
  4. Move to the uncompressed binaries, and to confirm that the binaries aren't corrupted and check the version, type the command: $ bin/besu --version. The output should return the Besu Binary and JDK version.


Besu Installation Terminal Response

 


Total Pageviews