Skip to content

Conversation

@GheisMohammadi
Copy link
Collaborator

Description

This PR implements support for trusted nodes for the P2P Host, allowing the nodes to maintain more reliable and secure connections. By introducing the concept of trusted nodes, we can now designate certain peers as trusted, which ensures that they are prioritized during connection management. These trusted nodes are handled separately from the general peer pool, improving both the performance and stability of crucial network functions by maintaining consistent connectivity with key, verified peers. This reduces the risk of interacting with potentially malicious peers, thereby bolstering the overall security of the network. Trusted nodes are added via a configurable list, which can be defined through configuration files.

The PR is tested with unit tests, but it has to be validated in dev-net with a combination of trusted and regular peers to ensure correct behavior.

@GheisMohammadi GheisMohammadi added the libp2p Peer to Peer networking label Oct 22, 2024
@GheisMohammadi GheisMohammadi self-assigned this Oct 22, 2024
@GheisMohammadi GheisMohammadi marked this pull request as draft October 22, 2024 06:48
@GheisMohammadi GheisMohammadi force-pushed the refactor/staged_stream_sync branch from b455976 to 6f68f89 Compare October 25, 2024 05:07
@GheisMohammadi GheisMohammadi changed the base branch from refactor/staged_stream_sync to dev October 28, 2024 04:25
@GheisMohammadi GheisMohammadi marked this pull request as ready for review October 28, 2024 04:33
@sophoah sophoah merged commit 06e56bb into dev Oct 29, 2024
@sophoah sophoah deleted the feature/trusted_nodes branch October 29, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libp2p Peer to Peer networking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants