@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Function selectB2ComparableSha1

    • Extracts the best comparable SHA-1 value from a B2 file version.

      B2's primary contentSha1 is authoritative for single-part uploads when it is a verifiable digest. Large/multipart B2 files report contentSha1: null; fileInfo.large_file_sha1 is caller-provided metadata, so it is returned as an untrusted hint that cannot prove equality until the high-level synchronizer hashes the selected version's bytes.

      Parameters

      Returns string | null

      A lowercase comparable SHA-1, an untrusted sentinel, or null when unavailable.