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

Non-Signature Servside Validations & Derivations #9

Closed
15 tasks done
apbendi opened this issue Apr 9, 2020 · 0 comments · Fixed by #47
Closed
15 tasks done

Non-Signature Servside Validations & Derivations #9

apbendi opened this issue Apr 9, 2020 · 0 comments · Fixed by #47
Assignees
Labels
feature Brand new functionality

Comments

@apbendi
Copy link
Contributor

apbendi commented Apr 9, 2020

Implement data validations & derivations server side as appropriate for endpoint submissions, excluding attestation signatures.

Validations

  • Validation of all required fields on create
  • Validating correctly formed Ethereum accounts
  • Validating end date is in the future
  • Validating at least two poll options are provided
  • Validating existence of event ids
  • Validating ownership of voting token ids
  • Validate all token qualifying tokens are voting
  • Validating the qualification of voting tokens to vote in this poll
  • Validate no tokens have already voted in this poll
  • Validate this account has not already voted in this poll
  • Validating the poll option belongs to the poll being voted on
  • Validating Database read/writes & returning error on failure
  • Validating no poll with the identical attestation currently exists (to mitigate replay)

Derivations

  • Deriving the start date + date cast from "now"
  • Deriving the fancy id from the title + existing conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Brand new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant