2

I was creating a Dapp which will get KYC information from the user, I want to store this data in the blockchain. This data will be accessible through API and it will be used to do KYC process.

In private ethereum, if I try to store the data in smart contracts will it be effective. For each user, I need to store 20 types of data such as name, country, address, social media link, etc.

5
  • In that, they are storing the only hash value in less volume, whereas in my case I need to store a large volume of data in a single contract which leads to exceeds gas limit. Commented Feb 2, 2018 at 13:22
  • 3
    If you're looking at storing large amounts of data, and aren't willing to use something like IPFS, then it might be worth considering why you're using a blockchain in the first place, instead of database. (Might be worth looking at distributed databases? e.g. CouchDB) Commented Feb 2, 2018 at 13:59
  • I am using IPFS for storing the documents. I am using the blockchain technology because I need a tamper-proof data. Commented Feb 3, 2018 at 4:24
  • The data you have listed above looks like strings or something that could be converted to bytes32. Are you running out of gas because the way you store the data (i.e. how you implemented your functions) or the amount of data? Commented Feb 7, 2018 at 9:57
  • Those data are in the format of the string. I have created a struct for each user using mapping function to store the data in the smart contract. Commented Feb 8, 2018 at 4:18

0

Browse other questions tagged or ask your own question.