HyperledgerHandsOn / trade-finance-logistics

Trade Finance and Logistics based on Letter of Credit and Proof of Shipment
Apache License 2.0
174 stars 1.49k forks source link

(This branch corresponds to the instructions given in the book. It depends on the release-1.1 branches of Hyperledger Fabric and Fabric-CA)

Trade Application

This is a use case on trade finance and logistics, designed to demonstrate the capabilities of Hyperledger (mainly Fabric) blockchain tools.

Use Case Scenario Overview

The trade scenario consists of 6 participants:

The flow diagam below illustrates the steps from a trade agreement to the final payment settlement. (For more details, see the full description.

alt text

Application folder structure

./
├── chaincode
├── middleware
└── application
└── composer
└── network
└── docs
└── README.md

The chaincode folder contains the source code for all versions of the chaincode.

The middleware folder contains wrapper functions that use the Fabric SDK library to implement channel and chaincode operations.

The application folder contains code to start a web server and offer a REST API for users to register, login, set up the channel and application, and run trade operations.

The network folder contains configurations and code to launch a single-machine Docker network setup corresponding to a minimal version of the trade application scenario.

The docs folder contains more documentation on the use case.

Testing and Running the Application

To test and run the complete application, you will need to perform the following steps in sequence:

Augmenting the Application

Two kinds of augmentation are currently supported:

Add a New Organization and Peers