msgs

package
v0.0.0-...-f661f07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2013 License: MIT Imports: 3 Imported by: 6

Documentation

Index

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) GetE

func (m *PublicKey) GetE() int64

func (*PublicKey) GetN

func (m *PublicKey) GetN() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

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 (m *Server) GetAddress() string

func (*Server) GetKey

func (m *Server) GetKey() *PublicKey

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) String

func (m *Server) String() string

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) GetBallot

func (m *Vote) GetBallot() []byte

func (*Vote) GetBallotSignature

func (m *Vote) GetBallotSignature() []byte

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) String

func (m *Vote) String() string

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) GetKey

func (m *Voter) GetKey() *PublicKey

func (*Voter) GetName

func (m *Voter) GetName() string

func (*Voter) GetSignature

func (m *Voter) GetSignature() []byte

func (*Voter) ProtoMessage

func (*Voter) ProtoMessage()

func (*Voter) Reset

func (m *Voter) Reset()

func (*Voter) String

func (m *Voter) String() string

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) GetBallot

func (m *VoterData) GetBallot() []byte

func (*VoterData) GetBlindedBallotSignature

func (m *VoterData) GetBlindedBallotSignature() []byte

func (*VoterData) GetBlindingFactor

func (m *VoterData) GetBlindingFactor() []byte

func (*VoterData) GetElectionConfig

func (m *VoterData) GetElectionConfig() []byte

func (*VoterData) GetKey

func (m *VoterData) GetKey() *PrivateKey

func (*VoterData) GetKeySignature

func (m *VoterData) GetKeySignature() []byte

func (*VoterData) GetName

func (m *VoterData) GetName() string

func (*VoterData) GetVoteResponse

func (m *VoterData) GetVoteResponse() *VoteResponse

func (*VoterData) ProtoMessage

func (*VoterData) ProtoMessage()

func (*VoterData) Reset

func (m *VoterData) Reset()

func (*VoterData) String

func (m *VoterData) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL