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

Optimize cost of marking attendance #160

Open
makoto opened this issue Jul 9, 2018 · 0 comments
Open

Optimize cost of marking attendance #160

makoto opened this issue Jul 9, 2018 · 0 comments

Comments

@makoto
Copy link
Owner

makoto commented Jul 9, 2018

Currently the cost of marking participants increase in O(n).

The potential solution would be.

  • Only mark people who did not attend
  • Track attendance as bitmap binary array which can be updated with one storage write
  • Use Merkel airdrop logic to put the merkel hash of all the participants (this require to hold all attendees info off chain).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant