-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Generate a new node identity on key generation #7628
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
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR consolidates duplicate cryptographic key generation logic into a centralized function and adds functionality to generate a new node identity when keys are regenerated. The changes improve code maintainability by eliminating redundant key generation code across multiple modules and ensure proper node identity management when cryptographic keys change.
- Consolidates duplicate key generation logic into
NodeDB::generateCryptoKeyPair() - Adds new identity creation functionality with
NodeDB::createNewIdentity() - Updates AdminModule and MenuHandler to use the centralized key generation function
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/modules/AdminModule.cpp | Replaces duplicate key generation logic with calls to centralized function and updates segment change flags |
| src/mesh/NodeDB.h | Adds declarations for new consolidated key generation and identity creation functions |
| src/mesh/NodeDB.cpp | Implements consolidated key generation logic and new identity creation functionality |
| src/graphics/draw/MenuHandler.cpp | Replaces duplicate key generation code with call to centralized function |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.