Skip to main content

check_pack_commitment

Function check_pack_commitment 

Source
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.