2

I have tried developing Dapps using ethereum blockchain network.

If we are going to have the Blockchain as our truth value of our app. Whether all the data related to app will be stored and retrieved from blockchain ?

Else, do we need to have any intermediary data store which will connect with UI. And also, is that efficient way to make use of logs to get the data from blockchain by watching all the events logs using web3 channel.

4

I'm a newbie in Blockchain domain, but with my limited experience, I suggest, you should explore IPFS for storage. "IPFS and blockchain are a very good combination".

Storing data on blockchain can be less efficient; So with IPFS, basically data would be stored on blockchain only as a hash and files would be present on IPFS(Interplanetary file system).

Also, you are right that events are cheaper(efficient) in compare to storing data in state variables and retrieval.

  • Thanks @sanchit. I agree with you for storing files in IPFS. But can I have a same private key to sign the IPFS signing and ethereum signing. Otherwise each is different blockchain based platform we could be pushed to have two different private keys. – Seetharaman GR May 1 '17 at 5:11
  • Not sure about this, will find out and keep you posted. – Sanchit May 1 '17 at 6:39
2

Short answer, for now you need to host these on traditional hosting infrastructure.

However the storage layer for DApps in the near future will be Swarm.

For the time being you should continue using events to emit transaction logs, it is the only way to get notifications for now.

  • In swarm, if I'm storing a file and getting the hash putting in blockchain. How can i restrict someone could not access that file by only getting the hash. Any suggested way? – Seetharaman GR May 1 '17 at 5:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.