百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

trade-finance-logistics

> 编程语言
开源

基于信用证和发货证明的贸易金融和物流

194 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

基于信用证和发货证明的贸易金融和物流

(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:

  • Exporter: An entity that is selling goods
  • Importer: An entity that is buying goods from an exporter in exchange for money
  • Importer's Bank: Maintains a bank account for an importer, and issues a Letter of Credit on its behalf
  • Exporter's Bank: Maintains a bank account for an exporter, and handles L/Cs and payments on its behalf
  • Carrier: Entity that ships goods from exporter's to importer's location.
  • Regulatory Auhority: Public or governmental body that approves the export of goods, and audits the process

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

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:

  • Test the chaincode (smart contract): Navigate to the chaincode folder for instructions.
  • Launch a trade network: Navigate to the network folder for instructions.
  • Test Attribute Based Access Control(ABAC): Follow these instructions: Testing ABAC
  • Prepare the middleware: Navigate to the middleware folder for instructions.
  • Start and exercise the application server: Navigate to the application folder for instructions.

Augmenting the Application

Two kinds of augmentation are currently supported:

Add a New Organization and Peers

  • See instructions in network to create configuration files for the new organization and peers.
  • See instructions in middleware to update the running application to incorporate the new organization and peers.
    • Alternatively, see instructions in application to upgrade chaincode through the application server.

Upgrade Chaincode

  • (Note: the upgrade version of the chaincode in this repository assumes that the new organization has already been added above.
    • To test chaincode upgrade without new organizations, modify and test the upgrade version of the chaincode suitably.)
  • See instructions in chaincode to validate the upgrade version, or apply custom modifications followed by unit testing.
  • See instructions in middleware to upgrade chaincode in a running trade application.
    • Alternatively, see instructions in application to upgrade chaincode through the application server.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言