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
The libp2p adapter (`dkgGossipMsgId`) rejects unsigned messages
because they have no publisher identity, but the raw primitive
(`dkgGossipMsgIdRaw`) used to silently accept the equivalent
`publisherIdBytes.length === 0` case — reopening the exact false-dedup
hazard the adapter was built to close. Any future backend or consumer
that forgot to plumb publisher-identity bytes through the raw
primitive would have shipped a quiet correctness bug at the
cross-backend boundary the primitive was meant to lock down.
Add `DkgGossipMissingPublisherError` (exported from network/index +
core/index) and throw it from `dkgGossipMsgIdRaw` on empty input.
Updated the "returns 32-byte SHA256" test to use a non-empty
publisher (the empty-publisher case is now an error, not a vector).
Added a regression test pinning the throw.
17/17 gossip-msg-id tests pass.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments