IoTone / TheShellProject

The Shell Project aims to build a viable general purpose blockchain written in Dlang, with attributes of security, ease of deployment, clear specification, ease of use for DAPPs, and multiple implementation interop
1 stars 1 forks source link

Implement IoT "service exchange" #65

Open truedat101 opened 5 years ago

truedat101 commented 5 years ago

Two devices existing in a consumer / service provider relationship. Service Provider (Device A) offers a service to a Consumer (Device B). Device B must pay "shellcredits" to Device A for service. This can be some stupid service like charging device A for having the lights on. If the Consumer runs out of funds, the Service provider (Device A) shuts off the lights. In a simple scenario the user pays to keep lights on. When the money runs out, or the consumer forgets to pay, the lights go off. We can assume a simple scenario where the Consumer can always request to replenish the "shellcredits" for easy demo. However, the service provider keeps a record of units consumed by the Consumer, and the consumer can display this amount at any time.

Imagine a household that was governed by such limits. Every consumer in the house pays into a total daily or monthly budget available. It could prevent overuse by an individual consumer and possibly warn of budget excess, and help assist in techniques to reduce consumption. Cities could use this. Companies could use this.

pedroalvesbatista commented 5 years ago

This simple but valuable example can be run in a series of applications.

truedat101 commented 5 years ago

It's a basic metered service example.

pedroalvesbatista commented 5 years ago

I see that we doing this one, SupChain can have one more component to get inside.