pub fn check_pack_commitment(
auth: &VerifiedAuth,
pack_id: &[u8],
total_bytes: u64,
) -> Result<(), PackCommitmentMismatch>Expand description
Check an UploadPack header against the signed pack: commitment,
before any quota is reserved or chunk read.
ยงErrors
PackCommitmentMismatch when the commitment is not pack: or names a
different id or length.