Skip to content

Commit

Permalink
Merge pull request #476 from andreypfau/patch-3
Browse files Browse the repository at this point in the history
Bag Updating -> Recreating
  • Loading branch information
reveloper authored Feb 15, 2024
2 parents 42f27af + c6d63dc commit e09b778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/participate/ton-storage/storage-daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You can compile `storage-daemon` and `storage-damon-cli` from sources using this
* TON Storage's network part is based on technology similar to torrents, so the terms *Torrent*, *Bag of files*, and *Bag* will be used interchangeably. It's important to note some differences, however: TON Storage transfers data over [ADNL](/learn/networking/adnl) by [RLDP](/learn/networking/rldp) protocol, each *Bag* is distributed through its own network overlay, the merkle structure can exist in two versions - with large chunks for efficient downloading and small ones for efficient ownership proof, and [TON DHT](/learn/networking/ton-dht) network is used for finding peers.
* A *Bag of files* consists of *torrent info* and a data block.
* The data block starts with a *torrent header* - a structure that contains a list of files with their names and sizes. The files themselves follow in the data block.
* The data block is divided into chunks (128 KB by default), and a *merkle tree* (made of TVM cells) is built on the SHA256 hashes of these chunks. This allows building and verifying *merkle proofs* of individual chunks, as well as efficiently updating the *Bag* by exchanging only the proof of the modified chunk.
* The data block is divided into chunks (128 KB by default), and a *merkle tree* (made of TVM cells) is built on the SHA256 hashes of these chunks. This allows building and verifying *merkle proofs* of individual chunks, as well as efficiently recreating the *Bag* by exchanging only the proof of the modified chunk.
* *Torrent info* contains the *merkle root* of the
* Chunk size (data block)
* the list of chunks' sizes
Expand Down

0 comments on commit e09b778

Please sign in to comment.