Repository navigation
Conversation
Marvin-Beckmann
requested changes
May 5, 2026
Marvin-Beckmann
left a comment
Member
There was a problem hiding this comment.
mostly minor comments, but looks good as an example in general. I feel like the simplifications that you have made compared to the standard should be either collected at one place, or mentioned more explicitly in the documentation
Comment on lines
+224
to
+233
| /// Samples a polynomial with a specific Hamming weight from a seed. | ||
| /// | ||
| /// This generates the challenge polynomial `c` used during signing and verification. | ||
| /// It ensures that exactly `tau` coefficients are set to either `1` or `-1`, | ||
| /// and all other coefficients are `0`. | ||
| /// | ||
| /// Parameters: | ||
| /// - `seed`: A 32-byte seed used to deterministically generate the polynomial. | ||
| /// | ||
| /// Returns a [`PolyOverZ`] representing the challenge polynomial. |
Member
There was a problem hiding this comment.
for the context of representation it is probably ok not to do the actual computation, but the changes should be expressed more in the function description.
I guess that you use the hash-digest as a seed here, but I would prefer to use the unmodified version here.
Marvin-Beckmann
approved these changes
Oct 19, 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.
Description
This PR implements...
Testing
Checklist:
Benchmarks
Quickly run benchmarks on my old laptop