olegabu / catbond

Bond issuance and trading on blockchain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catastrophe Bond Proof Of Concept

Proof of concept demo for issuing and trading bonds on Hyperledger blockchain. Please read the functional spec document.

Changes to core.yaml

security.enabled = true

Changes to membersrvc.yaml

Add 6 more users

auditor0: 1 yg5DVhm0er1z bank_a  
investor1: 1 b7pmSxzKNFiw bank_a 
investor0: 1 YsWZD4qQmYxo bank_a 
issuer1: 1 W8G0usrU7jRk bank_a   
issuer0: 1 H80SiB5ODKKQ bank_a
offlineServices: 1 H80SiB5ODKKQ bank_a

And add correct atributes to the aca.attributes section

attribute-entry-2: auditor0;bank_a;role;auditor;2015-07-13T00:00:00-03:00;;
attribute-entry-3: investor1;bank_a;role;investor;2001-02-02T00:00:00-03:00;;
attribute-entry-4: investor0;bank_a;role;investor;2001-02-02T00:00:00-03:00;;
attribute-entry-5: issuer1;bank_a;role;issuer;2015-01-01T00:00:00-03:00;;
attribute-entry-6: issuer0;bank_a;role;issuer;2015-01-01T00:00:00-03:00;;
attribute-entry-7: offlineServices;bank_a;role;bank;2015-01-01T00:00:00-03:00;;

run support/deploy_chaincode.sh to run membersrvc and one peer

Web Application

Demo is served by an Angular single page web application. Please install and run in web directory.

Install

npm install
bower install

Will download developer dependencies which may take a little while.

Run

The web app is built and run by gulp:

gulp serve

About

Bond issuance and trading on blockchain


Languages

Language:Go 37.7%Language:JavaScript 35.0%Language:HTML 18.6%Language:Shell 4.8%Language:CSS 3.9%