Giter Site home page Giter Site logo

blockchainpoc's Introduction

BlockChain POC using Hyperledger-Fabric, Hyperledger-Composer, Loopback REST API

A typical pre-requisite would be to download the Hyperledger Fabric first -- https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html#ubuntu

The next step would be to install and set up the dev environment https://hyperledger.github.io/composer/latest/installing/development-tools.html

Once you have completed the above steps then the steps to start the fabric : startup.sh

createArchive.sh ---> Creates the business network archive file(.bna) consisiting of model files(.cto), permissioning files (.acl), query files (.qry) and the smart contract logic (.js). Just these 4 files can create all the magic in creating assets, creating participants, creating transactions.

In this scenario we have the following participants : Buyer, Seller, Provider, Shipper and the Finance Company. The assets are the Orders Only a Buyer can create an order and approve it. The Seller can either instruct the Shipper to sell it or order it from his third party provider if he does not have the stock. The Provider can instruct the Shipper to Ship the products to Buyer. The Shipper can ship the products to buyer. Once Buyer recieves it, he can approve a payment request or dispute the shipment and subsequently cancel the order. The Finance Company can see all what is going on between these different participants, but he can only view all these state changes.

See in order to write all the logic of who can do what and who can see what in any other traditional existing systems would be to write lots of code. If you see in this platform how easy it is to get such complicated state, assets and transaction tracking can be achieved with a server side foot print of just 35Kbs(yes kbs, not Mbs, not Gbs).

This is why I am in love with the private permissioned blockchain using PBFT as it's consensus algorithm.

Some more useful links about the Hyperledger-Fabric & Hyperledger-Composer projects

Building your very first business network : http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

Writing your very first app : http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html

What is Hyperledger-Composer? https://hyperledger.github.io/composer/latest/introduction/introduction

Typical Hyperledger Composer Solution Architecture : https://hyperledger.github.io/composer/latest/introduction/solution-architecture.html

Key Concepts in Hyperledger Composer: https://hyperledger.github.io/composer/latest/introduction/key-concepts.html

blockchainpoc's People

Contributors

raman2072 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.