Module integrity

Module integrity 

Source
Expand description

Content integrity verification for CHIE Protocol.

This module provides:

  • Chunk hash verification
  • Merkle tree construction and verification
  • Content manifest validation

Structs§

ContentManifest
Content manifest with integrity information.
ContentVerifier
Content verifier for streaming verification.
IntegrityRepairResult
Result of an integrity repair operation.
IntegrityRepairer
Automatic integrity repair system.
ManifestBuilder
Builder for content manifests.
RepairStats
Statistics for repair operations.

Enums§

IntegrityError
Integrity verification error.
RepairStrategy
Repair strategy for corrupted chunks.

Constants§

DEFAULT_CHUNK_SIZE
Default chunk size for integrity verification (256 KB).

Functions§

verify_content
Verify complete content from a reader against a manifest.
verify_single_chunk
Quick verification helper for single chunk.