Skip to main content

Module data_types

Module data_types 

Source
Expand description

Data type definitions for chunk storage.

This module provides the core data types for content-addressed chunk storage on the Autonomi network. Chunks are immutable, content-addressed blobs where the address is the BLAKE3 hash of the content.

Structs§

ChunkStats
Statistics about chunk operations.
DataChunk
A chunk of data with its content-addressed identifier.

Functions§

compute_address
Compute the content address (BLAKE3 hash) for the given data.
peer_id_to_xor_name
Convert a hex-encoded peer ID string to an XorName.
xor_distance
Compute the XOR distance between two 32-byte addresses.

Type Aliases§

XorName
A content-addressed identifier (32 bytes).