Module sn_protocol::storage
source · Expand description
Storage types for spends, chunks and registers.
Structs
- Chunk, an immutable chunk of data
- Address of a Chunk
- The Chunk along with the Payment is written as Record to kademlia
- The address of a Dbc in the network. This is used to find information of if it is spent, not to store the actual Dbc.
- Address of a Register on the SAFE Network
Enums
Functions
- Utility to deserialize a
KAD::Recordinto any type. UseRecordHeader::from_recordif you want theRecordHeaderinstead. - Utility to serialize the provided data along with the RecordKind to be stored as Record::value