BEAS
Blockchain Enabled Asynchronous and Secure Federated Machine Learning
Default Network Configuration:
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
Usage Instructions:
Prerequisites:
- HyperLedger Fabric v2.2.x LTS
- Download this repository, and merge BEAS/fabric-samples with the HyperLedger fabric-samples directory.
Network Setup:
$ cd fabric-samples/BEAS
$ ./teardownBEAS.sh
$ ./startBEAS.sh
If ./sh files have permission error (mac OS):
$ chmod u+r+x ./file_name.sh
Running the Application:
Initialise New Channel
- Change working directory:
$ cd fabric-samples/BEAS/javascript/storageServer
- Install Application Dependancies:
$ npm install
- Run Application
$ node server.js
Initialise New Client
Initialise New Channel
- 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