feat: add DKG transcript size validation with 100MB limit#271
Merged
nekomoto911 merged 2 commits intomainfrom Mar 11, 2026
Merged
feat: add DKG transcript size validation with 100MB limit#271nekomoto911 merged 2 commits intomainfrom
nekomoto911 merged 2 commits intomainfrom
Conversation
Add size checks for DKG transcripts before constructing system transactions: reject empty transcripts and those exceeding 100MB. The weighted DKG transcript size scales at ~336 bytes per weight unit (3×G1 + 2×G2 = 3×48 + 2×96). With equal weights, 100MB supports ~312K validators; with average weight ~20 per validator, ~15K validators. Note: MAX_DKG_TRANSCRIPT_BYTES is a consensus-critical parameter. Changing it requires a coordinated upgrade across all nodes.
nekomoto911
approved these changes
Mar 11, 2026
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.
Add size checks for DKG transcripts before constructing system transactions: reject empty transcripts and those exceeding 100MB.
The weighted DKG transcript size scales at ~336 bytes per weight unit (3×G1 + 2×G2 = 3×48 + 2×96). With equal weights, 100MB supports ~312K validators; with average weight ~20 per validator, ~15K validators.
Note: MAX_DKG_TRANSCRIPT_BYTES is a consensus-critical parameter. Changing it requires a coordinated upgrade across all nodes.