Expand description
Chunk types and operations
This module provides implementations of various chunk types used in the storage system, along with functionality for creating, parsing, and verifying chunks.
§Chunk Type System
The chunk system is built around a hierarchy of traits:
Chunk- Core trait for all chunk typesChunkType- Adds compile-time type identificationChunkTypeSet- Defines which chunk types a system supports
§Type-Erased Chunks
The AnyChunk enum provides runtime polymorphism for chunks without
requiring object-safe traits.
Re-exports§
pub use encryption::ChunkEncrypt;
Modules§
- encryption
- Chunk encryption using Keccak-256 counter-mode cipher.
Structs§
- Chunk
Type Id - Wire-level chunk type identifier.
- Content
Chunk - A content-addressed chunk with configurable body size.
- Content
Only Chunk Set - A chunk type set that accepts only content-addressed chunks.
- Encrypted
Content Chunk - Result of encrypting a content chunk.
- Single
Owner Chunk - A single-owner chunk with configurable body size.
- Standard
Chunk Set - Standard Swarm chunk type set.
Enums§
- AnyChunk
- Type-erased chunk for runtime polymorphism with configurable body size.
Traits§
- BmtChunk
- Trait for chunks that contain a BMT body
- Chunk
- Core trait for all chunk types in the system.
- Chunk
Header - Core trait for chunk header
- Chunk
Metadata - Core trait for chunk metadata
- Chunk
Serialization - Trait for serializing chunks with type prefix.
- Chunk
Type - Trait for chunk types with compile-time type information.
- Chunk
Type Set - Trait defining a set of supported chunk types with configurable body size.
Type Aliases§
- Chunk
Address - Type alias for chunk addresses