Merge branch 'main' into varun-r-mallya/protobuf-update

This commit is contained in:
Manu Sheel Gupta
2025-08-10 11:29:59 +05:30
committed by GitHub
5 changed files with 28 additions and 30 deletions

View File

@ -41,7 +41,8 @@ class BaseNoiseMsgReadWriter(EncryptedMsgReadWriter):
read_writer: NoisePacketReadWriter
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
def __init__(self, conn: IRawConnection, noise_state: NoiseState) -> None:

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,