WZL x GCX x IOTA — Status Report 04

Introducing a pay-per-use Data Marketplace and Micropayments

Daniel Trauth
Oct 13, 2018 · 6 min read
Image for post
Image for post
Background: Finetool Machine with Coils. Image: © WZL | Christian May & Semjon Becker

Co-Authors: Semjon Becker, Felix Mönckemeyer

Previous Stories

Retrospective: Fineblanking

In the first article we provided a coverage of data extraction from the machine, converted it from unrefined data to digital readable format; stored the data in a .json-file before moving it into our test environment.


Retrospective: Data visualization

Overview of the WZL x GCX x IOTA Web-Frontend. Video: © WZL | Daniel Trauth

Focus of Status Report 04

Micro-payments with IOTA are now accepted for each part produced following a pay-per-use model, transforming the front-end into a conceptual Data Marketplace, see Fig. 1.

Image for post
Image for post
Fig. 1: Architecture of the WZL x GCX x IOTA payment system. Image: © WZL | Ashri Anggia & Semjon Becker

Key Consideration of the Payment System


Scope of the Payment System

  • Users can only purchase one part data set per payment
  • Payments will be conducted with IOTA only
  • We use localstorage to save successful transactions in the browser
  • Purchased data sets will be preserved when users close their browser
  • Database stores the invoice and receipt of the payment address however these information is also available in Tangle network.
  • User payments will be done via Trinity wallet QR Code

Out of scope are the following features:

  • User registration
  • Multi-selection of parts per payment
  • No refunds
  • No multiple payments
  • Machine-to-machine payments

The Payment Process — Step by Step

Image for post
Image for post
Fig. 2: The overview of the data set. Image: © WZL | Felix Mönckemeyer & Semjon Becker

The user also has the ability to filter the given results, see Fig. 3.

Image for post
Image for post
Fig. 3: Filtered results in the browser. Image: © WZL | Felix Mönckemeyer & Semjon Becker

A request to buy a data set will be sent through when the Buy Data button is clicked.

Meanwhile, a database scheduler is running to check for any paid transactions in the queue: Transaction table is updated with new transaction details. If a user pays for multiple transactions, all transaction entries will share the same transaction id with different invoice timestamps. Afterwards, the view table is updated with paid status set to true if the user has paid the total amount requested.

Afterwards, the QR Code for the payment is shown, see Fig. 4.

Image for post
Image for post
Fig. 4: The QR code to send IOTAs. Image: © WZL | Felix Mönckemeyer & Semjon Becker

The user may close the window without affecting the pending payment. A QR Code based on the return values from step 1 is then generated (see Trinity doc for their format https://docs.iota.works/trinity/information/qr). The Buy button status will change to pending. Upon clicking, it will display the QR code again. The Buy button will change to View button once the user has paid for the data set, see Fig. 5.

Image for post
Image for post
Fig. 5: The “Buy Data” button changed to a “View” button after the purchase. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Upon clicking, the View button will reveal the machine data details page, see Fig. 6. A timer shows the remaining access time to read the data sets.

Image for post
Image for post
Fig. 6: Timer and details page after the payment. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Integrity and Tangle checks can still be performed. Note, at the time the screenshot was taken, we were still developing the integrity check, hence the warning sign, see Fig. 7.

Image for post
Image for post
Fig. 7: Tangle verification after purchase. Image: © WZL | Felix Mönckemeyer & Semjon Becker

Using IOTA Trinity Wallet

Image for post
Image for post
Fig. 8: Steps using the Trinity wallet. Image: © WZL | Daniel Trauth & Semjon Becker

Coming next

Image for post
Image for post
Fig. 9: Outlook: Pay for a digital FEA. Image: © WZL | Daniel Trauth & Semjon Becker

Acknowledgement

Donations to the IILA

YAEIESUZBAQNKACLQOIHWZMWEGOCBGSYXSCMBUXXQOXNZUPU9QGEKZWMCMXKSTATAVS9EFHMLW9IRNYKDBXUAOK9DZ

Check our address on thetangle.org.

Get in contact

Image for post
Image for post
Image: © WZL | Peter Winandy

Industrial IOTA Lab Aachen @ WZL of RWTH Aachen University

Stay informed about the use case of WZL of RWTH Aachen…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store