Questions about handling user files in Ethereum DApps.

Asked 1 years ago, Updated 1 years ago, 61 views

I'm making Ethereum DApp now. DApp is made up of users who have relevant data, such as email, name, or profile picture. I want to store user information within IPFS like JSON object and use IPFS hash to refer to these information in the chain. How do I associate this data with a specific user? The subsequent interaction with DApp connects the user to the data stored in IPFS, which returns with a user account hash with a kind of password?

For example, let's say that user A is interested in using DApp, so he provides an email, a name, and a profile picture. So subsequent interactions with DApps, such as comments and posts, will link this user to their respective user data within IPFS.

I would appreciate it if you could give me some advice on how to model users. Thank you!

(Additionally, I'm used to modeling using smart contracts because I use traditional web/mobile apps. So if this is too easy or wrong, I apologize in advance.)

blockchain hyperledger solidity ipfs

2022-09-22 18:45

1 Answers

One of the advantages of using a platform like Ethereum is that you can build a "ZERO click login." If we use the user's 'web3.eth'If 'accounts[0]' is set to be proof that this user controls the private key for that account address, you will always know that you are valid.

"If you want to use IPFS like a database, I'll suggest this approach."

Remember that on most distributed systems a lot of work is done on the client side.

User Signup

User Validation


2022-09-22 18:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.