Skip to content

moritz-a/Luzon

Repository files navigation

Luzon

Author Moritz Armingeon, [email protected]

Luzon is a TaaL (Token-as-a-License) implementation. This prototype is a floating license system as a decentralised application. I built Luzon within my Master Thesis Project. The report is available upon request.

Taal is the name of a volcano on the Philippine island Luzon.

Prerequisites

  • Node.js Link
  • Truffle (npm install truffle -g) Link
  • Ganache Link
  • Browser with Metamask Link

Deployment

  1. Install dependencies npm install

  2. Compile contracts truffle compile

  3. Migrate contracts truffle migrate

  4. Run tests truffle test

  5. Start Node Server npm run dev

Step by Step Guide

Step 1 - Open ProviderView

Details
User: AssetProvider
Result: No Providers deployed yet.
alt text

Step 2 - Create a new Provider (SoftCompany1, Symbol SC1)

Details
User: AssetProvider
Result: Confirm-Transactiondialog appears.
alt text

Step 3 - Show deployed Providers

Details
User: AssetProvider
Result: Newly created SoftCompany1 appears.
alt text

Step 4 - Add a software asset (Taskmaster Studio Pro, 10 SC1)

Details
User: AssetProvider
Result: Confirm-Transaction dialog appears.
alt text

Step 5 - Show ProviderView, List Assets

Details
User: AssetProvider
Result: Newly created Taskmaster Studio Pro appears.
alt text

Step 6 - Change Account

Details
User: AssetProvider -> AssetConsumer
Result: AssetConsumer takes over.
alt text

Step 7 - Show Consumer View, Create new Company (CarCompany)

Details
User: AssetConsumer
Result: Confirm-Transaction dialog appears.
alt text

Step 8 - Show Consumer View

Details
User: AssetConsumer
Result: Newly created CarCompany appears.
alt text

Step 9 - Switch to ProviderView

Details
User: AssetConsumer
Result: ProviderView appears.
alt text

Step 10 - Buy Tokens from SoftCompany1. Target address is the contract address of CarCompany

Details
User: AssetConsumer
Result: Confirm Transaction dialog appears.
alt text

Step 11 - Switch to ConsumerView. Add EndUser to the trusted Users

Details
User: AssetConsumer
Result: Confirm Transaction dialog appears.
alt text

Step 12 - Show ConsumerView

Details
User: AssetConsumer
Result: Newly added EndUser is part of the users.
alt text

Step 13 - Switch User to EndUser, Open UserView

Details
User: AssetConsumer -> EndUser
Result: EndUser takes over.
alt text

Step 14 - Select CarCompany and Softcompany (Taskmaster Studio Pro), click checkout

Details
User: EndUser
Result: Confirm Transaction dialog appears, TestApp (Taskmaster Studio Pro) opens.
alt text

Step 15 - Use Taskmaster Studio Pro, click Return

Details
User: EndUser
Result: Confirm Transaction dialog appears, TestApp (Taskmaster Studio Pro) opens.
alt text

Step 16 - Test checkout with invalid user

Details
User: Invalid User
Result: Checkout is not possible.
alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published