Documentation
¶
Index ¶
- type BallotEntry
- type ElectionConfig
- func (m *ElectionConfig) GetBallotDescription() string
- func (m *ElectionConfig) GetBallotServer() *Server
- func (m *ElectionConfig) GetFinalSignatureRequestSetServer() *Server
- func (m *ElectionConfig) GetFinalVoteSetServer() *Server
- func (m *ElectionConfig) GetVoteServer() *Server
- func (m *ElectionConfig) GetVoterListServer() *Server
- func (m *ElectionConfig) GetVoters() []*Voter
- func (*ElectionConfig) ProtoMessage()
- func (m *ElectionConfig) Reset()
- func (m *ElectionConfig) String() string
- type ObserverData
- func (m *ObserverData) GetBallot() []byte
- func (m *ObserverData) GetBlindedBallotSignature() []byte
- func (m *ObserverData) GetBlindingFactor() []byte
- func (m *ObserverData) GetElectionConfig() []byte
- func (m *ObserverData) GetKeySignature() []byte
- func (m *ObserverData) GetVoteResponses() []*VoteResponse
- func (m *ObserverData) GetVotes() []*Vote
- func (*ObserverData) ProtoMessage()
- func (m *ObserverData) Reset()
- func (m *ObserverData) String() string
- type PrivateKey
- type PublicKey
- type Server
- type SignatureRequest
- func (m *SignatureRequest) GetBlindedBallot() []byte
- func (m *SignatureRequest) GetKeySignature() []byte
- func (m *SignatureRequest) GetVoterPublicKey() *PublicKey
- func (m *SignatureRequest) GetVoterSignature() []byte
- func (*SignatureRequest) ProtoMessage()
- func (m *SignatureRequest) Reset()
- func (m *SignatureRequest) String() string
- type SignatureResponse
- type Vote
- type VoteResponse
- type Voter
- type VoterData
- func (m *VoterData) GetBallot() []byte
- func (m *VoterData) GetBlindedBallotSignature() []byte
- func (m *VoterData) GetBlindingFactor() []byte
- func (m *VoterData) GetElectionConfig() []byte
- func (m *VoterData) GetKey() *PrivateKey
- func (m *VoterData) GetKeySignature() []byte
- func (m *VoterData) GetName() string
- func (m *VoterData) GetVoteResponse() *VoteResponse
- func (*VoterData) ProtoMessage()
- func (m *VoterData) Reset()
- func (m *VoterData) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BallotEntry ¶
type BallotEntry struct { Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Ballot []byte `protobuf:"bytes,2,opt,name=ballot" json:"ballot,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BallotEntry) GetBallot ¶
func (m *BallotEntry) GetBallot() []byte
func (*BallotEntry) GetId ¶
func (m *BallotEntry) GetId() uint64
func (*BallotEntry) ProtoMessage ¶
func (*BallotEntry) ProtoMessage()
func (*BallotEntry) Reset ¶
func (m *BallotEntry) Reset()
func (*BallotEntry) String ¶
func (m *BallotEntry) String() string
type ElectionConfig ¶
type ElectionConfig struct { VoterListServer *Server `protobuf:"bytes,1,opt,name=voterListServer" json:"voterListServer,omitempty"` BallotServer *Server `protobuf:"bytes,2,opt,name=ballotServer" json:"ballotServer,omitempty"` VoteServer *Server `protobuf:"bytes,3,opt,name=voteServer" json:"voteServer,omitempty"` FinalVoteSetServer *Server `protobuf:"bytes,4,opt,name=finalVoteSetServer" json:"finalVoteSetServer,omitempty"` FinalSignatureRequestSetServer *Server `protobuf:"bytes,5,opt,name=finalSignatureRequestSetServer" json:"finalSignatureRequestSetServer,omitempty"` Voters []*Voter `protobuf:"bytes,6,rep,name=voters" json:"voters,omitempty"` BallotDescription *string `protobuf:"bytes,7,opt,name=ballotDescription" json:"ballotDescription,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ElectionConfig) GetBallotDescription ¶
func (m *ElectionConfig) GetBallotDescription() string
func (*ElectionConfig) GetBallotServer ¶
func (m *ElectionConfig) GetBallotServer() *Server
func (*ElectionConfig) GetFinalSignatureRequestSetServer ¶
func (m *ElectionConfig) GetFinalSignatureRequestSetServer() *Server
func (*ElectionConfig) GetFinalVoteSetServer ¶
func (m *ElectionConfig) GetFinalVoteSetServer() *Server
func (*ElectionConfig) GetVoteServer ¶
func (m *ElectionConfig) GetVoteServer() *Server
func (*ElectionConfig) GetVoterListServer ¶
func (m *ElectionConfig) GetVoterListServer() *Server
func (*ElectionConfig) GetVoters ¶
func (m *ElectionConfig) GetVoters() []*Voter
func (*ElectionConfig) ProtoMessage ¶
func (*ElectionConfig) ProtoMessage()
func (*ElectionConfig) Reset ¶
func (m *ElectionConfig) Reset()
func (*ElectionConfig) String ¶
func (m *ElectionConfig) String() string
type ObserverData ¶
type ObserverData struct { ElectionConfig []byte `protobuf:"bytes,2,opt" json:"ElectionConfig,omitempty"` KeySignature []byte `protobuf:"bytes,3,opt,name=keySignature" json:"keySignature,omitempty"` Ballot []byte `protobuf:"bytes,4,opt,name=ballot" json:"ballot,omitempty"` BlindingFactor []byte `protobuf:"bytes,5,opt,name=blindingFactor" json:"blindingFactor,omitempty"` BlindedBallotSignature []byte `protobuf:"bytes,6,opt,name=blindedBallotSignature" json:"blindedBallotSignature,omitempty"` Votes []*Vote `protobuf:"bytes,8,rep,name=votes" json:"votes,omitempty"` VoteResponses []*VoteResponse `protobuf:"bytes,7,rep,name=voteResponses" json:"voteResponses,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ObserverData) GetBallot ¶
func (m *ObserverData) GetBallot() []byte
func (*ObserverData) GetBlindedBallotSignature ¶
func (m *ObserverData) GetBlindedBallotSignature() []byte
func (*ObserverData) GetBlindingFactor ¶
func (m *ObserverData) GetBlindingFactor() []byte
func (*ObserverData) GetElectionConfig ¶
func (m *ObserverData) GetElectionConfig() []byte
func (*ObserverData) GetKeySignature ¶
func (m *ObserverData) GetKeySignature() []byte
func (*ObserverData) GetVoteResponses ¶
func (m *ObserverData) GetVoteResponses() []*VoteResponse
func (*ObserverData) GetVotes ¶
func (m *ObserverData) GetVotes() []*Vote
func (*ObserverData) ProtoMessage ¶
func (*ObserverData) ProtoMessage()
func (*ObserverData) Reset ¶
func (m *ObserverData) Reset()
func (*ObserverData) String ¶
func (m *ObserverData) String() string
type PrivateKey ¶
type PrivateKey struct { PublicKey *PublicKey `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"` D []byte `protobuf:"bytes,2,opt" json:"D,omitempty"` Primes [][]byte `protobuf:"bytes,3,rep,name=primes" json:"primes,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PrivateKey) GetD ¶
func (m *PrivateKey) GetD() []byte
func (*PrivateKey) GetPrimes ¶
func (m *PrivateKey) GetPrimes() [][]byte
func (*PrivateKey) GetPublicKey ¶
func (m *PrivateKey) GetPublicKey() *PublicKey
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) Reset ¶
func (m *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (m *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { N []byte `protobuf:"bytes,1,opt" json:"N,omitempty"` E *int64 `protobuf:"varint,2,opt" json:"E,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
type Server ¶
type Server struct { Address *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Key *PublicKey `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Server) GetAddress ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
type SignatureRequest ¶
type SignatureRequest struct { VoterPublicKey *PublicKey `protobuf:"bytes,1,opt,name=voterPublicKey" json:"voterPublicKey,omitempty"` BlindedBallot []byte `protobuf:"bytes,2,opt,name=blindedBallot" json:"blindedBallot,omitempty"` VoterSignature []byte `protobuf:"bytes,3,opt,name=voterSignature" json:"voterSignature,omitempty"` KeySignature []byte `protobuf:"bytes,4,opt,name=keySignature" json:"keySignature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SignatureRequest) GetBlindedBallot ¶
func (m *SignatureRequest) GetBlindedBallot() []byte
func (*SignatureRequest) GetKeySignature ¶
func (m *SignatureRequest) GetKeySignature() []byte
func (*SignatureRequest) GetVoterPublicKey ¶
func (m *SignatureRequest) GetVoterPublicKey() *PublicKey
func (*SignatureRequest) GetVoterSignature ¶
func (m *SignatureRequest) GetVoterSignature() []byte
func (*SignatureRequest) ProtoMessage ¶
func (*SignatureRequest) ProtoMessage()
func (*SignatureRequest) Reset ¶
func (m *SignatureRequest) Reset()
func (*SignatureRequest) String ¶
func (m *SignatureRequest) String() string
type SignatureResponse ¶
type SignatureResponse struct { Request *SignatureRequest `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"` BlindedBallotSignature []byte `protobuf:"bytes,2,opt,name=blindedBallotSignature" json:"blindedBallotSignature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SignatureResponse) GetBlindedBallotSignature ¶
func (m *SignatureResponse) GetBlindedBallotSignature() []byte
func (*SignatureResponse) GetRequest ¶
func (m *SignatureResponse) GetRequest() *SignatureRequest
func (*SignatureResponse) ProtoMessage ¶
func (*SignatureResponse) ProtoMessage()
func (*SignatureResponse) Reset ¶
func (m *SignatureResponse) Reset()
func (*SignatureResponse) String ¶
func (m *SignatureResponse) String() string
type Vote ¶
type Vote struct { Ballot []byte `protobuf:"bytes,1,opt,name=ballot" json:"ballot,omitempty"` BallotSignature []byte `protobuf:"bytes,2,opt,name=ballotSignature" json:"ballotSignature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Vote) GetBallotSignature ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
type VoteResponse ¶
type VoteResponse struct { BallotEntry []byte `protobuf:"bytes,1,opt,name=ballotEntry" json:"ballotEntry,omitempty"` BallotEntrySignature []byte `protobuf:"bytes,2,opt,name=ballotEntrySignature" json:"ballotEntrySignature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*VoteResponse) GetBallotEntry ¶
func (m *VoteResponse) GetBallotEntry() []byte
func (*VoteResponse) GetBallotEntrySignature ¶
func (m *VoteResponse) GetBallotEntrySignature() []byte
func (*VoteResponse) ProtoMessage ¶
func (*VoteResponse) ProtoMessage()
func (*VoteResponse) Reset ¶
func (m *VoteResponse) Reset()
func (*VoteResponse) String ¶
func (m *VoteResponse) String() string
type Voter ¶
type Voter struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Key *PublicKey `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Voter) GetSignature ¶
func (*Voter) ProtoMessage ¶
func (*Voter) ProtoMessage()
type VoterData ¶
type VoterData struct { Name *string `protobuf:"bytes,8,opt,name=name" json:"name,omitempty"` Key *PrivateKey `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` ElectionConfig []byte `protobuf:"bytes,2,opt" json:"ElectionConfig,omitempty"` KeySignature []byte `protobuf:"bytes,3,opt,name=keySignature" json:"keySignature,omitempty"` Ballot []byte `protobuf:"bytes,4,opt,name=ballot" json:"ballot,omitempty"` BlindingFactor []byte `protobuf:"bytes,5,opt,name=blindingFactor" json:"blindingFactor,omitempty"` BlindedBallotSignature []byte `protobuf:"bytes,6,opt,name=blindedBallotSignature" json:"blindedBallotSignature,omitempty"` VoteResponse *VoteResponse `protobuf:"bytes,7,opt,name=voteResponse" json:"voteResponse,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*VoterData) GetBlindedBallotSignature ¶
func (*VoterData) GetBlindingFactor ¶
func (*VoterData) GetElectionConfig ¶
func (*VoterData) GetKey ¶
func (m *VoterData) GetKey() *PrivateKey
func (*VoterData) GetKeySignature ¶
func (*VoterData) GetVoteResponse ¶
func (m *VoterData) GetVoteResponse() *VoteResponse
func (*VoterData) ProtoMessage ¶
func (*VoterData) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.