[S] Data Storage and Access
Data Storage Process
Data Slicing: Initially, data is segmented into equal-sized slices to manage the upload process effectively and enhance security.
Hashing: Each data slice is hashed individually. These hashes serve as a unique identifier and verification tool for each slice of data.
Merkle Tree Storage: The individual hashes are stored in a Merkle Tree structure. This approach not only secures the data integrity by providing a comprehensive hash of all data slices but also optimizes data verification processes.
Contract Submission: The root hash of the Merkle Tree, representing the entire data set, is submitted to the Flow smart contract on the 0G platform. This step is crucial for tracking and verifying the data integrity before and after storage.
Data Upload to Storage Nodes: Each slice of data is then uploaded sequentially to the storage nodes on the 0G network. The smart contract verifies each slice using its hash before it is considered successfully uploaded. This verification ensures that each piece of data stored in the network is intact, unaltered, and securely validated.
Data Retrieval Process
Utilizing Merkle Root Hash: Data retrieval is facilitated by the Merkle Tree's root hash. Users, applications or nodes can request specific data slices by referencing the root hash, which ensures that the retrieved data is correct and unaltered from its original form. The Merkle Tree structure allows for efficient verification of the data slices, ensuring that the integrity of the data is maintained even when accessing small segments of the overall dataset.
Last updated