-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adding AddPoints and ReconstructReply to the models.json
- Loading branch information
Showing
3 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package evoting | ||
|
||
import ( | ||
"go.dedis.ch/cothority/v3/skipchain" | ||
"go.dedis.ch/kyber/v3" | ||
) | ||
|
||
// PROTOSTART | ||
// package evoting_api; | ||
// type :skipchain.SkipBlockID:bytes | ||
// type :kyber.Point:bytes | ||
// | ||
// option java_package = "ch.epfl.dedis.lib.proto"; | ||
// option java_outer_classname = "EvotingAPI"; | ||
|
||
// Reconstruct message. | ||
type Reconstruct struct { | ||
// ID of the election skipchain. | ||
ID skipchain.SkipBlockID | ||
} | ||
|
||
// ReconstructReply message. | ||
type ReconstructReply struct { | ||
// Points are the decrypted plaintexts. | ||
Points []kyber.Point | ||
// Eventual additional points - only if more than 9 candidates | ||
AdditionalPoints []AddPoints | ||
} | ||
|
||
type AddPoints struct { | ||
// The additional Points | ||
AdditionalPoints []kyber.Point | ||
} | ||
|
||
// Ping message. | ||
type Ping struct { | ||
// Nonce can be any integer. | ||
Nonce uint32 | ||
} |
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
Oops, something went wrong.