Skip to content

Micro subscription solution for cloud service based on micro payment and onchain oracle

Notifications You must be signed in to change notification settings

Xuefeng-Zhu/Micro-Subscription

Repository files navigation

Micro Subscription

A new payment and dispute solution for cloud service. Users are able to make micro payment for the service they actually use by minutes. It also uses on-chain oracle to monitor the service status. If the service is always on within a minute, user will pay the service provider. If the service goes down, user does not need to pay the service provider, and the service provider will pay the user instead for its lost based on SLA.

Instructions

  1. Update config.js with your own configuration.
  2. Run npm install and then node generate-keys.js to have your key store generated.
  3. Go to celer directory, and start two celer client, one for user and one for service provider. To start celer client, run ./celer_client_mac -config profile.json -port 29979 -keystore user.json and ./celer_client_mac -config profile.json -port 20080 -keystore provider.json. When prompted for password, enter 123456. Run ./celer_client_linux for Linux instead.
  4. Run node index.js to launch node client, which will trigger state channel payment and monitor service status.
  5. Go to dashboard, run npm install & npm start to launch a simple statistics dashboard.

About

Micro subscription solution for cloud service based on micro payment and onchain oracle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published