mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
* feat: base implementation of dcutr for hole-punching * chore: removed circuit-relay imports from __init__ * feat: implemented dcutr protocol * added test suite with mock setup * Fix pre-commit hook issues in DCUtR implementation * usages of CONNECT_TYPE and SYNC_TYPE have been replaced with HolePunch.Type.CONNECT and HolePunch.Type.SYNC * added unit tests for dcutr and nat module and * added multiaddr.get_peer_id() with proper DNS address handling and fixed method signature inconsistencies * added assertions to verify DCUtR hole punch result in integration test --------- Co-authored-by: Manu Sheel Gupta <manusheel.edu@gmail.com>
22 lines
412 B
Python
22 lines
412 B
Python
"""
|
|
Protocol buffer package for circuit_v2.
|
|
|
|
Contains generated protobuf code for circuit_v2 relay protocol.
|
|
"""
|
|
|
|
# Import the classes to be accessible directly from the package
|
|
|
|
from .dcutr_pb2 import (
|
|
HolePunch,
|
|
)
|
|
|
|
from .circuit_pb2 import (
|
|
HopMessage,
|
|
Limit,
|
|
Reservation,
|
|
Status,
|
|
StopMessage,
|
|
)
|
|
|
|
__all__ = ["HopMessage", "Limit", "Reservation", "Status", "StopMessage", "HolePunch"]
|