Created
May 2, 2018 20:38
-
-
Save kibagateaux/60b17747a1e6c161f8d4b5243377688b to your computer and use it in GitHub Desktop.
Accord Voting Standard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace org.accord_voting.decision | |
asset Decision identified by identifier { | |
// what is a decision's job, function, place in the system, how will it be used? | |
o String identifier | |
o String decisionValue // what the actual decsion is. maybe bytes or raw data instead? | |
o String election // explicitly define where the decision came from | |
o Boolean isVoid optional | |
o Boolean isPrivate optional | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace org.accord_voting.vote | |
import org.accordproject.organization.Organization from github://accordproject/models/master/organization.cto | |
import org.accordproject.person.Person from github://accordproject/models/master/person.cto | |
asset Vote identified by identifier { | |
// what is a vote's job/function, how will it be used in the system? | |
o String identifier | |
o String voteID | |
--> Person voter // <Person> should be <Entity>. Needs to be abstract to accomodate individual citizens, NGOs, gov'ts, and smart contracts. | |
--> Person proxy optional // Someone who has been authorized to cast vote on original voter's behalf | |
o String voteValue // What the actual vote is. maybe bytes or raw data instead? | |
o String election optional // Explicitly define which election vote can be used in | |
o Boolean isPrivate optional | |
o Boolean isVoid optional | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Agree result is better than value, that will be updated.
isVoid
means that the votes can't be used to calculate a decision anymore which could have many use cases - a cancelled election, that particular vote is found to be fraudulent, if you want to give everyone a chance to cast a vote to gather data but don't want everyone's vote to count towards the actual result, etc.