0
I want to do simple blockchain implementation on golang, i have mongodb database with user info (Name, cardID, etc.) i want to store several information inside blockchain, and to put it inside another database BoltDB. But idk how to make this data immutable I mean how to make changes visible, for example I insert one user with (Name: Jhon, CardId: '777845') inside blockchain and after some time another guy will change this User's fileds (Name: 'Jhon', CardId: '1111'), and inside my blockchain it still will be (Name: Jhon, CardId: '777845')
A blockchain's data is immutable by definition. What are you trying to do that's not working? – Raghav Sood – 2018-08-23T06:59:58.480
I have one database (MongoDb) from that db I am fetching New coming users, and store it 'in a blockchain' another DB (BoltDb) -> i did it exactly like here https://github.com/Jeiwan/blockchain_go, my issue is it possible to check for changes in mongodb. if someone will change data inside MongoDb, but i have already stored this data inside my second db, i want to see what have changed
– CreatingDED – 2018-08-23T07:10:02.083A blockchain has nothing to do with mongodb. As long as your data is in the chain, it is not possible to retroactively edit it. You can add new blocks with other data, but the existing blocks are immutable. You should be able to compare the data in existing blocks with the data in your mongodb to check if it has changed – Raghav Sood – 2018-08-23T07:17:16.527