Skip to content

EduCoin is a crypto-asset built on top of permissioned blockchain, Fabric and smart contract framework Composer. EduCoin can achieve secure and efficient payment in MOOC environment where there are many service providers. EduCoin also provide workloads based on Caliper to benchmark transaction in different business scenarios.

lulinglingcufe/EducationCoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EduCoin

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.

Paper

EduCoin Smart Contract

First We describe the EduCoin Smart Contract based on Hyperledger Composer and explain how to deploy it in a single machine.

1. Experimental environment requirements

  • 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

2. Basic knowledge of Composer

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.

3. Foucus on learning Comoser smart contract & Our guide

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.

  1. The caliper directory contains strcipt to test the performance of ecucation coin network.
  2. The EduCoin directory contains composer smart contract for ecucation coin.
  3. The Hitchhiker directory contains strcipt to run docker container to benchmark the composer-rest-server, which offer RESTful Apis for ecucation coin network.

About

EduCoin is a crypto-asset built on top of permissioned blockchain, Fabric and smart contract framework Composer. EduCoin can achieve secure and efficient payment in MOOC environment where there are many service providers. EduCoin also provide workloads based on Caliper to benchmark transaction in different business scenarios.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published