mirror of
https://github.com/saymrwulf/swisspost-evoting-go-poc.git
synced 2026-05-14 20:58:03 +00:00
Proof-of-concept reimplementation of the Swiss Post e-voting cryptographic protocol in Go. Single binary, 52 source files, 2 dependencies. Covers ElGamal encryption, Bayer-Groth verifiable shuffles, zero-knowledge proofs, return codes, and a full election ceremony demo.
20 lines
420 B
Go
20 lines
420 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var tallyCmd = &cobra.Command{
|
|
Use: "tally",
|
|
Short: "Run the tally phase (requires voted artifacts)",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("Tally subcommand: use 'evote demo' for the full ceremony.")
|
|
fmt.Println("Standalone tally requires loading voted artifacts from JSON.")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(tallyCmd)
|
|
}
|