KIPs: derive pfReport from a recorded parent round - #133
Open
hyunsooda wants to merge 1 commit into
Open
Conversation
The consensus round is stored in a header byte that is cleared when the block hash is computed, so it sits outside a block's identity and two nodes can hold one block at different rounds. Deriving pfReport from each node's own copy then makes the node-state transition node-dependent. Record the round of block N-1 in header(N).VRank instead, with the parent's committed seals as proof, so every node reads one value agreed by the quorum that committed block N. Verification proves only that the round happened, so a proposer may undercount but cannot inflate. Confidence: medium Scope-risk: moderate Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specifies how
pfReportis derived, to match kaiachain/kaia#1054.The consensus round is stored in a header byte that is cleared when the block hash is computed, so it is outside a block's identity. A validator locked on a proposal re-votes in every round it reaches, so several rounds can each gather a quorum of committed seals for one block, and two nodes can hold that block, with the same hash, at different rounds. Deriving
pfReportfrom each node's own copy therefore makes the node-state transition node-dependent.The round of block
N-1is now recorded inheader(N).VRank, together with the parent's committed seals as proof that a committee quorum committed it at that round. Every node reads one value, agreed by the quorum that committed blockN. Verification proves only that the claimed round happened, never that no higher round did, so a proposer may undercount but cannot inflate — which holds as long as seals are issued only for rounds that actually occurred.Changes:
header.VRankbecomes a payload withReport,ParentRoundandParentCommittedSealpfReport(N)is redefined to cover blockN-1and to readParentRound(N), following the index conventioncfReportalready usesFORK_BLOCKrecord no parent round, with the reasoning for each