hyperledger-fabric/

directory
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause

README

Flogo extensions for Hyperledger Fabric

This package includes Flogo® extensions for developing blockchain apps and smart contracts on Hyperledger Fabric. It also provides sample blockchain apps using the Flogo visual programming environment with zero-code. These Dovetail extensions can be used to model Hyperledger Fabric chaincode and client apps in TIBCO Flogo® Enterprise v2.8.0.

The following Flogo® extensions are currently available:

  • Fabric Chaincode Extension, which includes connector, trigger and activities for designing and implementing Hyperledger Fabric chaincode.
  • Fabric Client Extension, which includes connector, trigger, and activities for designing and implementing Hyperledger Fabric client apps, such as a REST or GraphQL service that interacts with a Hyperledger Fabric network.

Getting Started

To setup the local environment on Mac or Linux for Hyperledger Fabric development, follow the instructions here.

Then, start by looking at the following end-to-end samples:

  • marble, which is a zero-code version of the marbles02 chaincode in fabric samples and a REST service for client to submit chaincode transactions. It demonstrates basic features of the Hyperledger Fabric, including the creeation and update of states and composite-keys, and various types of queries for state and history with pagination.
  • marble-private, which is a zero-code version of the marbles02_private chaincode in fabric samples and a REST service. It demonstrates the use of private collections.
  • abac, which is a sample to demonstrate the use of Attribute Based Access Control(ABAC). This feature is important for use-cases, such as IOU trading or exchange, that requires user-level access control.
  • equipment, which implements the chaincode and REST and GraphQL services for tracking equipment purchasing and installation coordinated by multiple clients. It demonstrates the use of Hyperledger Fabric events.
  • audit is an audit-trace app used by the TIBCO AuditSafe cloud service. It supports multi-tenant multi-domain audit log and reporting requirements.
  • iou is an advanced sample that implements a cross-border payment network similar to a simplified Ripple network. It implements both a required chaincode and a client app with GraphQL service interface. The chaincode uses some more advanced Hyperledger Fabric features, including ABAC and private collections. The sample illustrates how a real-worlld Hyperleddger Fabric app can be implemented with zero-code.

By comparing other implementations of chaincode and client apps, you can see that hundreds of lines of boilerplate code are replaced by a single JSON model file exported from the Dovetail or TIBCO Flogo® Enterprise modeling UI. Besides, by using the Flogo visual programming environment, you do not have to learn much of the blockchain APIs nor special programming language for smart contracts. You can implement chaincode and client apps for Hyperledger Fabric by simple drag-drop-mapping in Flogo.

Modeling with TIBCO Cloud Integration (TCI)

If you are already a subscriber of TIBCO Cloud Integration (TCI), or you plan to sign-up for a TCI trial, you can easily start the development of Hyperledger Fabric apps by using a Chrome browser. Refer to Modeling with TCI for more detailed instructions.

Directories

Path Synopsis
fabclient
common Module
fabric
activity/cid Module
activity/get Module
activity/put Module
common Module
flogo-patch
dovetail Module
float Module
samples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL