Skip to content

Conversation

@thebentern
Copy link
Contributor

No description provided.

This comment was marked as outdated.

@thebentern thebentern requested a review from Copilot August 14, 2025 20:15
@thebentern thebentern added the enhancement New feature or request label Aug 14, 2025

This comment was marked as outdated.

@thebentern thebentern requested a review from Copilot August 14, 2025 20:39

This comment was marked as outdated.

@thebentern thebentern requested a review from Copilot August 14, 2025 21:19

This comment was marked as outdated.

@thebentern thebentern requested a review from Copilot August 15, 2025 00:52

This comment was marked as outdated.

thebentern and others added 3 commits August 14, 2025 19:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@thebentern thebentern requested a review from Copilot August 15, 2025 01:19

This comment was marked as outdated.

@thebentern thebentern requested a review from Copilot August 15, 2025 01:30
Copy link
Contributor

Copilot AI left a 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.

thebentern and others added 3 commits August 14, 2025 21:05
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>
@thebentern thebentern merged commit c5c634e into XEdDSA Aug 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant