Core blockchain data model
The core blockchain data model defines the records that give a chain its identity and history. Blocks carry ordered transaction data, links to prior state, validator-set commitments, proof of validator agreement, and evidence of validator faults. Shared hashes and validation rules make these records safe to exchange between nodes, applications, indexers, light clients, and data-availability services.
Core objects
Block identity
The block is the atomic unit of the chain. A block combines a header with transaction data, evidence, and the commit for the preceding block. Its identity is the header hash together with the part-set header that describes the serialized block form. The part-set header lets peers identify and check block pieces while the header hash commits to the block's logical contents (types/block.go• L44-57, types/block.go• L149-173, types/block.go• L1581-1627).
References: types/block.go• L44-57 types/block.go• L149-173 types/block.go• L1581-1627
Header commitments
The header is the compact statement that links one block to the next. It names the chain and height, points to the previous block, records the proposer, and commits to transaction data, evidence, validator sets, consensus parameters, application state, and prior transaction results. The header hash is a Merkle root over these fields in a fixed order, so a change to any committed field changes the block identity (types/block.go• L385-416, types/block.go• L439-540).
The main header links have these roles:
| Header field | Meaning |
|---|---|
LastBlockID | Identity of the preceding block |
LastCommitHash | Commitment to the preceding block's validator commit |
DataHash | Merkle root of the ordered transaction hashes in this block |
ValidatorsHash | Validator set used for this block |
NextValidatorsHash | Validator set expected for the next block |
ConsensusHash | Hash of the consensus-critical parameter subset |
AppHash | Application state after the preceding block's transactions |
LastResultsHash | Root of the deterministic results from the preceding block |
EvidenceHash | Merkle root of evidence included in this block |
References: types/block.go• L385-416 types/block.go• L439-540
Commit evidence
A commit is the signed record that validators accepted one block at a height and round. Each signature names a validator or marks an absent or nil vote. Signatures stay in validator-set order, which lets a node match each position to voting power and rebuild the corresponding precommit. The first block has an empty commit, but later blocks require a non-empty commit (types/block.go• L640-750, types/block.go• L900-1017).
The commit belongs to the block it proves, while Block.LastCommit carries the commit for the prior block. A signed header pairs a header with its commit. It is internally consistent only when the chain ID matches, the heights match, the commit's block hash equals the header hash, and the commit's block identity is structurally valid (types/block.go• L946-958, types/light.go• L116-161).
References: types/block.go• L640-750 types/block.go• L900-1017 types/block.go• L946-958 types/light.go• L116-161
Transaction data
Transactions are opaque byte strings at this layer. The block preserves their order, and DataHash is the Merkle root of their transaction hashes. This separates agreement on transaction order from application acceptance: the application decides which ordered transactions are valid during execution (types/block.go• L1365-1399, types/tx.go• L22-30, types/tx.go• L139-146).
Block transaction count is also part of the application-version-aware size contract. From app version 11 onward, a block may contain at most 1,000 transactions. Earlier versions use a decoding ceiling derived from the default block byte limit so old block identities and replay rules remain stable (types/block_limits.go• L3-21).
The transaction hash normally covers the transaction bytes. Wrapped blob and index transactions instead expose an inner transaction for identity and indexing under the legacy rules that feed DataHash; application-version-aware unwrapping uses stricter blob checks from app version 12. Earlier app versions, including version 11, keep the legacy blob rules so historical transaction identity and replay stay stable, while newer processing can reject blob envelopes that do not meet current validation rules (types/tx.go• L94-123, types/blob_tx.go• L13-45, types/blob_tx_test.go• L19-206, types/blob_tx_test.go• L497-554). The legacy rule recognizes a blob envelope by its type, its blob presence, and the namespace ID length. The application remains responsible for checking the meaning and validity of transaction contents (types/tx.go• L94-123, types/blob_tx.go• L18-35).
The block also carries a separate data root and square size. These values describe the encoded data layout used by the availability layer and do not replace the transaction Merkle root used by DataHash (types/block.go• L1365-1399, proto/…/types.proto• L73-90).
Block-level cached transaction hashes are only a local aid for passing hashes beside a block. They are computed from the local transactions, are kept in transaction order, and do not affect block encoding or validity (types/block.go• L258-303).
References: types/block_limits.go• L3-21 types/block.go• L1365-1399 types/block.go• L258-303 types/tx.go• L22-30 types/tx.go• L94-123 types/tx.go• L139-146 types/blob_tx.go• L13-45 types/blob_tx_test.go• L19-206 types/blob_tx_test.go• L497-554 proto/…/types.proto• L73-90
Validator sets
A validator is identified by the address derived from its public key and carries voting power. Basic validation rejects missing keys, negative voting power, malformed sizes for supported key types, and addresses that do not match the key. A validator set orders valid members by voting power, with address order as the tie break. That stable order gives commit signatures fixed positions for a height, while proposer priority selects the proposer as rounds advance (types/validator.go• L18-24, types/validator.go• L39-84, types/validator_set.go• L43-64).
The validator-set hash commits to each member's public key and voting power. It does not include the address because the address is derived from the key, and it does not include proposer priority because priority changes between rounds. A separate priority hash records the ordered priority values when that changing state must be compared. The header's current and next validator hashes connect set state to block history (types/validator.go• L114-133, types/validator_set.go• L373-400, types/block.go• L405-407).
Validator-set reconstruction rejects duplicate addresses before it restores proposer state. A decoded set does not trust the serialized total voting power; it recomputes that value and rejects totals above the safety bound. Set changes also reject invalid power values, preserve a non-empty set, and keep total voting power within its safety bound (types/validator_set.go• L960-997, types/validator_set.go• L412-453, types/validator_set.go• L632-690).
Commit verification uses the validator set named by the expected block state. It checks the commit height and block identity, matches signatures to validators, verifies signatures, and requires more than two thirds of total voting power for the block (types/validation.go• L21-54, types/validation.go• L413-435).
References: types/validator.go• L18-24 types/validator.go• L39-84 types/validator_set.go• L43-64 types/validator.go• L114-133 types/validator_set.go• L373-400 types/validator_set.go• L412-453 types/validator_set.go• L632-690 types/validator_set.go• L960-997 types/block.go• L405-407 types/validation.go• L21-54 types/validation.go• L413-435 types/validator_set_test.go• L471-502
Genesis state
The genesis document defines the initial conditions from which the chain can interpret its first block. It supplies the chain ID, starting height, time, initial validators, consensus parameters, application hash, and optional application state. Loading the document completes safe defaults, derives missing validator addresses, and rejects values that would make the initial chain ambiguous or invalid (types/genesis.go• L29-46, types/genesis.go• L67-105).
The initial validator entries become the first validator set, and its hash provides the starting validator commitment. The same consensus parameters also establish limits for block size, evidence age and size, allowed validator key types, and vote-extension activation (types/genesis.go• L57-65, types/params.go• L39-47, types/params.go• L149-211).
References: types/genesis.go• L29-46 types/genesis.go• L57-65 types/genesis.go• L67-105 types/params.go• L39-47 types/params.go• L149-211
Evidence records
Evidence is a proof of validator misconduct that can be checked and passed to the application as misbehavior. The model supports duplicate-vote evidence and light-client attack evidence. Each record exposes a stable byte form, a hash, an infraction height and time, basic validation, and an application-facing representation (types/evidence.go• L20-30, types/evidence.go• L34-43, types/evidence.go• L204-217).
Evidence is grouped in the block and committed by EvidenceHash. The evidence list hashes its serialized entries as Merkle leaves, which gives the block a single commitment while preserving each record for application review. Consensus parameters limit how old evidence may be and how much evidence a block may carry (types/block.go• L1490-1517, types/evidence.go• L449-491, types/params.go• L56-61).
References: types/evidence.go• L20-30 types/evidence.go• L34-43 types/evidence.go• L204-217 types/block.go• L1490-1517 types/evidence.go• L449-491 types/params.go• L56-61
Event stream
Events are the observation interface for state changes and consensus activity. After a block commits, block, transaction, evidence, and validator-set events let RPC users and indexers consume the result. Separate consensus events expose round progress for internal tools and real-time views (types/events.go• L12-40, types/events.go• L68-139).
The event bus turns event names and application attributes into query keys. Reserved keys identify the event name, transaction hash, transaction height, and block height; application attributes cannot overwrite the reserved event name. Transaction events therefore connect application results to the same transaction identity and height used by the data model (types/events.go• L141-185, types/event_bus.go• L102-145, types/event_bus.go• L179-193, types/event_bus_test.go• L67-75).
References: types/events.go• L12-40 types/events.go• L68-139 types/events.go• L141-185 types/event_bus.go• L102-145 types/event_bus.go• L179-193 types/event_bus_test.go• L67-75
Data relationships
The chain forms a series of linked commitments. Genesis supplies the first chain context and validator set. Consensus produces a commit for a proposed block, and the next block records that commit together with the state and result roots produced by the prior block. Transaction order and the availability data root remain separate commitments within the block data.
This diagram shows how chain setup, validator agreement, block contents, and downstream observations connect.
flowchart LR
G[Genesis document] --> V[Validator set]
V --> C[Validator commit]
T[Ordered transactions] --> D[Block data]
E[Evidence] --> B[Block]
D --> B
C --> B
D --> R[Data root and square size]
V --> H[Block header commitments]
B --> H
H --> I[Block identity]
I --> N[Next block links]
B --> O[Committed events]
R --> P[Data availability proofs]
Commitment graph
The header is the join point for the model. It binds the block's transaction and evidence roots to the validator-set hashes and to the prior block's identity, commit, application state, and deterministic results. The header's DataHash identifies transaction order, while the data record's own root identifies the availability layout. A node can therefore compare a small header before it handles the full block or verifies every signature (types/block.go• L353-379, types/block.go• L402-503, types/block.go• L1365-1399).
References: types/block.go• L353-379 types/block.go• L402-503 types/block.go• L1365-1399
Block acceptance
Block acceptance has a stateless stage and a state-aware stage. Basic checks confirm shape, field ranges, hash sizes, internal hash matches, and supported encodings. State-aware checks then compare header commitments with the expected chain state and verify that the commit has enough valid validator power. Signature checks are separate from basic structure checks (types/block.go• L59-112, types/validation.go• L21-54).
The normal relationship is:
- Decode the wire record into its domain form.
- Check the block's internal commitments and record shapes.
- Compare height, predecessor, validator, parameter, application, and result commitments with chain state.
- Verify the commit against the expected validator set.
- Execute the ordered transactions and publish the resulting events.
References: types/block.go• L59-112 types/validation.go• L21-54 types/light.go• L18-43
Data commitments
The core data model commits to transaction order through DataHash. The data field also carries a data root and square size for the availability layer. Row and share proofs build on those data values to show that selected data is present without requiring the full data set (types/block.go• L1365-1399, proto/…/types.proto• L73-90).
See Data availability proofs for row and share proof construction and verification. See Row-level commitments for the lower-level row commitment model.
References: types/block.go• L1365-1399 proto/…/types.proto• L73-90 types/row_proof.go• L12-68 types/share_proof.go• L15-29
Availability proofs
An availability proof connects selected shares to the block data root. A row proof authenticates row roots in the data-root Merkle tree. A share proof adds namespaced Merkle tree (NMT) proofs for the shares and carries the namespace identity used for verification (types/row_proof.go• L12-30, types/share_proof.go• L16-30).
Full proof validation checks both the hashes and the claimed positions. Row ranges must match the number and order of row roots and proofs. Their Merkle tree must have a power-of-two leaf count of at least four, with the claimed rows in the row-root half. Share ranges must match the supplied share data, stay inside the original square, and form one contiguous span across rows. The namespace ID must have the required length and the namespace version must fit the encoded namespace form (types/row_proof.go• L32-75, types/share_proof.go• L68-128, types/share_proof.go• L131-170).
References: types/row_proof.go• L12-30 types/row_proof.go• L32-87 types/share_proof.go• L16-30 types/share_proof.go• L68-170 types/share_proof_position_test.go• L93-191
Serialization boundaries
Protobuf records
Protobuf is the shared wire form for blocks, headers, commits, validator sets, transactions inside block data, evidence, and proof records. The Data record carries both the transaction list and the availability data root metadata. Domain values convert to protobuf before network transfer or persistence, and conversion back checks the decoded value's basic validity for the main block and consensus objects (proto/…/types.proto• L46-90, types/block.go• L237-337, types/validator_set.go• L890-958, types/evidence.go• L494-542).
Peer-facing block records must also keep their meaning across a decode and re-encode cycle. The wire boundary exercises blocks, block parts, votes, proposals, commits, and evidence with valid and malformed inputs. Accepted values must pass basic validation and preserve the relevant hash or signed value after the round trip (types/proto_fuzz_test.go• L89-255).
The serialized block is also split into fixed-size parts for peer exchange. Each part has a position and Merkle proof, while the part-set header becomes part of the BlockID. A receiver accepts a part only when its size, position, proof, and part-set root agree. When parity data is available, recovery can rebuild only missing original parts and attach their committed proofs; full decoding remains available when both original and parity part sets need completion (types/part_set.go• L50-76, types/part_set.go• L147-201, types/part_set.go• L453-500, types/part_set.go• L572-607).
Inbound commit and extended-commit conversion bounds the signature count before it creates the signature slice. This makes the wire boundary reject oversized input before it can cause an unsafe allocation (types/block.go• L1083-1115, types/block.go• L1329-1361).
References: proto/…/types.proto• L46-90 types/block.go• L237-337 types/validator_set.go• L890-958 types/evidence.go• L494-542 types/proto_fuzz_test.go• L89-255 types/block.go• L1083-1115 types/block.go• L1329-1361 types/part_set.go• L50-76 types/part_set.go• L147-201 types/part_set.go• L453-500 types/part_set.go• L572-607
Canonical signing bytes
Validator signatures do not sign the full in-memory object. The signing boundary removes fields that are local to a validator or are not part of the signed statement, adds the chain ID, and encodes the canonical protobuf message with a length prefix. This keeps all nodes and signing devices on the same byte sequence (types/canonical.go• L18-85, types/vote.go• L146-176).
Vote extensions use a separate canonical message. They are allowed only on non-nil precommit votes, and their signatures are checked only when the chain's parameters enable the feature. An invalid extension signature is reported with a distinct error that still matches the core invalid-signature error (types/vote.go• L244-278, types/vote.go• L326-356, types/params.go• L79-88).
References: types/canonical.go• L18-85 types/vote.go• L146-176 types/vote.go• L244-278 types/vote.go• L326-356 types/params.go• L79-88
Hash inputs
Hashes are part of the model's cross-object contracts. Transaction hashes form DataHash, serialized evidence forms EvidenceHash, validator leaves form ValidatorsHash, and the ordered header fields form the block hash. The data record's availability root is a separate wire value. Only deterministic content belongs in these roots; cached transaction hashes and proposer priority do not define block or validator-set identity (types/tx.go• L94-105, types/tx.go• L142-146, types/block.go• L1391-1398, types/evidence.go• L449-463, types/validator.go• L114-133, types/block.go• L462-503).
References: types/tx.go• L94-105 types/tx.go• L142-146 types/block.go• L1391-1398 types/evidence.go• L449-463 types/validator.go• L114-133 types/block.go• L462-503
Validation rules
Structural validation
Structural validation checks data that can be judged without chain state. It rejects malformed heights, rounds, IDs, hashes, addresses, signatures, validator records, evidence records, and protobuf forms. Validator checks include public-key size checks before address derivation, which prevents malformed supported key types from reaching code that assumes a valid key. A block must also have matching data, evidence, and last-commit hashes before it can be treated as internally consistent. A non-genesis commit must carry a valid block identity (types/block.go• L439-496, types/block.go• L968-995, types/block.go• L59-112, types/validator.go• L39-84).
References: types/block.go• L439-496 types/block.go• L968-995 types/block.go• L59-112 types/validator.go• L39-84
State validation
State validation checks relationships that depend on the chain at a specific height. It confirms that header roots match the expected validator sets, consensus parameters, application state, and prior results. It also checks that the commit corresponds to the expected block and that the signers provide more than two thirds of voting power (types/validation.go• L28-54, types/validation.go• L413-435, types/light.go• L18-43).
References: types/validation.go• L28-54 types/validation.go• L413-435 types/light.go• L18-43
Size validation
Size rules protect both consensus limits and peer-facing decoding. Consensus parameters cap block bytes and evidence bytes, and Block.MaxBytes must stay within the protocol's default maximum even when a node lowers its runtime block-propagation ceiling. An unlimited block setting uses that protocol maximum when it bounds evidence. Transaction data is checked against the permitted block data size, and application version also limits the number of transactions. Commit signature counts and part counts have bounds before large allocations or further processing occur (types/params.go• L149-211, types/params_test.go• L54-66, types/tx.go• L204-212, types/block.go• L341-380, types/block_limits.go• L3-21, types/block.go• L1089-1093, types/block.go• L1336-1340, types/part_set.go• L168-176).
References: types/params.go• L149-211 types/params_test.go• L54-66 types/tx.go• L204-212 types/block.go• L341-380 types/block_limits.go• L3-21 types/block.go• L1089-1093 types/block.go• L1336-1340 types/part_set.go• L168-176
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to header fields must stay aligned across header hashing, protobuf conversion, ABCI header conversion, and any light-client consistency checks.
- Changes to validator ordering or validator-leaf encoding must stay aligned with commit signature positions, validator-set hashes, and commit verification.
- Changes to validator reconstruction or set updates must preserve duplicate-address checks, proposer membership, stable ordering, and total-power limits.
- Changes to validator key validation must preserve the address-derived identity contract and reject malformed supported key sizes before address derivation.
- Changes to proposer priority encoding must keep the priority hash distinct from the validator-set identity hash and encode every ordered priority value.
- Changes to serialized validator-set fields must keep the total voting power derived from validators rather than trusted from peer input. Preserve the overflow error path.
- Changes to transaction identity or wrapper handling must distinguish the legacy rules used by
Hash,Key, andDataHashfrom the stricter app-version-awareUnwrapBlobTxrules that start at app version 12. Check the v11-to-v12 boundary, malformed-envelope behavior, transaction proofs, indexing keys, and availability proof inputs. - Changes to application-version transaction limits must keep the pre-v11 decoding ceiling separate from the v11 limit of 1,000 and align the check with block byte limits.
- Changes to local cached transaction hashes must preserve transaction order and must not make the cache part of block encoding or validity.
- Changes to data-root or square-size fields must stay aligned across the block data wire schema and row or share proof inputs. Preserve row positions, power-of-two tree rules, namespace checks, and contiguous share ranges. See Data availability proofs.
- Changes to evidence types or evidence bytes must update the protobuf sum type, list hash behavior, ABCI conversion, and block evidence limits.
- Changes to canonical vote fields must be reviewed with private-validator signing and vote-extension verification because both depend on exact sign bytes and distinguish core signature errors from extension signature errors.
- Changes to consensus parameter fields must distinguish fields included in
ConsensusHashfrom fields that affect validation without changing the header hash. Keep protocol-wide maximum checks independent from a reduced runtime propagation ceiling. - Changes to the event bus or event query keys must preserve reserved event-name ownership and the transaction hash and height keys used by subscribers.
- Changes to commit or block-part fields must preserve inbound count and size bounds before any peer-controlled slice or bit-array allocation.
- Changes to block-part recovery must keep reconstructed original parts tied to the signed part-set root through their Merkle proofs. Preserve the separate full-decode path and last-part length rules.
- Changes to peer-facing protobuf conversion must preserve basic validation and hash stability across decode and re-encode for blocks, parts, votes, proposals, commits, evidence, and validator sets.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A header hash is computed from fields in a different order or encoding | Nodes assign different identities to the same logical block | Keep the fixed header hash inputs and protobuf conversions aligned (types/block.go• L499-540) |
DataHash, EvidenceHash, or LastCommitHash does not match the block contents | The block fails basic validation before state execution | Recompute each root from the decoded block fields (types/block.go• L74-109) |
| A non-genesis commit contains an invalid block ID | The commit is accepted as a shape-only record even though it cannot identify a block | Validate the commit block ID before accepting its signatures (types/block.go• L978-995) |
| Commit signatures do not match validator-set positions or voting power | A valid-looking commit cannot prove agreement on the block | Check height, block ID, signer identity, signatures, and more-than-two-thirds power (types/validation.go• L413-435) |
| A validator address does not match its public key or appears twice during set reconstruction | Validator identity is ambiguous and set hashes or signatures can be misread | Derive and validate the address from the public key, then reject duplicate addresses (types/validator.go• L36-64, types/validator_set.go• L964-978) |
| A supported validator public key has the wrong byte length | Address derivation can fail before the validator is rejected | Check the key size before deriving its address (types/validator.go• L52-84, types/validator_test.go• L93-105) |
| A peer supplies a false or overflowing serialized total voting power | Commit checks can use the wrong power or decoding can accept an unsafe set | Recompute total power from validators and reject values above MaxTotalVotingPower (types/validator_set.go• L987-997, types/validator_set_test.go• L485-502) |
| A block exceeds the transaction count allowed by its application version | The block is rejected even when its byte size is within the block limit | Apply MaxBlockTxsForAppVersion at the version boundary (types/block_limits.go• L3-21) |
| A chain parameter exceeds the protocol maximum because a node uses a reduced runtime propagation limit as its validation ceiling | Existing chain parameters can become invalid only when the node changes mode | Validate against DefaultMaxBlockSizeBytes and use it for an unlimited block setting (types/params.go• L149-211, types/params_test.go• L54-66) |
| An application event sets the reserved event-name key | A subscriber can receive an event under a name chosen by application data | Ignore the reserved EventTypeKey when converting application attributes (types/event_bus.go• L108-133, types/event_bus_test.go• L67-75) |
| A peer sends too many commit signatures or an invalid block part | The node may allocate unsafe memory or reject the block late | Bound signature counts before slice creation and validate part proofs and sizes (types/block.go• L1089-1093, types/block.go• L1336-1340, types/part_set.go• L572-607) |
| Recovery produces an original part with a wrong proof or wrong last-part length | The part is not added to the block set or reconstructed data is rejected | Validate each recovered part against the expected part-set root and check the final part length (types/part_set.go• L453-500, types/part_set.go• L664-700) |
| A data root or square size does not describe the data used for an availability proof | A proof can fail against the block's availability commitment even when transaction order is correct | Keep data-root metadata tied to the encoded data and run full row or share proof validation (proto/…/types.proto• L73-90, types/row_proof.go• L32-75, types/share_proof.go• L68-128) |
| A row or share proof has valid leaf hashes but wrong row or share positions | A hash-only check can authenticate data in the wrong location | Use Validate rather than only VerifyProof when accepting positions and ranges (types/row_proof.go• L78-87, types/share_proof.go• L131-170) |
| A wrapped blob transaction is classified with the wrong app-version rule, or legacy recognition disagrees with its decoder | Historical transaction identity, application bytes, or current validation can change across nodes | Keep legacy hash and key behavior stable, use the v12 versioned unwrapping boundary, and preserve scanner and decoder agreement (types/tx.go• L94-123, types/blob_tx.go• L18-45, types/blob_tx_test.go• L497-554) |
| A decoded block-level protobuf changes meaning or hash after re-encoding | Peers can disagree about a block, commit, evidence record, or signed message after transport | Decode, apply basic validation, and require stable round trips for peer-facing records (types/proto_fuzz_test.go• L89-255) |
| A vote extension appears on a nil or non-precommit vote | Vote validation fails or nodes disagree on signed content | Enforce extension placement and activation rules (types/vote.go• L326-356, types/params.go• L214-271) |
| A non-nil precommit carries an invalid vote-extension signature | The vote fails extension verification and must remain identifiable as a signature failure | Verify the extension's canonical bytes and preserve the wrapped core signature error (types/vote.go• L244-278) |
Key files
| File | Why to read it |
|---|---|
| types/block.go | Defines the block, header, block ID, commit, data, cached transaction hashes, and the links between their hashes. |
| types/block_limits.go | Defines the application-version boundary for the maximum transaction count in a block. |
| proto/…/types.proto | Defines the shared wire records for headers, block data, commits, transactions, and availability metadata. |
| types/validation.go | Shows how validator power and signatures establish a block commit. |
| types/tx.go | Defines transaction identity, wrapper-aware hashes, transaction roots, and transaction proofs. |
| types/blob_tx.go | Defines the app-version boundary between legacy and strict blob transaction unwrapping. |
| types/blob_tx_test.go | Shows the compatibility contract between historical blob rules and current validation rules. |
| types/blob_tx_scan_test.go | Shows the wire-shape cases that the legacy blob classifier must handle without changing transaction identity. |
| types/proto_fuzz_test.go | Shows the wire-boundary contract for decoding, validation, and stable round trips of block-level records. |
| types/validator.go | Defines validator identity, basic key and power checks, and the bytes used in validator-set hashes. |
| types/validator_set.go | Defines set ordering, proposer selection, set changes, set identity, priority state, and safe reconstruction from wire data. |
| types/validator_set_test.go | Shows validator-set ordering, proposer priority, update safety, overflow handling, and protobuf reconstruction guarantees. |
| types/genesis.go | Defines the initial chain document and its completion rules. |
| types/evidence.go | Defines provable validator faults, evidence hashes, and application conversion. |
| types/events.go | Defines the event records and query keys exposed after block processing. |
| types/event_bus.go | Defines publication and subscription rules for block, transaction, application, evidence, and consensus events. |
| types/params.go | Defines consensus-critical limits, protocol block-size bounds, and feature activation rules. |
| types/light.go | Shows how a header, commit, and validator set form a verifiable signed header. |
| types/canonical.go | Defines the canonical forms used at the validator signing boundary. |
| types/part_set.go | Defines serialized block parts, recovery paths, and their Merkle-root checks. |
| types/row_proof.go | Defines row proof shape and validation for the Data availability proofs child page. |
| types/share_proof.go | Defines namespace-aware share proofs and their relationship to row proofs for the Data availability proofs child page. |
| types/share_proof_position_test.go | Shows the position and contiguous-range rules for share proofs. |