mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
vault backup: 2022-12-19 12:09:11
This commit is contained in:
parent
faff49ad04
commit
a0b42df873
@ -14,4 +14,3 @@ Merkle trees exist to prove consistency of data. They are essentially a tree of
|
||||
|
||||
They provide a means to prove the integrity and validity of data. E.g., if you change the value of a data block, the entire path leading to the root hash would also be changed. So, if we hold the value of the root hash, we could verify the consistency of data by rebuilding the trie to get the root hash and compare it to the value we are holding.
|
||||
|
||||
|
||||
|
||||
@ -95,4 +95,6 @@ I started reading the bitcoin paper again. In bitcoin they are able to save spac
|
||||
|
||||
In etherum each block hold the entire state of the chain. The state is stored in a tree structure. And for each block only a small part of the tree needs to be changed. So the data can be stored once, and referenced twice using pointers. This is done using a "patricia tree". Patricia trees are similar to merkle trees but the allow insertion and deletion of nodes. Also since the entire state is stored on each chain there is no need to store the entire blokchain history.
|
||||
|
||||
So,
|
||||
Did some research on [[merkle tree]]s. Think in bitcoin and ethereum the raw data is also stored somewhere, not only the hashes. But then how does pruning the tree help in bitcoin. Does bitcoin just not store a record of transactions? Does ethereum? I know where blockchain is stored but not what is stored.
|
||||
|
||||
https://www.makeuseof.com/what-data-stored-bitcoin-blockchain/ From here it seems that within a block the transactions are stored separately from the merkle tree. And the number of transactions in a block cannot take up more than 1MB.
|
||||
Loading…
Reference in New Issue
Block a user