How is data retrieved in Ethereum

+1 vote

Since every transaction in ethereum is hashed to form a merkle tree, how is it possible to retrieve a particular data(or transaction) form the hashed tree??

Apr 16, 2018 in Blockchain by Perry
• 17,100 points
955 views

1 answer to this question.

+1 vote
Best answer

Blockchain uses the concept of Merkle trees to store the hashes of information. Example Bitcoin uses Merkle trees to strore hashes of transactional data, while Ethereum uses Merkle Patricia tree structure. Where Mekle trees does is, it hashes the transaction and generates a root hash of them.

The branches consists of the hashes going up along the path to the root. Noe suppose there is a large database, the data of which is stored in a merkle tree. Now, if the root of the tree is publicly known and the user wants to retrieve the data based on the key-value pair, he can ask for a merkle proof and upon receiving the proof he can verify the position of the data.
Let's talk about the Ethereum: In Ethereum, every block header contains three kind of Merkle trees. a tree of transactions, tree of receipts and a tree of state Now, the three different trees account for getting a verifiable answers to many queries.
Since state in Ethereum consists of a key-value map where the keys are addresses and the values are account declarations, listing the balance, nonce, code and storage for each account . Since the state needs to frequently updated, the keys in the storage are frequently inserted and deleted and also new accounts are updated.

answered Apr 16, 2018 by Shashank
• 10,400 points

selected Aug 7, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

How to set the hex-encoded data field in a Web3j Ethereum transaction?

You can use the "data" field of ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,220 points
3,005 views
+1 vote
1 answer

How the data stored in the blockchain is verified?

Hey @mayukha. When a transaction is is ...READ MORE

answered May 21, 2019 in Blockchain by Rajendra
832 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 1,568 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,428 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
3 answers

How efficient is Ethereum in regard to its TPS??

TPS means transactions processing at any given ...READ MORE

answered Apr 16, 2018 in Blockchain by Shashank
• 10,400 points
3,768 views
+1 vote
1 answer

How to store state data in Ethereum blockchain?

You won't have to overwrite the whole ...READ MORE

answered Apr 25, 2018 in Blockchain by Shashank
• 10,400 points
972 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP