pub fn decode_parallel(
shared_secret: &[u8],
packet: &KkParallelPacket,
) -> Result<Vec<u8>>Expand description
Decode a parallel-encoded packet, verifying the Merkle root and each chunk.
Steps:
- Recompute the Merkle root from chunk commitments
- Verify it matches the packet’s stored root (detects reorder/tamper)
- Decrypt all chunks in parallel
- Concatenate plaintext in order