Module storage

Source
Expand description

Storage types for GraphEntry and Chunk

Structs§

Chunk
Chunk, an immutable chunk of data
ChunkAddress
Address of a Chunk
GraphEntry
A generic GraphEntry on the Network.
GraphEntryAddress
Address of a GraphEntry, is derived from the owner’s unique public key
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
PointerAddress
Address of a pointer, is derived from the owner’s public key
RecordHeader
Scratchpad
Scratchpad, a mutable space for encrypted data on the Network
ScratchpadAddress
Address of a Scratchpad on the SAFE Network

Enums§

DataTypes
Data types that natively suppported by autonomi network.
PointerTarget
RecordKind
To be used between client and nodes, hence need to indicate whehter payment info involved.
ValidationType
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. Use RecordHeader::from_record if you want the RecordHeader 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§

GraphContent
Content of a graph, limited to 32 bytes