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 20, 2018 in Blockchain by anonymous
35 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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 20, 2018 by Perry
• 16,450 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 1, 2018 in Blockchain by Shashank
• 10,330 points
21 views
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
44 views
0 votes
1 answer
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
83 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
• 27,620 points
1,779 views
0 votes
1 answer
0 votes
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 20, 2018 in Blockchain by Perry
• 16,450 points

edited Aug 9, 2018 by Omkar 45 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.