trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

Consider adding CLI prompt for mnemonic password #3363

Open gnidan opened 4 years ago

gnidan commented 4 years ago

Not sure if this is feasible, but this might be a useful capability:

Enhancement

As a Truffle user, when connecting to a public network, I should not need to pre-configure Truffle with mnemonic password information.

Instead, in such situations, Truffle should prompt me on the command-line to enter my password in a "no echo" fashion.

Notes

There's likely gotchas here - what commands do we support? Certainly, we can't always guarantee access to stdin, and it might be tricky to enumerate all the edge cases. A better solution might be to add a new provider that runs a webserver + relies on MetaMask or WalletConnect or such.

Opening this issue just for consideration.

rmourey26 commented 3 years ago

I couldnt agree more with the premise and motivations behind your idea. In my opinion, the truffle deployment/accounts config website docs are in need of much more detail regarding the full set of HDWallet-Provider constructors. But overall deployment and accounts management could use some freshening up. I have some ideas and will return at later time after figuring out why I keep receiving deployment timeout erros on live network at 750 seconds.