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

fix!: remove localPeer from secureInbound and secureOutbound #2304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wemeetagain
Copy link
Member

Description

  • Remove localPeer: PeerId first parameter from secureInbound and secureOutbound in ConnectionEncrypter

Requiring the local peer id in connection encryption appears to be historical cruft. The more current approach would be to have a ConnectionEncrypter be specific to a single peer id, passed in during instantiation in its Components.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@wemeetagain wemeetagain requested a review from a team as a code owner December 5, 2023 22:04
@achingbrain achingbrain added the version-2.0 PRs that will be released in libp2p v2 label Dec 20, 2023
@dhuseby
Copy link
Contributor

dhuseby commented May 21, 2024

Blocked waiting for the next breaking change milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version-2.0 PRs that will be released in libp2p v2
Projects
Status: 🧱Blocked
Development

Successfully merging this pull request may close these issues.

None yet

3 participants