You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EthLib's gossipsub work found that libp2p never says how one gossipsub message is separated from the next on a stream; the question is open upstream, and this issue follows it until EthLib has reacted to the answer.
Size: S
The problem
Two gossipsub peers exchange messages called RPCs over one long-lived stream.
An RPC is a protobuf message, and protobuf messages are not self-delimiting: their bytes do not say where they end.
EthLib decodes one RPC from its bytes, but cannot specify how a node reads a stream of them, because the source does not say. libp2p/specs#747 asks.
The idea
libp2p/specs#747: is each RPC prefixed with its length as an unsigned varint, as other libp2p protocols state, and how does that relate to the 1 MiB message limit?
Answered: specify the stream reader with the stated framing, and prove that writing then reading a list of RPCs gives the list back.
Closed with no answer: record in SOUNDNESS.md that EthLib specifies single RPCs only.
libp2p/specs#754 proposes the answer: each RPC on a stream is prefixed with its length as an unsigned varint. When it merges, specify the stream reader with that framing.
Example
A peer sends two RPCs, each subscribing to topic a; each one is the 7 bytes 0a 05 08 01 12 01 61.
Read as one protobuf, the 14 bytes are a single RPC with two subscriptions.
So without a framing rule, the receiver cannot tell one RPC from two.
Done when
The box is ticked with the EthLib PR that reacted, or with the SOUNDNESS.md entry that records the gap.
From the trace of Noise and peer IDs (#3978): libp2p/specs#749 (links to a removed section of noise-libp2p) and libp2p/specs#750 (peer-ids counted two requirements and listed four).
Status on 2026-11-24: libp2p/specs#747 and its answer #754 are still open, so the stream reader waits. Six other reports merged between 2026-11-22 and 2026-11-23: #748 (pubsub links), #749 (noise links), #750 (peer-ids count), #751 (yamux unit), #752 (tls typos) and #753 (flood publishing at the threshold). EthLib's rule already includes a peer at the publish threshold. The yamux note on 256KiB against 256KB is now stale; a follow-up PR moves the yamux citation to libp2p/specs 1a084b6 and drops it. multiformats/multistream-select#26 is open.
Activity
tcoratger commentedon Nov 22, 2026
From the trace of the gossipsub router (#3971): libp2p/specs#748 (two broken section links in the pubsub specs).
tcoratger commentedon Nov 22, 2026
From the trace of Noise and peer IDs (#3978): libp2p/specs#749 (links to a removed section of noise-libp2p) and libp2p/specs#750 (peer-ids counted two requirements and listed four).
tcoratger commentedon Nov 22, 2026
From the trace of the muxers (#3979): libp2p/specs#751 (the yamux initial window in two units, and typos).
tcoratger commentedon Nov 22, 2026
From the trace of the TLS messages and certificates (#3983): libp2p/specs#752 (two typos in tls.md).
tcoratger commentedon Nov 22, 2026
From the traces of gossipsub (#3971) and the muxers (#3979): libp2p/specs#753 (flood publishing reaches a peer at the publish threshold) and multiformats/multistream-select#26 (two typos).
tcoratger commentedon Nov 24, 2026
Status on 2026-11-24: libp2p/specs#747 and its answer #754 are still open, so the stream reader waits. Six other reports merged between 2026-11-22 and 2026-11-23: #748 (pubsub links), #749 (noise links), #750 (peer-ids count), #751 (yamux unit), #752 (tls typos) and #753 (flood publishing at the threshold). EthLib's rule already includes a peer at the publish threshold. The yamux note on 256KiB against 256KB is now stale; a follow-up PR moves the yamux citation to libp2p/specs
1a084b6and drops it. multiformats/multistream-select#26 is open.docs(yamux): cite the Flow Control section after its unit fix
docs(yamux): cite the Flow Control section after its unit fix (#4322)
tcoratger commentedon Nov 25, 2026
Status on 2026-11-25: libp2p/specs#747 and its answer #754 are still open, and so is multiformats/multistream-select#26. The stream reader keeps waiting.
tcoratger commentedon Nov 26, 2026
Folded into #3632, which now tracks every open upstream report in one checklist, with EthLib's action for each outcome.