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

Refactor session keys #1605

Merged
merged 13 commits into from
May 16, 2023
Merged

Refactor session keys #1605

merged 13 commits into from
May 16, 2023

Conversation

turuslan
Copy link
Contributor

Referenced issues

Description of the Change

  • intersect keystore with babe/gran/para/audi authorities for block

Benefits

  • babe/gran work after rotateKeys without restarting node

Possible Drawbacks

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Copy link
Contributor

@kamilsa kamilsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update caching of session keys, so that we remember index of where authority key was positioned last time. If it is not there, we can iterate through all keys

core/authority_discovery/publisher/address_publisher.cpp Outdated Show resolved Hide resolved
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested a review from kamilsa May 12, 2023 10:15
@kamilsa kamilsa requested a review from Harrm May 12, 2023 11:47
core/crypto/crypto_store/session_keys.hpp Outdated Show resolved Hide resolved
core/crypto/crypto_store/session_keys.cpp Outdated Show resolved Hide resolved
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested a review from Harrm May 16, 2023 09:48
@turuslan turuslan enabled auto-merge (squash) May 16, 2023 10:15
@turuslan turuslan merged commit 5710bbb into master May 16, 2023
@turuslan turuslan deleted the refactor/session-keys branch May 16, 2023 11:01
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.

3 participants