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

Add Libp2p config options to settings: TLS certificate for Secure Websockets #190

Open
2 of 3 tasks
mriise opened this issue Jul 13, 2023 · 0 comments
Open
2 of 3 tasks
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mriise
Copy link
Contributor

mriise commented Jul 13, 2023

Summary

There should be some more config options for libp2p, mainly:

  • bootstrap node addresses
  • announce addresses
  • path to TLS certificate for Secure Websockets

nice to haves:

  • encrypt message content with shared key
  • blacklisted peers
  • explicit peers this is an optimization that we can skip for now

Problem

We don't have these options at the moment, having these are critical for a fully-fledged application running libp2p.

Solution

  • Add options to the config file to change these settings.
  • Dial bootstrapped addresses and add them to kademlia, via add_address (always).
  • Keep track of a hashset/map (associated w/ the event_handler) of bootstrapped peers actually connected via event hooks.
  • Add these bootstrapped addresses as explicit peers.
@zeeshanlakhani zeeshanlakhani changed the title Add Libp2p config options to settings Add Libp2p config options to settings: TLS certificate for Secure Websockets Sep 6, 2023
@zeeshanlakhani zeeshanlakhani added the enhancement New feature or request label Sep 6, 2023
@zeeshanlakhani zeeshanlakhani added the good first issue Good for newcomers label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants