Documentation ¶
Index ¶
- type KeyKeeper
- func (k *KeyKeeper) Commit(height int64)
- func (k *KeyKeeper) OnCancel(pid []byte)
- func (k *KeyKeeper) OnProcess(pid, eid []byte, censusRoot, censusURI string)
- func (k *KeyKeeper) OnProcessKeys(pid []byte, pub, com string)
- func (k *KeyKeeper) OnProcessStatusChange(pid []byte, status models.ProcessStatus)
- func (k *KeyKeeper) OnRevealKeys(pid []byte, priv, rev string)
- func (k *KeyKeeper) OnVote(v *models.Vote)
- func (k *KeyKeeper) PrintInfo(wait time.Duration)
- func (k *KeyKeeper) RevealUnpublished()
- func (k *KeyKeeper) Rollback()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyKeeper ¶
type KeyKeeper struct {
// contains filtered or unexported fields
}
func NewKeyKeeper ¶
func (*KeyKeeper) OnCancel ¶
OnCancel will publish the private and reveal keys of the canceled process, if required
func (*KeyKeeper) OnProcess ¶
OnProcess creates the keys and add them to the pool queue, if the process requires it
func (*KeyKeeper) OnProcessKeys ¶
func (*KeyKeeper) OnProcessStatusChange ¶
func (k *KeyKeeper) OnProcessStatusChange(pid []byte, status models.ProcessStatus)
OnProcessStatusChange will publish the private and reveal keys of the ended process, if required
func (*KeyKeeper) OnRevealKeys ¶
func (*KeyKeeper) RevealUnpublished ¶
func (k *KeyKeeper) RevealUnpublished()
RevealUnpublished is a rescue function for revealing keys that should be already revealed. It should be callend once the Vochain is syncronized in order to have the correct height.
Click to show internal directories.
Click to hide internal directories.