-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement simple lottery. #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I would just add (a couple of) function(s) for the node to send a proof and the aggregator to check an individual element either exposing in algo or creating in the wrapper.
Doing so, we would support decentralized settings,
- the node can check locally if it has to send an element
- the aggregator could verify a single element as soon as they arrive, push them on a local and vector and cast it as a Proof when succesfully verifying the last one needed
We either can have 2 functions, separating the node from the aggregator, or one use by both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only planned to create an interface for the centralized setting. Let's work on the decentralized interface separately? I would be a different wrapper according to design doc. @rrtoledo
Sure let's do it in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Are you planning to add/enhance public function docs in another PR?
- I would write a simple test function even though the protests will cover most of the cases.
- Also, I saw a typo in file
simple_lottery/init.rs
line 27:bound_completess
. FYI :)
LGTM 👍
There is an open issue to do this for all files. #65 Not sure if I will have time this week though.
I'm afraid that if I write a test, it would become obsolete when property tests are implemented. However, if they do not test something, I would be happy to revisit this!
Thanks, will make a PR with a fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@rrtoledo waiting for your LGTM as promised :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with changes agreed to do in #65
Content
Implement simple lottery's prove and verify functions. This PR doesn't have tests. Let's see what property tests will test and if it still makes sense to add other tests.
Pre-submit checklist
Issue(s)
Closes #69