Versions in this module Expand all Collapse all v0 v0.0.1 Sep 25, 2024 Changes in this version + const QueryVotepoolMaxRetryTimes + const ValidatorsCapacity + const VotePoolQueryRetryInterval + func AggregateSignatureAndValidatorBitSet(votes []*model.Vote, validators interface{}) ([]byte, *bitset.BitSet, error) + func DtoToEntity(v *model.Vote) (*votepool.Vote, error) + func EntityToDto(from *votepool.Vote, channelId uint8, sequence uint64, payload []byte, ...) *model.Vote + func VerifySignature(vote *votepool.Vote, eventHash []byte) error + type BSCVoteProcessor struct + func NewBSCVoteProcessor(cfg *config.Config, dao *dao.DaoManager, signer *VoteSigner, ...) *BSCVoteProcessor + func (p *BSCVoteProcessor) CollectVotesLoop() + func (p *BSCVoteProcessor) SignAndBroadcastVoteLoop() + type GreenfieldVoteProcessor struct + func NewGreenfieldVoteProcessor(cfg *config.Config, dao *dao.DaoManager, signer *VoteSigner, ...) *GreenfieldVoteProcessor + func (p *GreenfieldVoteProcessor) CollectVotesLoop() + func (p *GreenfieldVoteProcessor) SignAndBroadcastLoop() + type VoteSigner struct + func NewVoteSigner(pk []byte) *VoteSigner + func (signer *VoteSigner) SignVote(vote *votepool.Vote)