Assuming that user who is going to signup is not having any ethereum account so how can I generate a public, private key and address for ethereum and make use of it to make further transactions. Users of my portal are not expected to have one ethereum account.


You can use https://github.com/ethereumjs/ethereumjs-wallet to create locally in JavaScript an Ethereum wallet. You can store this wallet to a encrypted file. Your user logs in into the application by locally uploading this file and providing the password for the encryption of the keystore.

See "How should I secure a private key in my dapp?" for more examples how you can implement the login to your DAPP.

| improve this answer | |

Your Answer

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

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