This tutorial hasn't been complete yet, we will finish it recently. Thank you for your interest : )
EduCoin is a demo of enterprise-class application build on top of Fabric. It serves as a good guide to learn Hyperledger Fabric, Composer and Caliper development. The experiment results demonstrate the performance and bottlenecks of Fabric applications.
- [1] Lu L, Chen J, Tian Z, et al. EduCoin: a Secure and Efficient Payment Solution for MOOC Environment. IEEE Blockchain 2019.
First We describe the EduCoin Smart Contract based on Hyperledger Composer and explain how to deploy it in a single machine.
- docker
- docker-compose
This is our environment:
docker -v
Docker version 1.13.1
docker-compose -v
docker-compose version 1.21.2
Note that, for Chinese users, we recommend you to use DaoCloud and Alibaba Cloud (Aliyun) to accelerate docker pulling operation.
Because Fabric peer nodes can run as docker containers. Employing docker technology, we are able to reduce the deployment cost. If you are not familiar with docker, you can go through this guide, and Google for problems meet or leave the questions in the issues section of this Github repository , we will give you feedback if possible.
Two commands are useful:
docker stop $(docker ps -a -q) //stop all the containers
docker rm $(docker ps -a -q) //delete all the containers
If you want to learn about the chaincode language of Hyperledger Composer, we recommend you go through the guides of Composer. This is the github repository URL of Composer . And in the Getting started with building an application section we have:
These guide links are very useful to understand Composer. Note that, for Chinese users, if you want to watch the videos in YouTube and use the composer playground, you should solve the Great Firewall problem.
Because we use docker in the whole experiment, we don't need to install npm packages like composer-cli@0.20 and composer-rest-server@0.20 introduced in Installing the development environment for composer. We also prepare a guide for you to focus on learning the composer smart contract language.
- The caliper directory contains strcipt to test the performance of ecucation coin network.
- The EduCoin directory contains composer smart contract for ecucation coin.
- The Hitchhiker directory contains strcipt to run docker container to benchmark the composer-rest-server, which offer RESTful Apis for ecucation coin network.