How to create a version control for a simple array using blockchain?

0 votes

I have built a very simple blockchain in which I want to record additions of new numbers, deletions, and interchanging of numbers. How do i store these changes without giving them a lot of storage space? 

I've considered creating a merkle tree of all the elements of the array and storing the merkle root to check whether the version matches or not, but storing the same data into multiple blocks is redundant and inefficient.

Aug 30, 2018 in Blockchain by sabby
• 4,050 points
32 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.
0 votes

For tracking changes you may simply save individual changes for every element in array. In your example it would like this:

STATE 1: [1:3,2:4,3:5,4:6]
STATE 2: [5:4]
STATE 3: [1:1,2:-1]

It won't be space-efficient if there are lots of changes with every state update. But if more then half of the array stays the same, you will benefit.

Merkle Tree is used for verifying individual blocks of data(transactions) received from unknown or little-known sources. It is used in blockchain wallets or torrent clients. It is not used for storing arrays.

answered Aug 30, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

0 votes
1 answer

How to create a cryptocurrency based reward system using Ethereum?

I doubt that you'd need a decentralized ...READ MORE

answered May 30, 2018 in Blockchain by Shashank
• 10,330 points
53 views
0 votes
1 answer

How can I create a blockchain for keeping records?

​You can use an already existing Blockchain. ...READ MORE

answered Jun 27, 2018 in Blockchain by Christine
• 15,790 points
29 views
0 votes
1 answer

How to build a non-payment application using Ethereum blockchain?

I hope the following link is helpful ...READ MORE

answered Jul 17, 2018 in Blockchain by digger
• 27,620 points
23 views
0 votes
1 answer

Looking for a simple Blockchain PoC to implement on a office level

Hyperledger has been collecting some use cases, though not ...READ MORE

answered Jul 24, 2018 in Blockchain by ariaholic
• 7,320 points
99 views
+13 votes
2 answers
0 votes
1 answer
+4 votes
1 answer
0 votes
1 answer

How to create a new wallet on a blockchain?

Firstly, you need to have a clear ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
42 views
0 votes
1 answer

How can i create a simple P2P network on a blockchain?

To develop your own cryptocurrency, you need ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
44 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.