Blockchain Enabled Asynchronous and Secure Federated Machine Learning
The default application uses the HyperLedger Test network which bootstraps the following instances:
- 1 Orderer
- 1 Certifying Authority
- 2 org (org0 and org1) maintaining 2 peer (peer0 and peer 1)
- 1 CouchDB
- 1 CLI
- HyperLedger Fabric v2.2.x LTS
- Download this repository, and merge BEAS/fabric-samples with the HyperLedger fabric-samples directory.
$ cd fabric-samples/BEAS
$ ./teardownBEAS.sh
$ ./startBEAS.sh
If ./sh files have permission error (mac OS):
$ chmod u+r+x ./file_name.sh
- Change working directory:
$ cd fabric-samples/BEAS/javascript/storageServer
- Install Application Dependancies:
$ npm install
- Run Application
$ node server.js
- Change working directory:
$ cd fabric-samples/BEAS/javascript/clientNode
- Install Application Dependancies:
$ npm install
- Run Application
$ node client.js
- To view the frontend, go to your browser and lauch http://localhost:5000