Merge pull request #803 from acul71/fix/fix-592-32bytes_prefix_go_fixme_comment

Remove FIXME about 32 bytes prefix in noise
This commit is contained in:
Manu Sheel Gupta
2025-08-08 12:51:44 +05:30
committed by GitHub
2 changed files with 3 additions and 1 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

@ -0,0 +1 @@
remove FIXME comment since it's obsolete and 32-byte prefix support is there but not enabled by default