Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) FindProposers() (<-chan peer.AddrInfo, error)
- func (m *Manager) GetBallotMaps() map[subject.HashHex]ba.Map
- func (m *Manager) GetBallotSet(subjectHashHex *subject.HashHex) ([]*ba.Ballot, error)
- func (m *Manager) GetCollectedSubjects() subject.Map
- func (m *Manager) GetCreatedSubjects() subject.Map
- func (m *Manager) GetIdentityIndex() map[subject.HashHex][]id.Identity
- func (m *Manager) GetIdentityPath(subjectHashHex string, identityCommitmentHex string) ([]string, []int, string, error)
- func (m *Manager) GetIdentitySet(subjectHash *subject.Hash) ([]id.Identity, error)
- func (m *Manager) GetJoinedSubjectTitles() []string
- func (m *Manager) GetProvider(key peer.ID) string
- func (m *Manager) GetProviders() map[peer.ID]string
- func (m *Manager) GetSubjectList() ([]*subject.Subject, error)
- func (m *Manager) GetVoterIdentities() map[subject.HashHex][]*id.IdPathElement
- func (m *Manager) InsertIdentity(subjectHashHex string, identityCommitmentHex string) error
- func (m *Manager) Join(subjectHashHex string, identityCommitmentHex string) error
- func (m *Manager) Open(subjectHashHex string) (int, int)
- func (m *Manager) OverwriteIds(subjectHashHex string, identitySet []string) error
- func (m *Manager) Propose(title string, description string, identityCommitmentHex string) error
- func (m *Manager) SetProvider(key peer.ID, value string)
- func (m *Manager) SyncBallots(subjHex subject.HashHex) (chan bool, error)
- func (m *Manager) SyncIdentities(subjHex subject.HashHex) (chan bool, error)
- func (m *Manager) SyncSubjects()
- func (m *Manager) Vote(subjectHashHex string, proof string) error
Constants ¶
View Source
const KEY_SUBJECTS = "subjects"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { *localContext.Context // contains filtered or unexported fields }
Manager ...
func NewManager ¶
func NewManager( pubsub *pubsub.PubSub, dht *dht.IpfsDHT, lc *localContext.Context, zkVerificationKey string, ) (*Manager, error)
NewManager ...
func (*Manager) FindProposers ¶
FindProposers ...
func (*Manager) GetBallotMaps ¶
GetBallotMaps ...
func (*Manager) GetBallotSet ¶
GetBallotSet ...
func (*Manager) GetCollectedSubjects ¶
GetCollectedSubjects ...
func (*Manager) GetCreatedSubjects ¶
GetCreatedSubjects ...
func (*Manager) GetIdentityIndex ¶
GetIdentityIndex ...
func (*Manager) GetIdentityPath ¶
func (m *Manager) GetIdentityPath( subjectHashHex string, identityCommitmentHex string) ( []string, []int, string, error)
GetIdentityPath . return intermediate values and merkle root in hex string
func (*Manager) GetIdentitySet ¶
GetIdentitySet ...
func (*Manager) GetJoinedSubjectTitles ¶
GetJoinedSubjectTitles ...
func (*Manager) GetVoterIdentities ¶
func (m *Manager) GetVoterIdentities() map[subject.HashHex][]*id.IdPathElement
CLI Debugger
GetVoterIdentities ...
func (*Manager) InsertIdentity ¶
InsertIdentity ...
func (*Manager) OverwriteIds ¶
OverwriteIds ...
func (*Manager) SetProvider ¶
SetProvider ...
func (*Manager) SyncBallots ¶
SyncBallot ...
func (*Manager) SyncIdentities ¶
TODO: move to voter.go SyncIdentity ...
Click to show internal directories.
Click to hide internal directories.