pub fn reconstruct_redundant(received: &[Vec<u8>]) -> Option<(u64, Vec<u8>)>Expand description
Reconstruct a message from a bag of received FEC shards. Groups by message id and
reconstructs the first message that has at least k distinct shards present; returns
its (msg_id, payload). Shards from other messages, malformed shards, header-
inconsistent shards, and duplicate indices are ignored. None if no message has
reached its k-shard threshold.