Merge remote-tracking branch 'origin/add-ws-transport' into add-ws-transport

This commit is contained in:
acul71
2025-08-11 01:41:56 +02:00
4 changed files with 4 additions and 8 deletions

View File

@ -39,8 +39,6 @@ from .peerinfo import (
PERMANENT_ADDR_TTL = 0
# TODO: Set up an async task for periodic peer-store cleanup
# for expired addresses and records.
class PeerRecordState:
envelope: Envelope
seq: int
@ -217,7 +215,6 @@ class PeerStore(IPeerStore):
# -----CERT-ADDR-BOOK-----
# TODO: Make proper use of this function
def maybe_delete_peer_record(self, peer_id: ID) -> None:
"""
Delete the signed peer record for a peer if it has no know

View File

@ -29,11 +29,6 @@ class Transport(ISecureTransport):
early_data: bytes | None
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__(
self,
libp2p_keypair: KeyPair,

View 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

View File

@ -0,0 +1,3 @@
Remove the already completed TODO tasks in Peerstore:
TODO: Set up an async task for periodic peer-store cleanup for expired addresses and records.
TODO: Make proper use of this function