What is the best way to search for an item in blockchain

+1 vote
I understand that all the transaction and records are maintained via merkle trees, suppose I want to search a value in the blockchain, how can this be done??
Apr 21, 2018 in Blockchain by anonymous
1,900 views

1 answer to this question.

+1 vote
Best answer

All transactions and records in blockchain are hashed to form merkle tree. All these hashes gives no information about the content, these are just random alpha numeric digest of the actual content.

So, there is no way to find about the content however the authenticity of the data can be checked from the corresponding digest. also, the hash pointing to the previous block may help you find the previous block, but its of no use cus you cannot find any information from that also.

So, there is no way to find the value you want to search for. If you want to check for the authenticity of any data you can traverse the tree to match the hash of that record. The graph is linear, and that the nodes previously added to the graph don't change too often. The immutability of the previously added nodes should certainly be used for efficiency when you update your data structures: if you already have seen those nodes, there is no need to re-scan them every time.

answered Apr 21, 2018 by Perry
• 17,100 points

selected Aug 10, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

What could be the best term to use for the collection of contracts in a .sol file?

module - don't think so. Because module ...READ MORE

answered Jun 2, 2018 in Blockchain by Shashank
• 10,400 points
730 views
0 votes
0 answers
0 votes
1 answer

In a Blockchain, how difficult is it to modify the third to last block?

Technically, it's not difficult at all, all ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
1,027 views
0 votes
1 answer
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
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,740 points
45,219 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
1 answer
+1 vote
1 answer

Is it possible to store blockchain in a sql or no-sql database?

Currently, following are the options to store ...READ MORE

answered Apr 21, 2018 in Blockchain by Perry
• 17,100 points

edited Aug 9, 2018 by Omkar 1,136 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