DApp Development – Creating a Login System for DAPP

dapp-developmentdappsmyetherwallet

I'm building Dapp on Ethereum. The main feature of this Dapp is Register/Login logic. I Don't want to use Metamask, but I want to make Login system like MyEtherWallet without any chrome extention. What's the best way of doing so?

should I use centralized Database? because Dapp won't be decentralized anymore.

Best Answer

For testing purpose we may use metamask/myetherwallet. But for production system in Dapp we have to manage account and its activites like sign the transaction. Here are common steps to make your Dapp functions well.

  1. Account management : This is fundamental part to interact with contract funcitons. Here is web3.eth.accounts module. this explans The web3.eth.accounts contains functions to generate Ethereum accounts and sign transactions and data. you can do almost all things that you do from metamask.

  2. Network RPC End point : Above accounts must be reside from the same network where and which you have enabled the RPC port.

  3. Dapp Hosting : Ultimately your blockchain is distributed and decentralized but your dapp no need to be distributed and decentralized. You can host any where you can like AWS, Google Cloud. Only you need is private/public key to interact with blockchain. It means that you have to take care of your account and signing mechanism that means keep your private key separate and safe.

Whether you implement your dapp using web3 or native go language or any . The concept is the same.

If you have your separate private key and only you can interact with that key, so there is no such restriction to make decentralization of user interaction with centralized user interface.

Related Topic