Skip to content

Conversation

@codemaestro64
Copy link
Contributor

@codemaestro64 codemaestro64 commented Oct 16, 2025

What was wrong?

Issue #691

The libp2p stack lacked robust relay support, secure resource validation, and dynamic peer discovery, impacting reliability in NATed or firewalled environments.

Description

This PR enhances the py-libp2p networking layer with improvements to relay functionality and security, advancing the library toward production-grade reliability for decentralized applications.

TODOs

  • Implement voucher and signature verification in resources.py
  • Implement initial relay selection logic in transport.py
  • Implement DHT-based peer discovery
  • Implement more sophisticated relay selection
  • Implement reservation storage and refresh mechanism
  • Add relay multiaddrs to peerstore
  • Implement proper multiaddr parsing and handling for relayed connections
  • Implement run() method in CircuitV2Listener

closes #691

@codemaestro64 codemaestro64 marked this pull request as ready for review October 20, 2025 16:59
@seetadev
Copy link
Contributor

@codemaestro64 : Thank you so much for opening the PR for completing all the required enhancements and todos in circuit relay. Appreciate your efforts.

Updated the branch and re-run CI/CD pipeline. You will get immediate results on CI/CD test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking: Transport, Relay, and Discovery Enhancements

2 participants