GithubHelp home page GithubHelp logo

lulinglingcufe / educationcoin Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 344 KB

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.

Shell 3.21% JavaScript 87.32% Dockerfile 0.32% Go 6.59% Python 1.95% PHP 0.59%
hyperledger-composer hyperledger-caliper application crypto-assets

educationcoin's Introduction

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 [email protected] and [email protected] 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.