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

Improvements to discv5 sessions #773

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Improvements to discv5 sessions #773

merged 1 commit into from
Feb 14, 2025

Conversation

kdeme
Copy link
Contributor

@kdeme kdeme commented Feb 7, 2025

  • Adjust Sessions API to make use of results.Opt instead of var params
  • Add loadReadKey for when only the readKey is required
  • Add 32-bit counter to a Session and add nextNonce call that creates the nonce to use for next encryption (using the 32-bit counter)
  • Use nextNonce in discv5 encryption
  • Tests for Sessions / nextNonce

- Adjust Sessions API to make use of results.Opt instead of
var params
- Add loadReadKey for when only the readKey is required
- Add 32-bit counter to a Session and add nextNonce call that
creates the nonce to use for next encryption (using the 32-bit
counter)
- Use nextNonce in discv5 encryption
- Tests for Sessions / nextNonce
@kdeme kdeme force-pushed the session-cache-improvements branch from 69a2db3 to e98c05f Compare February 7, 2025 11:01
@kdeme kdeme merged commit e973d0b into master Feb 14, 2025
18 checks passed
@kdeme kdeme deleted the session-cache-improvements branch February 14, 2025 18:22
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