Skip to content

fix: PolyCommit chunking and enforce domain bounds in commit()#1007

Open
radik878 wants to merge 1 commit intozkonduit:mainfrom
radik878:fixing
Open

fix: PolyCommit chunking and enforce domain bounds in commit()#1007
radik878 wants to merge 1 commit intozkonduit:mainfrom
radik878:fixing

Conversation

@radik878
Copy link

Use ceil division to compute num_poly, avoid creating an extra empty polynomial when message.len() is a multiple of the usable domain size, return zero commitments for empty messages, and add bounds checks for num_unusable_rows relative to the evaluation domain. This aligns chunking behavior with the rest of the codebase and prevents silent underflow/miscommit scenarios.
Tests pass

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.

1 participant