0

I'm trying to build a sample dapp. The login process in ethereum dapps usually involves signing a message from metamask to prove ownership of an account. Is there a way we could design login in such a way that the user gets logged in automatically when sending a transaction (invoking a state changing function). This is feasible since both operations require signing. Any ideas please ?

  • Can you implement login in DApp, which can work with both ways (1) singing message - no cost (2) sending transaction? little more example of Dapp logic please? – Yogesh - EtherAuthority.io Jan 24 at 13:28
  • login in my dapp will only be required to provide a list of prior transactions performed by the user, or any other such user specific data. Also, like you mentioned, login should happen in either way. Either, user explicitly logs in by clicking on the login button on the top right and signing a message (like cryptokitties), or user can also login directly during sending a transaction. – Kombo Jan 24 at 13:34
  • Will this more simpler approach, to check if user is logged-in at metamask and get the wallet address directly and display all the user specific data or do user specific functions? – Yogesh - EtherAuthority.io Jan 24 at 13:44
  • If the app shows data that is already in the blockchain what is the purpose of logging? knowing the address allows anyone to check all the activity of an address – Jaime Jan 24 at 14:25
  • @jaime if that were true then why do we need wallet dapps that showcase your transaction history? cant people just access it from the blockchain directly? ... – Kombo Jan 24 at 14:27

Your Answer

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

Browse other questions tagged or ask your own question.