A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame. Zstandard’s decompression code verifies the checksum. If there is a mismatch a ZstdError exception is raised.
compression.zstd/CompressionParameter.checksum_flag
CompressionParameter.checksum_flag