Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
maheshwarishikha edited this page Apr 18, 2018 · 14 revisions

Welcome to the blockchain-application-using-fabric-java-sdk wiki!

Short Name

Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java

Short Description

Demonstrates the methodology to create and deploy a blockchain network using Hyperledger Fabric SDK Java.

Offering Type

Blockchain

Introduction

In a blockchain application, blockchain network works as a back-end and application has an front-end to communicate with the network. To set up the communication between front-end and back-end, Hyperledger community provides a number of SDKs for a variety of programming languages like nodejs, java, python. This code pattern will focus on Fabric SDK Java APIs. The Fabric Java SDK helps facilitate Java applications to manage the lifecycle of Hyperledger channels and user chaincode. The SDK also provides a means to execute user chaincode, query blocks and transactions on the channel, and monitor events on the channel. This code pattern demonstrates how to create, deploy and test the network using Fabric SDK Java.

Author

By Shikha Maheshwari, [Balaji Kadambi]

Code

Demo

N/A

Video

TBD

Overview

Have you tried anytime to build a Hyperledger Fabric Java blockchain application? Did you face issues or did not find proper documentation for the same? If yes, this code pattern will help you get the process started.

Blockchain is a shared, immutable ledger for recording the history of transactions. Hyperledger is an open-source collaborative effort created to advance cross-industry blockchain technologies. Hyperledger Fabric is a blockchain framework implementation and one of the Hyperledger projects hosted by The Linux Foundation. Hyperledger Fabric platform provides solutions for distributed ledger underpinned by a modular architecture delivering high degrees of confidentiality, resiliency, flexibility and scalability.

In a blockchain application, blockchain network works as a back-end and application has an front-end to communicate with the network. To set up the communication in java between front-end and back-end, Hyperledger Fabric provides Fabric SDK Java. The Fabric Java SDK provides a means to execute user chaincode, query blocks and transactions on the channel, and monitor events on the channel. This code pattern demonstrates how to create, deploy and test the network using Fabric SDK Java.

In this pattern, you will learn how to begin the process of building a Hyperledger Fabric blockchain application using the Hyperledger Fabric Java SDK APIs. Build the blockchain network using docker-compose. This pattern will provision a Hyperledger Fabric network consisting of two organizations, each maintaining two peer node, two certificate authorities for each peer and a solo ordering service. This pattern will demonstrate to create and initialize channel, install and instantiate chain code and perform invoke and query on your blockchain network.

Flow

  1. Log in to IBM Cloud CLI and initialize IBM Cloud Container Service plugin.
  2. Set context for Kubernetes cluster using CLI and download Kubernetes configuration files. After downloading configuration files, set KUBECONFIG environment variable.
  3. Run script to deploy your hyperledger fabric network on Kubernetes cluster.
  4. Access Kubernetes dashboard.

Included components

  • Hyperledger Fabric: Hyperledger Fabric is a platform for distributed ledger solutions underpinned by a modular architecture delivering high degrees of confidentiality, resiliency, flexibility and scalability.

  • Docker: Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications.

  • Hyperledger Fabric Java SDK

Featured technologies

  • Blockchain: A blockchain is a digitized, decentralized, public ledger of all transactions in a network.

  • Java: Java is a general-purpose computer-programming language that is concurrent, class-based and object-oriented.

Blog

Title - Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java

Blockchain technology is growing fast. Blockchain technology revolutionizes businesses and changes the way business transactions are done. It alters the model of how multi-party transactions are performed by enabling a shared, immutable ledger for recording the history of transactions between the parties in a business network. Organizations can now leverage blockchain to drive greater efficiency and improve trust in existing business networks.

Hyperledger, an umbrella project of open source blockchains and related tools, is hosted by The Linux Foundation. IBM provides blockchain solutions and services leveraging Hyperledger technologies, including Hyperledger Fabric and Hyperledger Composer. Hyperledger Fabric is a blockchain framework implementation.

In our code pattern, ‘Blockchain Network using Kubernetes APIs on IBM Cloud’, we explain the steps involved in setting up your blockchain network on Hyperledger Fabric using Kubernetes APIs on IBM Cloud. The code pattern provides a automated script to quickly deploy your network on the IBM Cloud. Cloud-hosted Hyperledger Fabric network using Kubernetes APIs can be leveraged for easier collaboration among the team members.

Blockchain technologies present opportunities for disruptive innovation. It enables global business transactions with less friction and more trust. So lets explore more!

Links

Clone this wiki locally