FreieWahl.Voting.Registrations
Stores challenges required for authenticating registration requests to the tokenstore application
deletes the challenge for a given registration id (e.g. when a registration is denied)
the future of this operation
Name | Type | Description |
---|---|---|
registrationId | System.String | the registration id |
deletes all open challenges for a voting (e.g. when the voting is deleted)
the future of this operation
Name | Type | Description |
---|---|---|
votingId | System.String | the id of a voting |
gets the challenge for a given registration
the challenge for the registration with the given id
Name | Type | Description |
---|---|---|
registrationId | System.String | the registration id |
stores a given challenge
the future of this operation
Name | Type | Description |
---|---|---|
challenge | FreieWahl.Voting.Registrations.Challenge | a challenge |
FreieWahl.Voting.Registrations
stores all open and completed registrations.
adds a completed registration
the future of this operation
Name | Type | Description |
---|---|---|
completedRegistration | FreieWahl.Voting.Registrations.CompletedRegistration | the completed registration (granted or denied) |
adds an open registration
the future of this registration
Name | Type | Description |
---|---|---|
openRegistration | FreieWahl.Voting.Registrations.OpenRegistration | the open registration |
gets all completed registrations for a given voting id
a list of completed registrations (denied or granted)
Name | Type | Description |
---|---|---|
votingId | System.String | the voting id |
gets a single open registration
the registration with the given id
Name | Type | Description |
---|---|---|
registrationStoreId | System.String | the registration id |
gets all open registrations for a given voting
a list of open registrations
Name | Type | Description |
---|---|---|
votingId | System.String | the voting id |
checks if someone with the given signee id has already registered for a given voting id - required to avoid double registrations
true, if there is no registration for the given signee id and voting id
Name | Type | Description |
---|---|---|
dataSigneeId | System.String | the signee id of the voter (e.g. mobile phone number or buergerkarten-number) |
votingId | System.String | the voting id |
removes an open registration
the future of this operation
Name | Type | Description |
---|---|---|
id | System.String | the registration id |
FreieWahl.Voting.Storage
stores votes (i.e. voting results) in a block chain like data structure
gets the last vote for a given voting with for the question with the given index
the last vote for the voting with the given id for the question with the given index
Name | Type | Description |
---|---|---|
votingId | System.String | the voting id |
questionIndex | System.Int32 | the question index |
gets all votes for a given voting id
a list for all votes for all questions with the given voting id
Name | Type | Description |
---|---|---|
votingId | System.String | the voting id |
gets all votes for a given voting id and question index
a list for all votes for a given question in the voting with the given id
Name | Type | Description |
---|---|---|
votingId | System.String | the voting id |
questionIndex | System.Int32 | the index of a question |
stores a vote
the future of this operation
Name | Type | Description |
---|---|---|
v | FreieWahl.Voting.Models.Vote | the vote that should be stored |
getBlockSignature | System.Func{FreieWahl.Voting.Models.Vote,System.String} | callback for getting the signature for a block |
getGenesisSignature | System.Func{System.Threading.Tasks.Task{System.String}} | callback for generating the genesis block signature |
FreieWahl.Voting.Storage
Stores votings and handles CRUD-operations for votings and question within these votings