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.

1

2 Answers 2

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.

2
  • 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. May 1, 2017 at 5:11
  • Not sure about this, will find out and keep you posted.
    – Sanchit
    May 1, 2017 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.

1
  • 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? May 1, 2017 at 5:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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