pub fn open_segment(
key: &SegmentKey,
sealed: &[u8],
expect: &SegmentExpectation<'_>,
limits: &Limits,
out: impl Write,
) -> Result<()>Expand description
Verifies and opens an artifact segment, writing the concatenated files to out.
Nothing is written unless every chunk authenticates; the decompressed output is then
bounded by the signed plain_len. A failure while writing leaves out partial, so the
caller discards it on any error.