Skip to main content

read_bundle

Function read_bundle 

Source
pub fn read_bundle(
    root: &Path,
    checkpoint: &[u8; 32],
    byte_budget: usize,
    sidecar: &mut [u8; 768],
    payload: &mut [u8],
    authority: &mut impl CustodyAuthority,
) -> Result<ReadBundle, CustodyError>
Expand description

Read and verify one complete bundle into caller-owned buffers. Output is cleared on failure or unwind. Host read permission precedes I/O and is rechecked after receipt verification. The budget limits encoded entry size; an additional byte may be read to reject trailing data. This does not establish chain completeness.