https://github.com/dltcollab/data-marketplace
Decentralized Data Marketplace and Monetization
https://github.com/dltcollab/data-marketplace
decentralized-applications iot iota sensor-data solidity-contracts tangle tangleid
Last synced: 11 months ago
JSON representation
Decentralized Data Marketplace and Monetization
- Host: GitHub
- URL: https://github.com/dltcollab/data-marketplace
- Owner: DLTcollab
- License: other
- Created: 2019-02-14T18:11:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T07:23:17.000Z (almost 7 years ago)
- Last Synced: 2025-04-07T13:05:58.809Z (12 months ago)
- Topics: decentralized-applications, iot, iota, sensor-data, solidity-contracts, tangle, tangleid
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 9
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Data Marketplace: A decentralized implementation with Ethereum and IOTA
This is a decentralized data marketplace that allows data consumers
to place bids on auctions for high-value sensor/IoT devices to compensate
for invaluable data.
Data Marketplace is governed by specific contracts deployed on Ethereum
network, allowing data curators to register new data sets and users to
subscribe to existing data sets, in conjunction with IOTA network to preserve
and validate data source.
Data Marketplace contract is publicly available and can be used by any other
contract in the network. The smart contract stores each of the data sets
metadata (owner, price, number of subscriptions, etc.) and information about
each subscription to any data set (price, start time and end time).
## Registration
Registration is the process through which data providers can offer their
datasets on the Data Marketplace. Data providers are paid for their dataset
after the subscription period ends for any given subscriber, through
a withdraw transaction.
## Subscriptions
A Subscription holds the reference to instances of user-defined Contracts.
The subscribers are the users in the Data Marketplace that pay for data.
Every payment is first made to the Marketplace contract and is held until
the Subscription is expired or the Data curator is punished (should their
data stop being available). In case the data provider was punished then
and only then, the subscriber will able to ask for a refund. The refund is
prorated on the fraction of the monthly subscription when the data was
available, and will be deposited back to the subscriber's address.
## Contracts
Contracts are the custom and user defined artifact that describe a data
subscription service. These are custom contracts that the buyer interacts with.
The existence of these contracts live within subscriptions. Additional client
code accompanies Contracts, where either the consumer and service provider
run a custom client and server.
## Get started
### Prerequisites
* Ganache
* solc compiler
* Truffle
### Setup dependency
```shell
npm install
npm install truffle -g
npm install ganache-cli -g
```
### Setup test environment
```shell
ganache-cli --account 4
```
### Build and Run
```shell
truffle compile
truffle test
```