Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2025 Changes in this version + func ComputeChunkHash(data []byte) string + func ReassembleChunks(chunks [][]byte) []byte + func ShouldChunk(fileSize int64, thresholdBytes int64) bool + func SplitFile(data []byte, chunkSizeBytes int) [][]byte + func VerifyChunkIntegrity(chunk []byte, meta ChunkMetadata) error + func VerifyChunks(chunks [][]byte, expectedFileHash string) error + type ChunkDiff struct + Data []byte + Hash string + Index int + type ChunkMetadata struct + ChunkHash string + ChunkIndex int + ChunkSize int + FileHash string + TotalChunks int + func CreateMetadata(fileData []byte, chunks [][]byte) []ChunkMetadata