pub fn import_segment(
meta: &SegmentMeta,
records: &[Value],
pk_id: &[u8; 32],
signature_ok: &dyn Fn(&Value) -> bool,
) -> Result<Vec<StoredEvent>, SegmentError>Expand description
Verify a segment’s records against its manifest entry and turn them into
events to store. Withheld stubs ({seq, withheld: true, leaf}) count
for the root by their leaf and are not stored.