pub fn parse_payload_digest_stream(
bytes: &[u8],
) -> Result<Vec<PayloadDigestEntry>>Expand description
Reads a list back into entries, refusing anything a serialiser could not have produced.
This parses bytes that arrived with the tree they describe, so it is written as a scanner over a fixed frame rather than a split on separators: a newline is legal inside a filename, and only the NUL delimiter and the fixed-width hash field make the framing unambiguous. A caller must have already compared the stream’s hash against the signed release — parsing is not a trust decision, and nothing here makes untrusted bytes safe.
§Errors
When the stream is not exactly what payload_digest_stream emits.