Expand description
Storage types for GraphEntry and Chunk
Structs§
- Chunk
- Chunk, an immutable chunk of data
- Chunk
Address - Address of a
crate::storage::chunks::Chunk
. - Graph
Entry - A generic GraphEntry on the Network.
- Graph
Entry Address - Address of a
crate::storage::graph::GraphEntry
. - Pointer
- Pointer, a mutable address pointing to other data on the Network It is stored at the owner’s public key and can only be updated by the owner
- Pointer
Address - Address of a
crate::storage::pointer::Pointer
It is derived from the owner’s public key - Record
Header - Scratchpad
- Scratchpad, a mutable space for encrypted data on the Network
- Scratchpad
Address - Address of a
crate::storage::scratchpad::Scratchpad
It is derived from the owner’s public key
Enums§
- Address
Parse Error - Data
Types - Data types that natively suppported by autonomi network.
- Pointer
Target - The target of a pointer, the address it points to
- Record
Kind - To be used between client and nodes, hence need to indicate whehter payment info involved.
- Validation
Type - Indicates the type of the record content. This is to be only used within the node instance to reflect different content version. Hence, only need to have two entries: Chunk and NonChunk.
Functions§
- try_
deserialize_ record - Utility to deserialize a
KAD::Record
into any type. UseRecordHeader::from_record
if you want theRecordHeader
instead. - try_
serialize_ record - Utility to serialize the provided data along with the RecordKind to be stored as Record::value Returns Bytes to avoid accidental clone allocations
Type Aliases§
- Graph
Content - Content of a graph, limited to 32 bytes