Skip to content
Dietrich Rordorf edited this page Oct 28, 2017 · 5 revisions

Clockchain: Marktplatz für den Austausch Zeit-basierter Leistungen

Backend 1: Blockchain

Functions

createUser(firstname, lastname, email)

This functions creates a new wallet for the user and initially assigns 2 "gift" coins to the new user.

exchangeCoins(fromUserId, toUserId, amount)

This function sends amount of coins from user A to user B (triggered by the exchange of services on the plattform)

showBalance(userId)

Shows how many hours a user has accumulated on their account