Skip to content

feat: add DKG transcript size validation with 100MB limit#271

Merged
nekomoto911 merged 2 commits intomainfrom
dev-0227-dkg
Mar 11, 2026
Merged

feat: add DKG transcript size validation with 100MB limit#271
nekomoto911 merged 2 commits intomainfrom
dev-0227-dkg

Conversation

@Lchangliang
Copy link
Copy Markdown
Collaborator

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.

Lchangliang and others added 2 commits February 27, 2026 17:17
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 nekomoto911 merged commit 70157b8 into main Mar 11, 2026
30 checks passed
@nekomoto911 nekomoto911 deleted the dev-0227-dkg branch March 11, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants