Re: Write hash of data in ledger

Nikos Karamolegkos

I don't to want to store to an external database from the chaincode. I just want to write the data to a independent from BC database as usual. In the BC database I would write the hash of the data. Thus, each time a I want to retrieve the data from the external database I would compare the hash stored to BC against the hash of retrieved data. In this way, I can verify the integrity of the data. This is one way to go but I am looking for something smarter in order to cover the case of retrieving a batch of data (i.e different timestamps) corresponding to multiple hashes.

Join to automatically receive all group messages.