Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moves repair nonce verification from window-service to shred-fetch-stage #4641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

behzadnouri
Copy link

@behzadnouri behzadnouri commented Jan 26, 2025

Problem

Because repair nonce is a randomly generated u32 for each repair request, it can be verified before sigverify so that shreds with invalid repair nonce do not waste sigverify resources.

Summary of Changes

The commit moves repair nonce verification from window-service to shred-fetch-stage.
This bypasses sigverify and a full deserialization for shreds with invalid repair nonce.

@behzadnouri behzadnouri force-pushed the shred-fetch-verify-nonce branch 7 times, most recently from d3b6bbc to f6d26f3 Compare January 27, 2025 14:06
Because repair nonce is a randomly generated u32 for each repair
request, it can be verified before sigverify so that shreds with invalid
repair nonce do not waste sigverify resources.
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