Versions in this module Expand all Collapse all v0 v0.14.0-dev.8 May 20, 2024 v0.14.0-dev.7 May 17, 2024 v0.14.0-dev.6 Apr 22, 2024 v0.14.0-dev.5 Mar 27, 2024 v0.14.0-dev.4 Mar 13, 2024 v0.14.0-dev.3 Mar 7, 2024 v0.14.0-dev.2 Jan 31, 2024 v0.14.0-dev.1 Dec 18, 2023 v0.13.4 Dec 11, 2023 v0.13.3 Oct 16, 2023 v0.13.2 Oct 9, 2023 v0.13.1 Sep 14, 2023 v0.13.0 Sep 13, 2023 Changes in this version + const ABCIEvidenceTypeDuplicateVote + const ABCIEvidenceTypeLunatic + const ABCIEvidenceTypeMock + const ABCIEvidenceTypePhantom + const ABCIEvidenceTypePotentialAmnesia + const ABCIPubKeyTypeBLS12381 + const ABCIPubKeyTypeEd25519 + const ABCIPubKeyTypeSecp256k1 + const BlockHeightKey + const BlockPartSizeBytes + const DashCoreRPCClient + const DefaultDashVotingPower + const EmptyNetAddress + const ErrorMockSignerClient + const EventBlockSyncStatusValue + const EventCommitValue + const EventCompleteProposalValue + const EventEvidenceValidatedValue + const EventLockValue + const EventNewBlockHeaderValue + const EventNewBlockValue + const EventNewEvidenceValue + const EventNewRoundStepValue + const EventNewRoundValue + const EventPolkaValue + const EventRelockValue + const EventStateSyncStatusValue + const EventTimeoutProposeValue + const EventTimeoutWaitValue + const EventTxValue + const EventTypeKey + const EventValidBlockValue + const EventValidatorSetUpdateValue + const EventVoteValue + const FileSignerClient + const MaxBlockPartsCount + const MaxBlockSizeBytes + const MaxChainIDLen + const MaxCommitOverheadBytes + const MaxCoreChainLockSize + const MaxHeaderBytes + const MaxOverheadForBlock + const MaxTotalVotingPower + const MaxVoteBytesBLS12381 + const MaxVoteBytesEd25519 + const MaxVotesCount + const MockSignerClient + const NodeIDByteLength + const PriorityWindowSizeFactor + const RetrySignerClient + const SignatureSize + const SignerGRPCClient + const SignerSocketClient + const StateIDVersion + const TimeFormat + const TxHashKey + const TxHeightKey + var ABCIPubKeyTypesToNames = map[string]string + var ErrInvalidBlockPartHash = errors.New("error invalid block part hash") + var ErrInvalidBlockPartSignature = errors.New("error invalid block part signature") + var ErrNoHostname = errors.New("no hostname") + var ErrNoPort = errors.New("no port") + var ErrPartSetInvalidProof = errors.New("error part set invalid proof") + var ErrPartSetUnexpectedIndex = errors.New("error part set unexpected index") + var ErrTotalVotingPowerOverflow = fmt.Errorf("total voting power of resulting valset exceeds max %d", MaxTotalVotingPower) + var ErrTxInCache = errors.New("tx already exists in cache") + var ErrValidatorSetNilOrEmpty = errors.New("validator set is nil or empty") + var ErrVoteInvalidBlockHash = errors.New("invalid block hash") + var ErrVoteInvalidBlockSignature = errors.New("invalid block signature") + var ErrVoteInvalidExtension = errors.New("invalid vote extension") + var ErrVoteInvalidSignature = errors.New("invalid signature") + var ErrVoteInvalidStateSignature = errors.New("invalid state signature") + var ErrVoteInvalidValidatorAddress = errors.New("invalid validator address") + var ErrVoteInvalidValidatorIndex = errors.New("invalid validator index") + var ErrVoteInvalidValidatorProTxHash = errors.New("invalid validator pro_tx_hash") + var ErrVoteInvalidValidatorPubKeySize = errors.New("invalid validator public key size") + var ErrVoteNil = errors.New("nil vote") + var ErrVoteNonDeterministicSignature = errors.New("non-deterministic signature") + var ErrVoteStateSignatureShouldBeNil = errors.New("state signature when voting for nil block") + var ErrVoteUnexpectedStep = errors.New("unexpected step") + var ErroringMockPVErr = errors.New("erroringMockPV always returns an error") + var EventNewBlock = abci.Event + var EventNewBlockHeader = abci.Event + var EventNewEvidence = abci.Event + var EventQueryBlockSyncStatus = QueryForEvent(EventBlockSyncStatusValue) + var EventQueryCompleteProposal = QueryForEvent(EventCompleteProposalValue) + var EventQueryEvidenceValidated = QueryForEvent(EventEvidenceValidatedValue) + var EventQueryLock = QueryForEvent(EventLockValue) + var EventQueryNewBlock = QueryForEvent(EventNewBlockValue) + var EventQueryNewBlockHeader = QueryForEvent(EventNewBlockHeaderValue) + var EventQueryNewEvidence = QueryForEvent(EventNewEvidenceValue) + var EventQueryNewRound = QueryForEvent(EventNewRoundValue) + var EventQueryNewRoundStep = QueryForEvent(EventNewRoundStepValue) + var EventQueryPolka = QueryForEvent(EventPolkaValue) + var EventQueryRelock = QueryForEvent(EventRelockValue) + var EventQueryStateSyncStatus = QueryForEvent(EventStateSyncStatusValue) + var EventQueryTimeoutPropose = QueryForEvent(EventTimeoutProposeValue) + var EventQueryTimeoutWait = QueryForEvent(EventTimeoutWaitValue) + var EventQueryTx = QueryForEvent(EventTxValue) + var EventQueryValidBlock = QueryForEvent(EventValidBlockValue) + var EventQueryValidatorSetUpdates = QueryForEvent(EventValidatorSetUpdateValue) + var EventQueryVote = QueryForEvent(EventVoteValue) + var EventTx = abci.Event + var PB2TM = pb2tm + var TM2PB = tm2pb + var VoteExtensionTypes = []tmproto.VoteExtensionType + func BlockRequestID(height int64, round int32) []byte + func CanonicalTime(t time.Time) string + func CanonicalizeProposal(chainID string, proposal *tmproto.Proposal) tmproto.CanonicalProposal + func CanonicalizeVoteExtension(chainID string, ext *tmproto.VoteExtension, height int64, round int32) tmproto.CanonicalVoteExtension + func ComputeProtoSizeForTxs(txs []Tx) int64 + func EventQueryTxFor(tx Tx) *tmquery.Query + func EvidenceToProto(evidence Evidence) (*tmproto.Evidence, error) + func GenKeysForQuorumHash(quorumHash crypto.QuorumHash) func(pv *MockPV) + func GenerateValidatorSet(valParams []ValSetParam, opts ...ValSetOptionFunc) (*ValidatorSet, []PrivValidator) + func IsErrNotEnoughVotingPowerSigned(err error) bool + func IsPreCheckError(err error) bool + func IsVoteTypeValid(t tmproto.SignedMsgType) bool + func MakeSignID(msgHash, reqID []byte, quorumType btcjson.LLMQType, quorumHash []byte) []byte + func MakeVoteExtensionSignItems(chainID string, protoVote *types.Vote, quorumType btcjson.LLMQType, ...) (map[types.VoteExtensionType][]SignItem, error) + func MaxDataBytes(maxBytes int64, commit *Commit, evidenceBytes int64) (int64, error) + func MaxDataBytesNoEvidence(maxBytes int64) (int64, error) + func MaxNodeInfoSize() int + func MaxVoteBytesForKeyType(keyType crypto.KeyType) int64 + func ProposalBlockSignBytes(chainID string, p *tmproto.Proposal) []byte + func ProposalBlockSignID(chainID string, p *tmproto.Proposal, quorumType btcjson.LLMQType, ...) []byte + func ProposalRequestID(p *Proposal) []byte + func ProposalRequestIDProto(p *tmproto.Proposal) []byte + func QueryForEvent(eventValue string) *tmquery.Query + func RandStateID() tmproto.StateID + func RandValidatorSet(n int) (*ValidatorSet, []PrivValidator) + func ThresholdExtensionSignToProto(extensions []ThresholdExtensionSign) []*tmproto.VoteExtension + func UseProTxHash(proTxHash ProTxHash) func(pv *MockPV) + func ValidateAppHash(h []byte) error + func ValidateHash(h []byte) error + func ValidateSignatureSize(keyType crypto.KeyType, h []byte) error + func ValidatorListString(vals []*Validator) string + func ValidatorUpdatesRegenerateOnProTxHashes(proTxHashes []crypto.ProTxHash) abci.ValidatorSetUpdate + func VoteBlockRequestIDProto(vote *tmproto.Vote) []byte + func VoteBlockSignID(chainID string, vote *tmproto.Vote, quorumType btcjson.LLMQType, ...) []byte + func VoteExtensionRequestID(height int64, round int32) []byte + func VoteExtensionSignBytes(chainID string, height int64, round int32, ext *tmproto.VoteExtension) []byte + func WithLogger(logger log.Logger) func(*QuorumSingsVerifier) + func WithQuorumReached(quorumReached bool) func(*SignsRecoverer) + func WithUpdatePrivValAt(privVals []PrivValidator, height int64) func(opt *ValSetOptions) + func WithVerifyBlock(shouldVerify bool) func(*QuorumSingsVerifier) + func WithVerifyExtensions(shouldVerify bool) func(*QuorumSingsVerifier) + func WithVerifyReachedQuorum(quorumReached bool) func(*QuorumSingsVerifier) + type ABCIParams struct + RecheckTx bool + func DefaultABCIParams() ABCIParams + type Address = crypto.Address + type Block struct + CoreChainLock *CoreChainLock + Evidence EvidenceList + LastCommit *Commit + func BlockFromProto(bp *tmproto.Block) (*Block, error) + func MakeBlock(height int64, txs []Tx, lastCommit *Commit, evidence []Evidence) *Block + func (b *Block) BlockID(partSet *PartSet) BlockID + func (b *Block) Hash() tmbytes.HexBytes + func (b *Block) HashesTo(hash []byte) bool + func (b *Block) MakePartSet(partSize uint32) (*PartSet, error) + func (b *Block) SetCoreChainLock(chainlock *CoreChainLock) + func (b *Block) SetDashParams(lastCoreChainLockedBlockHeight uint32, coreChainLock *CoreChainLock, ...) + func (b *Block) SetTxs(txs []Tx) + func (b *Block) Size() int + func (b *Block) String() string + func (b *Block) StringIndented(indent string) string + func (b *Block) StringShort() string + func (b *Block) ToProto() (*tmproto.Block, error) + func (b *Block) ValidateBasic() error + type BlockEventPublisher interface + PublishEventNewBlock func(EventDataNewBlock) error + PublishEventNewBlockHeader func(EventDataNewBlockHeader) error + PublishEventNewEvidence func(EventDataNewEvidence) error + PublishEventValidatorSetUpdates func(EventDataValidatorSetUpdate) error + type BlockID struct + Hash tmbytes.HexBytes + PartSetHeader PartSetHeader + StateID tmbytes.HexBytes + func BlockIDFromProto(bID *tmproto.BlockID) (*BlockID, error) + func (blockID *BlockID) ToProto() tmproto.BlockID + func (blockID BlockID) Copy() BlockID + func (blockID BlockID) Equals(other BlockID) bool + func (blockID BlockID) IsComplete() bool + func (blockID BlockID) IsNil() bool + func (blockID BlockID) Key() string + func (blockID BlockID) String() string + func (blockID BlockID) ValidateBasic() error + type BlockIDFlag byte + const BlockIDFlagAbsent + const BlockIDFlagCommit + const BlockIDFlagNil + type BlockMeta struct + BlockID BlockID + BlockSize int + HasCoreChainLock bool + Header Header + NumTxs int + Round int32 + func BlockMetaFromProto(pb *tmproto.BlockMeta) (*BlockMeta, error) + func NewBlockMeta(block *Block, blockParts *PartSet, round int32) *BlockMeta + func (bm *BlockMeta) ToProto() *tmproto.BlockMeta + func (bm *BlockMeta) ValidateBasic() error + type BlockParams struct + MaxBytes int64 + MaxGas int64 + func DefaultBlockParams() BlockParams + type Commit struct + BlockID BlockID + Height int64 + QuorumHash crypto.QuorumHash + Round int32 + ThresholdBlockSignature []byte + ThresholdVoteExtensions []ThresholdExtensionSign + func CommitFromProto(cp *tmproto.Commit) (*Commit, error) + func NewCommit(height int64, round int32, blockID BlockID, commitSigns *CommitSigns) *Commit + func (commit *Commit) CanonicalVoteVerifySignBytes(chainID string) []byte + func (commit *Commit) CanonicalVoteVerifySignID(chainID string, quorumType btcjson.LLMQType, quorumHash []byte) []byte + func (commit *Commit) GetCanonicalVote() *Vote + func (commit *Commit) GetHeight() int64 + func (commit *Commit) GetRound() int32 + func (commit *Commit) HasCommitMessage() *tmcons.HasCommit + func (commit *Commit) Hash() tmbytes.HexBytes + func (commit *Commit) IsCommit() bool + func (commit *Commit) MarshalZerologObject(e *zerolog.Event) + func (commit *Commit) String() string + func (commit *Commit) StringIndented(indent string) string + func (commit *Commit) ToCommitInfo() types.CommitInfo + func (commit *Commit) ToProto() *tmproto.Commit + func (commit *Commit) Type() byte + func (commit *Commit) ValidateBasic() error + func (commit *Commit) VoteBlockRequestID() []byte + type CommitSigns struct + QuorumHash []byte + func (c *CommitSigns) CopyToCommit(commit *Commit) + type ConsensusParams struct + ABCI ABCIParams + Block BlockParams + Evidence EvidenceParams + Synchrony SynchronyParams + Timeout TimeoutParams + Validator ValidatorParams + Version VersionParams + func ConsensusParamsFromProto(pbParams tmproto.ConsensusParams) ConsensusParams + func DefaultConsensusParams() *ConsensusParams + func (params *ConsensusParams) Complete() + func (params *ConsensusParams) Equals(params2 *ConsensusParams) bool + func (params *ConsensusParams) ToProto() tmproto.ConsensusParams + func (params ConsensusParams) HashConsensusParams() tmbytes.HexBytes + func (params ConsensusParams) IsZero() bool + func (params ConsensusParams) UpdateConsensusParams(params2 *tmproto.ConsensusParams) ConsensusParams + func (params ConsensusParams) ValidateConsensusParams() error + type CoreChainLock struct + CoreBlockHash []byte + CoreBlockHeight uint32 + Signature []byte + func CoreChainLockFromProto(clp *tmproto.CoreChainLock) (*CoreChainLock, error) + func NewMockChainLock(height uint32) CoreChainLock + func (cl *CoreChainLock) IsZero() bool + func (cl *CoreChainLock) PopulateFromProto(clp *tmproto.CoreChainLock) error + func (cl *CoreChainLock) StringIndented(indent string) string + func (cl *CoreChainLock) ToProto() *tmproto.CoreChainLock + func (cl CoreChainLock) Copy() CoreChainLock + func (cl CoreChainLock) RequestID() []byte + func (cl CoreChainLock) ValidateBasic() error + type Data struct + Txs Txs + func DataFromProto(dp *tmproto.Data) (Data, error) + func (data *Data) Hash() tmbytes.HexBytes + func (data *Data) StringIndented(indent string) string + func (data *Data) ToProto() tmproto.Data + type DuplicateVoteEvidence struct + Timestamp time.Time + TotalVotingPower int64 + ValidatorPower int64 + VoteA *Vote + VoteB *Vote + func DuplicateVoteEvidenceFromProto(pb *tmproto.DuplicateVoteEvidence) (*DuplicateVoteEvidence, error) + func NewDuplicateVoteEvidence(vote1, vote2 *Vote, blockTime time.Time, valSet *ValidatorSet) (*DuplicateVoteEvidence, error) + func NewMockDuplicateVoteEvidence(ctx context.Context, height int64, time time.Time, chainID string, ...) (*DuplicateVoteEvidence, error) + func NewMockDuplicateVoteEvidenceWithPrivValInValidatorSet(height int64, time time.Time, pv PrivValidator, valSet *ValidatorSet, ...) (*DuplicateVoteEvidence, error) + func NewMockDuplicateVoteEvidenceWithValidator(ctx context.Context, height int64, time time.Time, pv PrivValidator, ...) (*DuplicateVoteEvidence, error) + func (*DuplicateVoteEvidence) TypeTag() string + func (dve *DuplicateVoteEvidence) ABCI() []abci.Misbehavior + func (dve *DuplicateVoteEvidence) Bytes() []byte + func (dve *DuplicateVoteEvidence) GenerateABCI(val *Validator, valSet *ValidatorSet, evidenceTime time.Time) + func (dve *DuplicateVoteEvidence) Hash() []byte + func (dve *DuplicateVoteEvidence) Height() int64 + func (dve *DuplicateVoteEvidence) String() string + func (dve *DuplicateVoteEvidence) Time() time.Time + func (dve *DuplicateVoteEvidence) ToProto() *tmproto.DuplicateVoteEvidence + func (dve *DuplicateVoteEvidence) ValidateABCI(val *Validator, valSet *ValidatorSet, evidenceTime time.Time) error + func (dve *DuplicateVoteEvidence) ValidateBasic() error + type ErrEvidenceOverflow struct + Got int64 + Max int64 + func NewErrEvidenceOverflow(max, got int64) *ErrEvidenceOverflow + func (err *ErrEvidenceOverflow) Error() string + type ErrInvalidCommitHeight struct + Actual int64 + Expected int64 + func NewErrInvalidCommitHeight(expected, actual int64) ErrInvalidCommitHeight + func (e ErrInvalidCommitHeight) Error() string + type ErrInvalidEvidence struct + Evidence Evidence + Reason error + func NewErrInvalidEvidence(ev Evidence, err error) *ErrInvalidEvidence + func (err *ErrInvalidEvidence) Error() string + type ErrInvalidVoteSignature error + type ErrMempoolIsFull struct + MaxTxs int + MaxTxsBytes int64 + NumTxs int + TxsBytes int64 + func (e ErrMempoolIsFull) Error() string + type ErrNotEnoughVotingPowerSigned struct + Got int64 + Needed int64 + func (e ErrNotEnoughVotingPowerSigned) Error() string + type ErrPreCheck struct + Reason error + func (e ErrPreCheck) Error() string + type ErrTxTooLarge struct + Actual int + Max int + func (e ErrTxTooLarge) Error() string + type ErrVoteConflictingVotes struct + VoteA *Vote + VoteB *Vote + func NewConflictingVoteError(vote1, vote2 *Vote) *ErrVoteConflictingVotes + func (err *ErrVoteConflictingVotes) Error() string + type ErroringMockPV struct + func NewErroringMockPV() *ErroringMockPV + func (pv *ErroringMockPV) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + func (pv *ErroringMockPV) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) (tmbytes.HexBytes, error) + func (pv *ErroringMockPV) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) error + type EventData interface + type EventDataBlockSyncStatus struct + Complete bool + Height int64 + func (EventDataBlockSyncStatus) TypeTag() string + type EventDataCommit struct + Commit *Commit + func (EventDataCommit) TypeTag() string + type EventDataCompleteProposal struct + BlockID BlockID + Height int64 + Round int32 + Step string + func (EventDataCompleteProposal) TypeTag() string + type EventDataEvidenceValidated struct + Evidence Evidence + Height int64 + func (EventDataEvidenceValidated) TypeTag() string + type EventDataNewBlock struct + Block *Block + BlockID BlockID + ResultFinalizeBlock abci.ResponseFinalizeBlock + func (EventDataNewBlock) TypeTag() string + func (e EventDataNewBlock) ABCIEvents() []abci.Event + type EventDataNewBlockHeader struct + Header Header + NumTxs int64 + ResultFinalizeBlock abci.ResponseFinalizeBlock + ResultProcessProposal abci.ResponseProcessProposal + func (EventDataNewBlockHeader) TypeTag() string + func (e EventDataNewBlockHeader) ABCIEvents() []abci.Event + type EventDataNewEvidence struct + Evidence Evidence + Height int64 + func (EventDataNewEvidence) TypeTag() string + type EventDataNewRound struct + Height int64 + Proposer ValidatorInfo + Round int32 + Step string + func (EventDataNewRound) TypeTag() string + type EventDataRoundState struct + Height int64 + Round int32 + Step string + func (EventDataRoundState) TypeTag() string + type EventDataStateSyncStatus struct + Complete bool + Height int64 + func (EventDataStateSyncStatus) TypeTag() string + type EventDataString string + func (EventDataString) TypeTag() string + type EventDataTx struct + func (EventDataTx) TypeTag() string + func (e EventDataTx) ABCIEvents() []abci.Event + type EventDataValidatorSetUpdate struct + QuorumHash crypto.QuorumHash + ThresholdPublicKey crypto.PubKey + ValidatorSetUpdates []*Validator + func (EventDataValidatorSetUpdate) TypeTag() string + type EventDataVote struct + Vote *Vote + func (EventDataVote) TypeTag() string + type Evidence interface + ABCI func() []abci.Misbehavior + Bytes func() []byte + Hash func() []byte + Height func() int64 + String func() string + Time func() time.Time + ValidateBasic func() error + func EvidenceFromProto(evidence *tmproto.Evidence) (Evidence, error) + type EvidenceList []Evidence + func (evl *EvidenceList) FromProto(eviList *tmproto.EvidenceList) error + func (evl *EvidenceList) ToProto() (*tmproto.EvidenceList, error) + func (evl *EvidenceList) UnmarshalJSON(data []byte) error + func (evl EvidenceList) ByteSize() int64 + func (evl EvidenceList) Has(evidence Evidence) bool + func (evl EvidenceList) Hash() []byte + func (evl EvidenceList) MarshalJSON() ([]byte, error) + func (evl EvidenceList) String() string + func (evl EvidenceList) StringIndented(indent string) string + func (evl EvidenceList) ToABCI() []abci.Misbehavior + type EvidenceParams struct + MaxAgeDuration time.Duration + MaxAgeNumBlocks int64 + MaxBytes int64 + func DefaultEvidenceParams() EvidenceParams + type GenesisDoc struct + AppHash tmbytes.HexBytes + AppState json.RawMessage + ChainID string + ConsensusParams *ConsensusParams + GenesisTime time.Time + InitialCoreChainLockedHeight uint32 + InitialHeight int64 + InitialProposalCoreChainLock *tmproto.CoreChainLock + QuorumHash crypto.QuorumHash + QuorumType btcjson.LLMQType + ThresholdPublicKey crypto.PubKey + Validators []GenesisValidator + func GenesisDocFromFile(genDocFile string) (*GenesisDoc, error) + func GenesisDocFromJSON(jsonBlob []byte) (*GenesisDoc, error) + func (genDoc *GenesisDoc) SaveAs(file string) error + func (genDoc *GenesisDoc) UnmarshalJSON(data []byte) error + func (genDoc *GenesisDoc) ValidateAndComplete() error + func (genDoc *GenesisDoc) ValidatorHash() []byte + func (genDoc GenesisDoc) MarshalJSON() ([]byte, error) + type GenesisValidator struct + Name string + Power int64 + ProTxHash crypto.ProTxHash + PubKey crypto.PubKey + func MakeGenesisValsFromValidatorSet(valz *ValidatorSet) []GenesisValidator + func (g *GenesisValidator) UnmarshalJSON(data []byte) error + func (g GenesisValidator) MarshalJSON() ([]byte, error) + type HashedParams struct + BlockMaxBytes int64 + BlockMaxGas int64 + type Header struct + AppHash tmbytes.HexBytes + ChainID string + ConsensusHash tmbytes.HexBytes + CoreChainLockedHeight uint32 + DataHash tmbytes.HexBytes + EvidenceHash tmbytes.HexBytes + Height int64 + LastBlockID BlockID + LastCommitHash tmbytes.HexBytes + NextConsensusHash tmbytes.HexBytes + NextValidatorsHash tmbytes.HexBytes + ProposedAppVersion uint64 + ProposerProTxHash ProTxHash + ResultsHash tmbytes.HexBytes + Time time.Time + ValidatorsHash tmbytes.HexBytes + Version version.Consensus + func HeaderFromProto(ph *tmproto.Header) (Header, error) + func (h *Header) Hash() tmbytes.HexBytes + func (h *Header) Populate(version version.Consensus, chainID string, timestamp time.Time, ...) + func (h *Header) StateID() tmproto.StateID + func (h *Header) StringIndented(indent string) string + func (h *Header) ToProto() *tmproto.Header + func (h Header) IsTimely(recvTime time.Time, sp SynchronyParams, round int32) bool + func (h Header) ValidateBasic() error + type LightBlock struct + ValidatorSet *ValidatorSet + func LightBlockFromProto(pb *tmproto.LightBlock) (*LightBlock, error) + func (lb *LightBlock) ToProto() (*tmproto.LightBlock, error) + func (lb LightBlock) StateID() tmproto.StateID + func (lb LightBlock) String() string + func (lb LightBlock) StringIndented(indent string) string + func (lb LightBlock) ValidateBasic(chainID string) error + type LightClientInfo struct + LastTrustedHash tbytes.HexBytes + LastTrustedHeight int64 + LatestBlockTime time.Time + NumPeers int + PrimaryID string + TrustedBlockExpired bool + TrustingPeriod string + WitnessesID []string + type MockPV struct + FirstHeightOfQuorums map[string]string + PrivateKeys map[string]crypto.QuorumKeys + ProTxHash crypto.ProTxHash + UpdateHeights map[string]crypto.QuorumHash + func NewMockPV(opts ...func(pv *MockPV)) *MockPV + func NewMockPVForQuorum(quorumHash crypto.QuorumHash) *MockPV + func NewMockPVWithParams(privKey crypto.PrivKey, proTxHash crypto.ProTxHash, ...) *MockPV + func (pv *MockPV) DisableChecks() + func (pv *MockPV) ExtractIntoValidator(ctx context.Context, quorumHash crypto.QuorumHash) *Validator + func (pv *MockPV) GetFirstQuorumHash(ctx context.Context) (crypto.QuorumHash, error) + func (pv *MockPV) GetHeight(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error) + func (pv *MockPV) GetPrivateKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error) + func (pv *MockPV) GetProTxHash(ctx context.Context) (crypto.ProTxHash, error) + func (pv *MockPV) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + func (pv *MockPV) GetThresholdPublicKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + func (pv *MockPV) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) (tmbytes.HexBytes, error) + func (pv *MockPV) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) error + func (pv *MockPV) String() string + func (pv *MockPV) ThresholdPublicKeyForQuorumHash(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + func (pv *MockPV) UpdatePrivateKey(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, ...) + type MockPrivValidatorsByProTxHash []*MockPV + func (pvs MockPrivValidatorsByProTxHash) Len() int + func (pvs MockPrivValidatorsByProTxHash) Less(i, j int) bool + func (pvs MockPrivValidatorsByProTxHash) Swap(i, j int) + type NetAddress struct + ID NodeID + IP net.IP + Port uint16 + func NewNetAddress(id NodeID, addr net.Addr) *NetAddress + func NewNetAddressIPPort(ip net.IP, port uint16) *NetAddress + func ParseAddressString(addr string) (*NetAddress, error) + func (na *NetAddress) Dial() (net.Conn, error) + func (na *NetAddress) DialString() string + func (na *NetAddress) DialTimeout(timeout time.Duration) (net.Conn, error) + func (na *NetAddress) Equals(other interface{}) bool + func (na *NetAddress) Local() bool + func (na *NetAddress) OnionCatTor() bool + func (na *NetAddress) RFC1918() bool + func (na *NetAddress) RFC3849() bool + func (na *NetAddress) RFC3927() bool + func (na *NetAddress) RFC3964() bool + func (na *NetAddress) RFC4193() bool + func (na *NetAddress) RFC4380() bool + func (na *NetAddress) RFC4843() bool + func (na *NetAddress) RFC4862() bool + func (na *NetAddress) RFC6052() bool + func (na *NetAddress) RFC6145() bool + func (na *NetAddress) ReachabilityTo(o *NetAddress) int + func (na *NetAddress) Routable() bool + func (na *NetAddress) Same(other interface{}) bool + func (na *NetAddress) String() string + func (na *NetAddress) Valid() error + type NodeID string + func NewNodeID(nodeID string) (NodeID, error) + func NodeIDFromPubKey(pubKey crypto.PubKey) NodeID + func (id NodeID) AddressString(protocolHostPort string) string + func (id NodeID) Bytes() ([]byte, error) + func (id NodeID) Validate() error + type NodeInfo struct + Channels tmbytes.HexBytes + ListenAddr string + Moniker string + Network string + NodeID NodeID + Other NodeInfoOther + ProTxHash crypto.ProTxHash + ProtocolVersion ProtocolVersion + Version string + func NodeInfoFromProto(pb *tmp2p.NodeInfo) (NodeInfo, error) + func (info *NodeInfo) AddChannel(channel uint16) + func (info NodeInfo) CompatibleWith(other NodeInfo) error + func (info NodeInfo) Copy() NodeInfo + func (info NodeInfo) GetProTxHash() crypto.ProTxHash + func (info NodeInfo) ID() NodeID + func (info NodeInfo) ToProto() *tmp2p.NodeInfo + func (info NodeInfo) Validate() error + type NodeInfoOther struct + RPCAddress string + TxIndex string + type NodeKey struct + ID NodeID + PrivKey crypto.PrivKey + func GenNodeKey() NodeKey + func LoadNodeKey(filePath string) (NodeKey, error) + func LoadOrGenNodeKey(filePath string) (NodeKey, error) + func (nk *NodeKey) UnmarshalJSON(data []byte) error + func (nk NodeKey) MarshalJSON() ([]byte, error) + func (nk NodeKey) PubKey() crypto.PubKey + func (nk NodeKey) SaveAs(filePath string) error + type Part struct + Bytes tmbytes.HexBytes + Index uint32 + Proof merkle.Proof + func PartFromProto(pb *tmproto.Part) (*Part, error) + func (part *Part) MarshalZerologObject(e *zerolog.Event) + func (part *Part) String() string + func (part *Part) StringIndented(indent string) string + func (part *Part) ToProto() (*tmproto.Part, error) + func (part *Part) ValidateBasic() error + type PartSet struct + func NewPartSetFromData(data []byte, partSize uint32) *PartSet + func NewPartSetFromHeader(header PartSetHeader) *PartSet + func (ps *PartSet) AddPart(part *Part) (bool, error) + func (ps *PartSet) BitArray() *bits.BitArray + func (ps *PartSet) ByteSize() int64 + func (ps *PartSet) Count() uint32 + func (ps *PartSet) GetPart(index int) *Part + func (ps *PartSet) GetReader() io.Reader + func (ps *PartSet) HasHeader(header PartSetHeader) bool + func (ps *PartSet) Hash() []byte + func (ps *PartSet) HashesTo(hash []byte) bool + func (ps *PartSet) Header() PartSetHeader + func (ps *PartSet) IsComplete() bool + func (ps *PartSet) MarshalJSON() ([]byte, error) + func (ps *PartSet) StringShort() string + func (ps *PartSet) Total() uint32 + type PartSetHeader struct + Hash tmbytes.HexBytes + Total uint32 + func PartSetHeaderFromProto(ppsh *tmproto.PartSetHeader) (*PartSetHeader, error) + func (psh *PartSetHeader) ToProto() tmproto.PartSetHeader + func (psh PartSetHeader) Equals(other PartSetHeader) bool + func (psh PartSetHeader) IsZero() bool + func (psh PartSetHeader) String() string + func (psh PartSetHeader) ValidateBasic() error + type PartSetReader struct + func NewPartSetReader(parts []*Part) *PartSetReader + func (psr *PartSetReader) Read(p []byte) (n int, err error) + type PrivValidator interface + ExtractIntoValidator func(ctx context.Context, quorumHash crypto.QuorumHash) *Validator + GetFirstQuorumHash func(context.Context) (crypto.QuorumHash, error) + GetHeight func(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error) + GetPrivateKey func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error) + GetProTxHash func(context.Context) (crypto.ProTxHash, error) + GetPubKey func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + GetThresholdPublicKey func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error) + SignProposal func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) (tmbytes.HexBytes, error) + SignVote func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) error + UpdatePrivateKey func(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, ...) + type PrivValidatorType uint8 + type PrivValidatorsByProTxHash []PrivValidator + func (pvs PrivValidatorsByProTxHash) Len() int + func (pvs PrivValidatorsByProTxHash) Less(i, j int) bool + func (pvs PrivValidatorsByProTxHash) Swap(i, j int) + type ProTxHash = crypto.ProTxHash + type Proposal struct + BlockID BlockID + CoreChainLockUpdate *CoreChainLock + CoreChainLockedHeight uint32 + Height int64 + POLRound int32 + Round int32 + Signature []byte + Timestamp time.Time + Type tmproto.SignedMsgType + func NewProposal(height int64, coreChainLockedHeight uint32, round int32, polRound int32, ...) *Proposal + func ProposalFromProto(pp *tmproto.Proposal) (*Proposal, error) + func (p *Proposal) IsTimely(recvTime time.Time, sp SynchronyParams, round int32) bool + func (p *Proposal) MarshalZerologObject(e *zerolog.Event) + func (p *Proposal) SetCoreChainLockUpdate(coreChainLock *CoreChainLock) + func (p *Proposal) String() string + func (p *Proposal) ToProto() *tmproto.Proposal + func (p *Proposal) ValidateBasic() error + type ProtocolVersion struct + App uint64 + Block uint64 + P2P uint64 + type QuorumSignData struct + Block SignItem + Extensions map[types.VoteExtensionType][]SignItem + func MakeQuorumSigns(chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, ...) (QuorumSignData, error) + func MakeQuorumSignsWithVoteSet(voteSet *VoteSet, vote *types.Vote) (QuorumSignData, error) + func (q QuorumSignData) Verify(pubKey crypto.PubKey, signs QuorumSigns) error + type QuorumSigns struct + BlockSign []byte + ExtensionSigns []ThresholdExtensionSign + func NewQuorumSignsFromCommit(commit *Commit) QuorumSigns + type QuorumSingsVerifier struct + func NewQuorumSignsVerifier(quorumData QuorumSignData, opts ...func(*QuorumSingsVerifier)) *QuorumSingsVerifier + func (q *QuorumSingsVerifier) Verify(pubKey crypto.PubKey, signs QuorumSigns) error + type SignItem struct + Hash []byte + ID []byte + Raw []byte + ReqID []byte + func MakeBlockSignItem(chainID string, vote *types.Vote, quorumType btcjson.LLMQType, ...) SignItem + func NewSignItem(quorumType btcjson.LLMQType, quorumHash, reqID, raw []byte) SignItem + func (i *SignItem) Validate() error + func (i SignItem) MarshalZerologObject(e *zerolog.Event) + type SignedHeader struct + Commit *Commit + func SignedHeaderFromProto(shp *tmproto.SignedHeader) (*SignedHeader, error) + func (sh *SignedHeader) ToProto() *tmproto.SignedHeader + func (sh SignedHeader) String() string + func (sh SignedHeader) StringIndented(indent string) string + func (sh SignedHeader) ValidateBasic(chainID string) error + type SignsRecoverer struct + func NewSignsRecoverer(votes []*Vote, opts ...func(*SignsRecoverer)) *SignsRecoverer + func (v *SignsRecoverer) Recover() (*QuorumSigns, error) + type SynchronyParams struct + MessageDelay time.Duration + Precision time.Duration + func DefaultSynchronyParams() SynchronyParams + func (s SynchronyParams) SynchronyParamsOrDefaults() SynchronyParams + type ThresholdExtensionSign struct + Extension []byte + ThresholdSignature []byte + func MakeThresholdExtensionSigns(voteExtensions VoteExtensions) []ThresholdExtensionSign + func MakeThresholdVoteExtensions(extensions []VoteExtension, thresholdSigs [][]byte) []ThresholdExtensionSign + func ThresholdExtensionSignFromProto(protoExtensions []*tmproto.VoteExtension) []ThresholdExtensionSign + type TimeoutParams struct + BypassCommitTimeout bool + Commit time.Duration + Propose time.Duration + ProposeDelta time.Duration + Vote time.Duration + VoteDelta time.Duration + func DefaultTimeoutParams() TimeoutParams + func (t TimeoutParams) CommitTime(ti time.Time) time.Time + func (t TimeoutParams) ProposeTimeout(round int32) time.Duration + func (t TimeoutParams) TimeoutParamsOrDefaults() TimeoutParams + func (t TimeoutParams) VoteTimeout(round int32) time.Duration + type Tx []byte + func (tx Tx) Hash() tmbytes.HexBytes + func (tx Tx) Key() TxKey + func (tx Tx) String() string + type TxEventPublisher interface + PublishEventTx func(EventDataTx) error + type TxKey [sha256.Size]byte + type TxProof struct + Data Tx + Proof merkle.Proof + RootHash tmbytes.HexBytes + func TxProofFromProto(pb tmproto.TxProof) (TxProof, error) + func (tp TxProof) Leaf() []byte + func (tp TxProof) ToProto() tmproto.TxProof + func (tp TxProof) Validate(dataHash []byte) error + type TxRecordSet struct + func NewTxRecordSet(trs []*abci.TxRecord) TxRecordSet + func (t TxRecordSet) IncludedTxs() []Tx + func (t TxRecordSet) RemovedTxs() []Tx + func (t TxRecordSet) Validate(maxSizeBytes int64, otxs Txs) error + type Txs []Tx + func NewTxs(in [][]byte) Txs + func (txs Txs) Hash() []byte + func (txs Txs) Index(tx Tx) int + func (txs Txs) IndexByHash(hash []byte) int + func (txs Txs) Len() int + func (txs Txs) Less(i, j int) bool + func (txs Txs) Proof(i int) TxProof + func (txs Txs) Swap(i, j int) + func (txs Txs) ToSliceOfBytes() [][]byte + type ValSetOptionFunc func(opt *ValSetOptions) + type ValSetOptions struct + PrivValsAtHeight int64 + PrivValsMap map[string]PrivValidator + type ValSetParam struct + ProTxHash ProTxHash + VotingPower int64 + func NewValSetParam(proTxHashes []crypto.ProTxHash) []ValSetParam + type Validator struct + NodeAddress ValidatorAddress + ProTxHash ProTxHash + ProposerPriority int64 + PubKey crypto.PubKey + VotingPower int64 + func NewTestRemoveValidatorGeneratedFromProTxHash(proTxHash crypto.ProTxHash) *Validator + func NewTestValidatorGeneratedFromProTxHash(proTxHash crypto.ProTxHash) *Validator + func NewValidator(pubKey crypto.PubKey, votingPower int64, proTxHash ProTxHash, address string) *Validator + func NewValidatorDefaultVotingPower(pubKey crypto.PubKey, proTxHash []byte) *Validator + func ValidatorFromProto(vp *tmproto.Validator) (*Validator, error) + func (v *Validator) Bytes() []byte + func (v *Validator) CompareProposerPriority(other *Validator) *Validator + func (v *Validator) Copy() *Validator + func (v *Validator) MarshalZerologObject(e *zerolog.Event) + func (v *Validator) ShortStringBasic() string + func (v *Validator) String() string + func (v *Validator) ToProto() (*tmproto.Validator, error) + func (v *Validator) UnmarshalJSON(data []byte) error + func (v *Validator) ValidateBasic() error + func (v *Validator) ValidatePubKey() error + func (v Validator) MarshalJSON() ([]byte, error) + type ValidatorAddress struct + Hostname string + NodeID NodeID + Port uint16 + func ParseValidatorAddress(address string) (ValidatorAddress, error) + func RandValidatorAddress() ValidatorAddress + func (va ValidatorAddress) NetAddress() (*NetAddress, error) + func (va ValidatorAddress) String() string + func (va ValidatorAddress) Validate() error + func (va ValidatorAddress) Zero() bool + type ValidatorInfo struct + Index int32 + ProTxHash ProTxHash + type ValidatorParams struct + PubKeyTypes []string + func DefaultValidatorParams() ValidatorParams + func (val *ValidatorParams) IsValidPubkeyType(pubkeyType string) bool + type ValidatorSet struct + HasPublicKeys bool + Proposer *Validator + QuorumHash crypto.QuorumHash + QuorumType btcjson.LLMQType + ThresholdPublicKey crypto.PubKey + Validators []*Validator + func NewEmptyValidatorSet() *ValidatorSet + func NewValidatorSet(valz []*Validator, newThresholdPublicKey crypto.PubKey, ...) *ValidatorSet + func NewValidatorSetWithLocalNodeProTxHash(valz []*Validator, newThresholdPublicKey crypto.PubKey, ...) *ValidatorSet + func ValidatorSetFromExistingValidators(valz []*Validator, thresholdPublicKey crypto.PubKey, ...) (*ValidatorSet, error) + func ValidatorSetFromProto(vp *tmproto.ValidatorSet) (*ValidatorSet, error) + func (vals *ValidatorSet) ABCIEquivalentValidatorUpdates() *abci.ValidatorSetUpdate + func (vals *ValidatorSet) BasicInfoString() string + func (vals *ValidatorSet) Copy() *ValidatorSet + func (vals *ValidatorSet) CopyIncrementProposerPriority(times int32) *ValidatorSet + func (vals *ValidatorSet) Equals(other *ValidatorSet) bool + func (vals *ValidatorSet) GetByIndex(index int32) *Validator + func (vals *ValidatorSet) GetByProTxHash(proTxHash []byte) (index int32, val *Validator) + func (vals *ValidatorSet) GetProTxHashes() []crypto.ProTxHash + func (vals *ValidatorSet) GetProTxHashesAsByteArrays() [][]byte + func (vals *ValidatorSet) GetProTxHashesOrdered() []crypto.ProTxHash + func (vals *ValidatorSet) GetProposer() (proposer *Validator) + func (vals *ValidatorSet) GetPublicKeys() []crypto.PubKey + func (vals *ValidatorSet) HasProTxHash(proTxHash crypto.ProTxHash) bool + func (vals *ValidatorSet) Hash() tmbytes.HexBytes + func (vals *ValidatorSet) IncrementProposerPriority(times int32) + func (vals *ValidatorSet) IsNilOrEmpty() bool + func (vals *ValidatorSet) Iterate(fn func(index int, val *Validator) bool) + func (vals *ValidatorSet) MarshalZerologObject(e *zerolog.Event) + func (vals *ValidatorSet) QuorumHashValid() error + func (vals *ValidatorSet) QuorumTypeMemberCount() int + func (vals *ValidatorSet) QuorumTypeThresholdCount() int + func (vals *ValidatorSet) QuorumVotingPower() int64 + func (vals *ValidatorSet) QuorumVotingThresholdPower() int64 + func (vals *ValidatorSet) RescalePriorities(diffMax int64) + func (vals *ValidatorSet) Size() int + func (vals *ValidatorSet) String() string + func (vals *ValidatorSet) StringIndented(indent string) string + func (vals *ValidatorSet) StringIndentedBasic(indent string) string + func (vals *ValidatorSet) ThresholdPublicKeyValid() error + func (vals *ValidatorSet) ToProto() (*tmproto.ValidatorSet, error) + func (vals *ValidatorSet) TotalVotingPower() int64 + func (vals *ValidatorSet) UpdateWithChangeSet(changes []*Validator, newThresholdPublicKey crypto.PubKey, ...) error + func (vals *ValidatorSet) ValidateBasic() error + func (vals *ValidatorSet) VerifyCommit(chainID string, blockID BlockID, height int64, commit *Commit) error + type ValidatorsByProTxHashes []*Validator + func (valz ValidatorsByProTxHashes) Len() int + func (valz ValidatorsByProTxHashes) Less(i, j int) bool + func (valz ValidatorsByProTxHashes) Swap(i, j int) + type ValidatorsByVotingPower []*Validator + func (valz ValidatorsByVotingPower) Len() int + func (valz ValidatorsByVotingPower) Less(i, j int) bool + func (valz ValidatorsByVotingPower) Swap(i, j int) + type VersionParams struct + AppVersion uint64 + func DefaultVersionParams() VersionParams + type Vote struct + BlockID BlockID + BlockSignature tmbytes.HexBytes + Height int64 + Round int32 + Type tmproto.SignedMsgType + ValidatorIndex int32 + ValidatorProTxHash ProTxHash + VoteExtensions VoteExtensions + func VoteFromProto(pv *tmproto.Vote) (*Vote, error) + func (vote *Vote) Copy() *Vote + func (vote *Vote) GetVoteExtensionsSigns(extType tmproto.VoteExtensionType) [][]byte + func (vote *Vote) HasVoteMessage() *tmcons.HasVote + func (vote *Vote) MarshalZerologObject(e *zerolog.Event) + func (vote *Vote) PopulateSignsFromProto(pv *tmproto.Vote) error + func (vote *Vote) PopulateSignsToProto(pv *tmproto.Vote) error + func (vote *Vote) String() string + func (vote *Vote) ToProto() *tmproto.Vote + func (vote *Vote) ValidateBasic() error + func (vote *Vote) ValidateWithExtension() error + func (vote *Vote) Verify(chainID string, quorumType btcjson.LLMQType, quorumHash []byte, ...) error + func (vote *Vote) VerifyExtensionSign(chainID string, pubKey crypto.PubKey, quorumType btcjson.LLMQType, ...) error + func (vote *Vote) VerifyWithExtension(chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, ...) error + type VoteExtension struct + Extension []byte + Signature tmbytes.HexBytes + func (v *VoteExtension) Clone() VoteExtension + func (v *VoteExtension) Validate() error + type VoteExtensions map[tmproto.VoteExtensionType][]VoteExtension + func NewVoteExtensionsFromABCIExtended(exts []*abci.ExtendVoteExtension) VoteExtensions + func VoteExtensionsFromProto(pve []*tmproto.VoteExtension) VoteExtensions + func (e VoteExtensions) Add(t tmproto.VoteExtensionType, ext []byte) + func (e VoteExtensions) Copy() VoteExtensions + func (e VoteExtensions) CopySignsFromProto(src tmproto.VoteExtensions) error + func (e VoteExtensions) CopySignsToProto(dist tmproto.VoteExtensions) error + func (e VoteExtensions) Fingerprint() []byte + func (e VoteExtensions) IsEmpty() bool + func (e VoteExtensions) IsSameWithProto(proto tmproto.VoteExtensions) bool + func (e VoteExtensions) ToExtendProto() []*abci.ExtendVoteExtension + func (e VoteExtensions) ToProto() []*tmproto.VoteExtension + func (e VoteExtensions) Validate() error + type VoteSet struct + func NewVoteSet(chainID string, height int64, round int32, signedMsgType tmproto.SignedMsgType, ...) *VoteSet + func (voteSet *VoteSet) AddVote(vote *Vote) (added bool, err error) + func (voteSet *VoteSet) BitArray() *bits.BitArray + func (voteSet *VoteSet) BitArrayByBlockID(blockID BlockID) *bits.BitArray + func (voteSet *VoteSet) BitArrayString() string + func (voteSet *VoteSet) ChainID() string + func (voteSet *VoteSet) GetByIndex(valIndex int32) *Vote + func (voteSet *VoteSet) GetByProTxHash(proTxHash []byte) *Vote + func (voteSet *VoteSet) GetHeight() int64 + func (voteSet *VoteSet) GetRound() int32 + func (voteSet *VoteSet) HasAll() bool + func (voteSet *VoteSet) HasTwoThirdsAny() bool + func (voteSet *VoteSet) HasTwoThirdsMajority() bool + func (voteSet *VoteSet) IsCommit() bool + func (voteSet *VoteSet) IsQuorumReached() bool + func (voteSet *VoteSet) List() []Vote + func (voteSet *VoteSet) MakeCommit() *Commit + func (voteSet *VoteSet) MarshalJSON() ([]byte, error) + func (voteSet *VoteSet) MarshalZerologObject(e *zerolog.Event) + func (voteSet *VoteSet) SetPeerMaj23(peerID string, blockID BlockID, height int64, round int32) error + func (voteSet *VoteSet) Size() int + func (voteSet *VoteSet) String() string + func (voteSet *VoteSet) StringIndented(indent string) string + func (voteSet *VoteSet) StringShort() string + func (voteSet *VoteSet) TwoThirdsMajority() (blockID BlockID, ok bool) + func (voteSet *VoteSet) Type() byte + func (voteSet *VoteSet) VoteStrings() []string + type VoteSetJSON struct + PeerMaj23s map[string]maj23Info + Votes []string + VotesBitArray string + type VoteSetReader interface + BitArray func() *bits.BitArray + GetByIndex func(int32) *Vote + GetHeight func() int64 + GetRound func() int32 + IsCommit func() bool + Size func() int + Type func() byte