TrustTheVote-Project / NIST-1500-100-103-examples

Other
3 stars 5 forks source link

Request: example CVR in JSON format #37

Closed mattbeattie closed 2 years ago

mattbeattie commented 2 years ago

The NIST 2.0 EDF JSON examples (1 and 2) were incredibly helpful when creating the TypeScript model and associated parsing logic.

I would like to request a sample CVR in JSON format, so that I can create the corresponding TypeScript model and associated generation logic. The documentation is helpful, but seeing an example would be much more useful.

Is this something you can create an add to the repo?

trustthevote commented 2 years ago

its already an action for @cwulfman to add CVR examples for each EDF example.

cwulfman commented 2 years ago

I would like to request a sample CVR in JSON format, so that I can create the corresponding TypeScript model and associated generation logic. The documentation is helpful, but seeing an example would be much more useful.

The documentation for the CastVoteRecord is here

cwulfman commented 2 years ago

John Dziurlaj has an json example here: https://github.com/HiltonRoscoe/CDFPrototype/blob/master/CVR/json/example_2.json

In fact, https://github.com/HiltonRoscoe/CDFPrototype is chock-full of interesting stuff for us.

mattbeattie commented 2 years ago

Oh excellent. I should be able to programmatically create a CVR that looks like that based on the EDF and the voter's selections.

You weren't kidding - the EXAMPLES.md in that repo has a ton of info.

One potential concern: the version is 1.0.0 - do you know if this corresponds to NIST 1.0? Is 1.0 vs 2.0 a thing for CVRs too, or just EDFs?

cwulfman commented 2 years ago

I think there is only one version of NIST-1500-103

mattbeattie commented 2 years ago

Perfect, this should be all I need to get started then. Thanks so much!