mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-03-22 05:01:28 +00:00
Compare commits
9 Commits
618aff9368
...
1ea50a3cf3
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ea50a3cf3 | |||
| 92e79bbb3f | |||
| 787648177f | |||
| fc9b28910a | |||
| 26d0ed2d81 | |||
| 32e545d9c7 | |||
| e712e6c0c4 | |||
| b143c96abd | |||
| 678b920992 |
7
Makefile
7
Makefile
@ -69,6 +69,8 @@ PYI = $(PB:.proto=_pb2.pyi)
|
|||||||
## Set default to `protobufs`, otherwise `format` is called when typing only `make`
|
## Set default to `protobufs`, otherwise `format` is called when typing only `make`
|
||||||
all: protobufs
|
all: protobufs
|
||||||
|
|
||||||
|
.PHONY: protobufs clean-proto
|
||||||
|
|
||||||
protobufs: $(PY)
|
protobufs: $(PY)
|
||||||
|
|
||||||
%_pb2.py: %.proto
|
%_pb2.py: %.proto
|
||||||
@ -77,6 +79,11 @@ protobufs: $(PY)
|
|||||||
clean-proto:
|
clean-proto:
|
||||||
rm -f $(PY) $(PYI)
|
rm -f $(PY) $(PYI)
|
||||||
|
|
||||||
|
# Force protobuf regeneration by making them always out of date
|
||||||
|
$(PY): FORCE
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
# docs commands
|
# docs commands
|
||||||
|
|
||||||
docs: check-docs
|
docs: check-docs
|
||||||
|
|||||||
48
README.md
48
README.md
@ -34,19 +34,19 @@ ______________________________________________________________________
|
|||||||
| -------------------------------------- | :--------: | :---------------------------------------------------------------------------------: |
|
| -------------------------------------- | :--------: | :---------------------------------------------------------------------------------: |
|
||||||
| **`libp2p-tcp`** | ✅ | [source](https://github.com/libp2p/py-libp2p/blob/main/libp2p/transport/tcp/tcp.py) |
|
| **`libp2p-tcp`** | ✅ | [source](https://github.com/libp2p/py-libp2p/blob/main/libp2p/transport/tcp/tcp.py) |
|
||||||
| **`libp2p-quic`** | 🌱 | |
|
| **`libp2p-quic`** | 🌱 | |
|
||||||
| **`libp2p-websocket`** | ❌ | |
|
| **`libp2p-websocket`** | 🌱 | |
|
||||||
| **`libp2p-webrtc-browser-to-server`** | ❌ | |
|
| **`libp2p-webrtc-browser-to-server`** | 🌱 | |
|
||||||
| **`libp2p-webrtc-private-to-private`** | ❌ | |
|
| **`libp2p-webrtc-private-to-private`** | 🌱 | |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
### NAT Traversal
|
### NAT Traversal
|
||||||
|
|
||||||
| **NAT Traversal** | **Status** |
|
| **NAT Traversal** | **Status** | **Source** |
|
||||||
| ----------------------------- | :--------: |
|
| ----------------------------- | :--------: | :-----------------------------------------------------------------------------: |
|
||||||
| **`libp2p-circuit-relay-v2`** | ❌ |
|
| **`libp2p-circuit-relay-v2`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/relay/circuit_v2) |
|
||||||
| **`libp2p-autonat`** | ❌ |
|
| **`libp2p-autonat`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/host/autonat) |
|
||||||
| **`libp2p-hole-punching`** | ❌ |
|
| **`libp2p-hole-punching`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/relay/circuit_v2) |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
@ -54,27 +54,27 @@ ______________________________________________________________________
|
|||||||
|
|
||||||
| **Secure Communication** | **Status** | **Source** |
|
| **Secure Communication** | **Status** | **Source** |
|
||||||
| ------------------------ | :--------: | :---------------------------------------------------------------------------: |
|
| ------------------------ | :--------: | :---------------------------------------------------------------------------: |
|
||||||
| **`libp2p-noise`** | 🌱 | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/security/noise) |
|
| **`libp2p-noise`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/security/noise) |
|
||||||
| **`libp2p-tls`** | ❌ | |
|
| **`libp2p-tls`** | 🌱 | |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
### Discovery
|
### Discovery
|
||||||
|
|
||||||
| **Discovery** | **Status** |
|
| **Discovery** | **Status** | **Source** |
|
||||||
| -------------------- | :--------: |
|
| -------------------- | :--------: | :--------------------------------------------------------------------------------: |
|
||||||
| **`bootstrap`** | ❌ |
|
| **`bootstrap`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/discovery/bootstrap) |
|
||||||
| **`random-walk`** | ❌ |
|
| **`random-walk`** | 🌱 | |
|
||||||
| **`mdns-discovery`** | ❌ |
|
| **`mdns-discovery`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/discovery/mdns) |
|
||||||
| **`rendezvous`** | ❌ |
|
| **`rendezvous`** | 🌱 | |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
### Peer Routing
|
### Peer Routing
|
||||||
|
|
||||||
| **Peer Routing** | **Status** |
|
| **Peer Routing** | **Status** | **Source** |
|
||||||
| -------------------- | :--------: |
|
| -------------------- | :--------: | :--------------------------------------------------------------------: |
|
||||||
| **`libp2p-kad-dht`** | ❌ |
|
| **`libp2p-kad-dht`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/kad_dht) |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
@ -89,10 +89,10 @@ ______________________________________________________________________
|
|||||||
|
|
||||||
### Stream Muxers
|
### Stream Muxers
|
||||||
|
|
||||||
| **Stream Muxers** | **Status** | **Status** |
|
| **Stream Muxers** | **Status** | **Source** |
|
||||||
| ------------------ | :--------: | :----------------------------------------------------------------------------------------: |
|
| ------------------ | :--------: | :-------------------------------------------------------------------------------: |
|
||||||
| **`libp2p-yamux`** | 🌱 | |
|
| **`libp2p-yamux`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/stream_muxer/yamux) |
|
||||||
| **`libp2p-mplex`** | 🛠️ | [source](https://github.com/libp2p/py-libp2p/blob/main/libp2p/stream_muxer/mplex/mplex.py) |
|
| **`libp2p-mplex`** | ✅ | [source](https://github.com/libp2p/py-libp2p/tree/main/libp2p/stream_muxer/mplex) |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ ______________________________________________________________________
|
|||||||
|
|
||||||
| **Storage** | **Status** |
|
| **Storage** | **Status** |
|
||||||
| ------------------- | :--------: |
|
| ------------------- | :--------: |
|
||||||
| **`libp2p-record`** | ❌ |
|
| **`libp2p-record`** | 🌱 |
|
||||||
|
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,8 @@ class BaseNoiseMsgReadWriter(EncryptedMsgReadWriter):
|
|||||||
read_writer: NoisePacketReadWriter
|
read_writer: NoisePacketReadWriter
|
||||||
noise_state: NoiseState
|
noise_state: NoiseState
|
||||||
|
|
||||||
# FIXME: This prefix is added in msg#3 in Go. Check whether it's a desired behavior.
|
# NOTE: This prefix is added in msg#3 in Go.
|
||||||
|
# Support in py-libp2p is available but not used
|
||||||
prefix: bytes = b"\x00" * 32
|
prefix: bytes = b"\x00" * 32
|
||||||
|
|
||||||
def __init__(self, conn: IRawConnection, noise_state: NoiseState) -> None:
|
def __init__(self, conn: IRawConnection, noise_state: NoiseState) -> None:
|
||||||
|
|||||||
@ -29,11 +29,6 @@ class Transport(ISecureTransport):
|
|||||||
early_data: bytes | None
|
early_data: bytes | None
|
||||||
with_noise_pipes: bool
|
with_noise_pipes: bool
|
||||||
|
|
||||||
# NOTE: Implementations that support Noise Pipes must decide whether to use
|
|
||||||
# an XX or IK handshake based on whether they possess a cached static
|
|
||||||
# Noise key for the remote peer.
|
|
||||||
# TODO: A storage of seen noise static keys for pattern IK?
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
libp2p_keypair: KeyPair,
|
libp2p_keypair: KeyPair,
|
||||||
|
|||||||
1
newsfragments/592.internal.rst
Normal file
1
newsfragments/592.internal.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
remove FIXME comment since it's obsolete and 32-byte prefix support is there but not enabled by default
|
||||||
1
newsfragments/816.internal.rst
Normal file
1
newsfragments/816.internal.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
The TODO IK patterns in Noise has been deprecated in specs: https://github.com/libp2p/specs/tree/master/noise#handshake-pattern
|
||||||
1
newsfragments/818.bugfix.rst
Normal file
1
newsfragments/818.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Recompiled protobufs that were out of date and added a `make` rule so that protobufs are always up to date.
|
||||||
Reference in New Issue
Block a user