Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockchain Engineering 2023 - Token Transaction Engine II #7304

Closed
InvictusRMC opened this issue Feb 27, 2023 · 19 comments
Closed

Blockchain Engineering 2023 - Token Transaction Engine II #7304

InvictusRMC opened this issue Feb 27, 2023 · 19 comments

Comments

@InvictusRMC
Copy link
Member

Token transaction engine. Create a lightweight and fast token transaction engine for mobile devices. Your engine should be able to process 1000 transactions per second with standard 4G connectivity. Record these transactions within a simple SQLite backend. Realise simple primitives such as send/receive token primitives. Required background reading: ConTrib: Universal and Decentralized Accounting in Shared-Resource Systems.

@InvictusRMC InvictusRMC changed the title Blockchain Engineering 2023 - Token Transaction Engine Blockchain Engineering 2023 - Token Transaction Engine II Feb 27, 2023
@InvictusRMC
Copy link
Member Author

InvictusRMC commented Feb 27, 2023

Progress:

All team member were able to compile from source 🎉, but please help AK!

GitHub handles to add:

  • AkramNexus
  • bbrockbernd
  • C6H5-NO2
  • nealsweijen61

@bbrockbernd
Copy link

Could you add sem as well: SDuveen

@nealsweijen61
Copy link

Created an IPv8 overlay

@nealsweijen61
Copy link

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Mar 6, 2023

  • Team managed to get a community working

Next sprint:

  • Please update ticket before meeting (APK file???)
  • Get simple token structure up and running based on trustchain
  • Implement simple database structure:
    • Look at other SQlite database usage

@AkramNexus
Copy link

Apk file for this week's sprint:

https://bit.ly/3ZITPTN

@nealsweijen61
Copy link

Contains possibilities to see message of others, send them tokens, and has a sqlite backend too! Also changed the project to a new android module

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Mar 13, 2023

First APK file! App crashes, this is expected 😄

✅ Basic token structure achieved
🟥 No usage of trustchain yet

Next sprint:

Upping the performance and hitting limits:

  • Group transactions and see how much you can put in a single UDP message
    • What transactions to group together?
    • What to do when a message is lost?
    • When is a message lost?
    • How do we recover?
  • Make a script that generates a lot of transactions

@bbrockbernd
Copy link

Meeting wednesday:

  • Figure out what are the right conventions for refreshing peers, sending and receiving in a community. (Akram)
  • Generate a lot of transactions, co routines (Sem)
  • Grouping of transactions (Junbo)
  • Fix UI bugs, and functionality (Bob)
  • Lost messages (Neal)

@nealsweijen61
Copy link

Fixed UI bugs and functionality, written script for executing a lot of transaction(not tested) and created a way to resend messages when a message is not received.

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Mar 20, 2023

A basic token structure working, well done!

@nealsweijen61
Copy link

Implementation on trustchain, made dummy node(question about this), grouping of messages.

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Mar 27, 2023

Progress

  • Trustchain implementation is (almost) working ✔️
  • Dummy nodes WIP
  • Grouping of messages working ✔️
    • Please handle resends properly

Next sprint

Performance analysis

Deliverables:

  • UI: '1000 txs' --> benchmark and generate statistics on the screen
  • API: finalize design and start documenting in report
  • Note that markdown-style report is, next to your code, key deliverable for this course.

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Mar 27, 2023

Example README: https://github.com/Tribler/trustchain-superapp/blob/master/currencyii/README.md

Also, please create a pull request before the next sprint! This can be a draft PR that is mergeable.

@nealsweijen61
Copy link

Trustchain store for tokens(almost done), grouping and resending on trustchain, dummy nodes see app peers(but not the other way around??)

@InvictusRMC
Copy link
Member Author

InvictusRMC commented Apr 3, 2023

  • Lesson learned: Kotlin and Python don't like talking with each other.

Prioritization

@InvictusRMC
Copy link
Member Author

Please also check with the missing team member whether they have any unavailable timeslots for the examination meeting on the 20th or 21st of April.

@AkramNexus
Copy link

New APK built from master branch on april 11th: https://we.tl/t-cjbelPP6z5

@nealsweijen61
Copy link

This sprint we finalized the trustchain implementation and now also use the grouping with this implementation. For benchmarking an enviroment a special enviroment has been created that only starts detoks engine and required other communites.
WIP: benchmark the newly implemented trustchain implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants