pub fn extract_block_slice_with_outboard(
content: &[u8],
outboard: &[u8],
index: u32,
) -> Result<Vec<u8>>Expand description
Extract a Bao verified slice for block index reusing a prebuilt outboard.
Building the outboard hashes the whole chunk, so when several blocks of the
same chunk are opened in one challenge (round + final, plus any dedup), the
caller builds the outboard once (see ChunkOpener) and calls this per
block instead of re-hashing. Borrows content directly (no copy).
ยงErrors
Surfaces an in-memory Bao extraction error as a Result rather than a panic;
it cannot happen for a well-formed in-memory chunk and outboard.