go-dvote/types/types.go
types/types.goRaw
1package types
2
3import (
4 "time"
5)
6
7type Ballot struct {
8 Type string
9 PID string
10 Nullifier []byte
11 Vote []byte
12 Franchise []byte
13}
14
15type Envelope struct {
16 Type string
17 Nonce uint64
18 KeyProof []byte
19 Ballot []byte
20 Timestamp time.Time
21}
22
23type Batch struct {
24 Type string
25 Nullifiers []string
26 URL string
27 TXID string
28 Nonce []byte
29 Signature string
30}
31