package
0.27.3
Repository: https://github.com/corestario/tendermint.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CanonicalTime can be used to stringify time in a canonical way.
ComputeAminoOverhead calculates the overhead for amino encoding a transaction.
DefaultBlockSizeParams returns a default BlockSizeParams.
DefaultConsensusParams returns a default ConsensusParams.
DefaultEvidenceParams Params returns a default EvidenceParams.
DefaultValidatorParams returns a default ValidatorParams, which allows only ed25519 pubkeys.
No description provided by the author
GenesisDocFromFile reads JSON data from a file and unmarshalls it into a GenesisDoc.
GenesisDocFromJSON unmarshalls JSON data into a GenesisDoc.
GetCodec returns a codec used by the package.
IsVoteTypeValid returns true if t is a valid vote type.
MakeBlock returns a new block with an empty header, except what can be computed from itself.
No description provided by the author
MaxDataBytes returns the maximum size of block's data.
MaxDataBytesUnknownEvidence returns the maximum size of block's data when evidence count is unknown.
MaxEvidenceBytesPerBlock returns the maximum evidence size per block - 1/10th of the maximum block size.
NewBlockMeta returns a new BlockMeta from the block and its blockParts.
No description provided by the author
NewErrEvidenceInvalid returns a new EvidenceInvalid with the given err.
NewErrEvidenceOverflow returns a new ErrEvidenceOverflow where got > max.
NewErroringMockPV returns a MockPV that fails on each signing request.
NewEventBus returns a new event bus.
NewEventBusWithBufferCapacity returns a new event bus with the given buffer capacity.
UNSTABLE.
No description provided by the author
Returns an immutable, full PartSet from the data bytes.
Returns an empty PartSet ready to be populated.
No description provided by the author
NewProposal returns a new Proposal.
NewResultFromResponse creates ABCIResult from ResponseDeliverTx.
NewResults creates ABCIResults from the list of ResponseDeliverTx.
No description provided by the author
NewValidatorSet initializes a ValidatorSet by copying over the values from `valz`, a list of Validators.
Constructs a new VoteSet struct used to accumulate votes for given height/round.
No description provided by the author
RandValidator returns a randomized validator, useful for testing.
RandValidatorSet returns a randomized validator set, useful for testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateHash returns an error if the hash is not empty, but its size != tmhash.Size.
ValidateTime does a basic time validation ensuring time does not drift too much: +/- one year.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
64kB.
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
EventTypeKey is a reserved key, used to specify event type in tags.
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
Reserved event types (alphabetically sorted).
MaxAminoOverheadForBlock - maximum amino overhead to encode a block (up to MaxBlockSizeBytes in size) not including it's parts except Data.
100MB.
MaxChainIDLen is a maximum length of the chain ID.
MaxEvidenceBytes is a maximum size of any evidence (including amino overhead).
MaxHeaderBytes is a maximum header size (including amino overhead).
The maximum allowed total voting power.
MaxVoteBytes is a maximum vote size (including amino overhead).
No description provided by the author
Votes.
Proposals.
TimeFormat is used for generating the sigs.
TxHashKey is a reserved key, used to specify transaction's hash.
TxHeightKey is a reserved key, used to specify transaction block's height.

# Variables

TODO: Make non-global by allowing for registration of more pubkey types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxSignatureSize is a maximum allowed signature size for the Proposal and Vote.
PB2TM is used for converting protobuf ABCI to Tendermint ABCI.
UNSTABLE.
TM2PB is used for converting Tendermint ABCI to protobuf ABCI.

# Structs

ABCIResult is the deterministic component of a ResponseDeliverTx.
Block defines the atomic unit of a Tendermint blockchain.
BlockID defines the unique ID of a block as its Hash and its PartSetHeader.
BlockMeta contains meta information about a block - namely, it's ID and Header.
BlockSizeParams define limits on the block size.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Commit contains the evidence that a block was committed by a set of validators.
ConsensusParams contains consensus critical parameters that determine the validity of blocks.
Data contains the set of transactions included in the block.
DuplicateVoteEvidence contains evidence a validator signed two conflicting votes.
ErrEvidenceInvalid wraps a piece of evidence and the error denoting how or why it is invalid.
ErrEvidenceOverflow is for when there is too much evidence in a block.
No description provided by the author
EventBus is a common bus for all events going through the system.
No description provided by the author
No description provided by the author
light weight event for benchmarking.
No description provided by the author
NOTE: This goes into the replay WAL.
All txs fire EventDataTx.
No description provided by the author
No description provided by the author
EvidenceData contains any evidence of malicious wrong-doing by validators.
EvidenceParams determine how we handle evidence of malfeasance.
GenesisDoc defines the initial conditions for a tendermint blockchain, in particular its validator set.
GenesisValidator is an initial validator.
Header defines the structure of a Tendermint block header.
UNSTABLE.
UNSTABLE.
MockPV implements PrivValidator without any safety or persistence.
-----------------------------------------------------------------------------.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Proposal defines a block proposal for the consensus.
SignedHeader is a header along with the commits that prove it.
TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
TxResult contains results of executing the transaction.
Volatile state for each Validator NOTE: The ProposerPriority is not included in Validator.Hash(); make sure to update that method if changes are made here.
No description provided by the author
ValidatorParams restrict the public key types validators can use.
ValidatorSet represent a set of *Validator at a given height.
Vote represents a prevote, precommit, or commit vote from validators for consensus.
VoteSet helps collect signatures from validators at each height+round for a predefined vote type.
More human readable JSON of the vote set NOTE: insufficient for unmarshalling from (compressed votes) TODO: make the peerMaj23s nicer to read (eg just the block hash).

# Interfaces

BlockEventPublisher publishes all block related events.
No description provided by the author
Evidence represents any provable malicious activity by a validator.
PrivValidator defines the functionality of a local Tendermint validator that signs votes and proposals, and never double signs.
Signable is an interface for all signable things.
TMEventData implements events.EventData.
No description provided by the author
Common interface between *consensus.VoteSet and types.Commit.

# Type aliases

ABCIResults wraps the deliver tx results to return a proof.
Address is hex bytes.
No description provided by the author
EvidenceList is a list of Evidence.
UNSTABLE XXX: duplicate of p2p.ID to avoid dependence between packages.
No description provided by the author
SignedMsgType is a type of signed message in the consensus.
Tx is an arbitrary byte array.
Txs is a slice of Tx.
Sort validators by address.