walletpassphrase CLI / RPC not intuitive and unsafe to use #768
Labels
Component: RPC
Related to the console commands themselves.
Component: Wallet
Relating to keystore, tx creation, and balance tracking
Issue Type: Change Request
The way something is done in the application should be changed.
Priority: 1 - Low
Non-critical, low impact
Milestone
When using walletpassphrase, it can be awkward. Switching between staking on and the moment you want to send some coins for instance isn't as intuitive as in the wallet. Further, the fact that you must enter your passphrase in plainttext is kind of a large issue in the CLI. I understand this issue persists in Bitcoin too. Also, if you unlock for staking only, I would imagine that the timeout value should by default be unlocked for an infinite amount of time. Who would want to come back every so often just to unlock their wallet only for staking when it times out?
If I have my wallet unlocked for staking only I should be prompted for my passphrase when sending coins. I should not have to unlock my wallet just for 60 seconds just to send coins, then re-lock it for staking only. Further, the prompt shouldn't expose my password if its the CLI. RPC is different as it's expected that you should use https. That may cause an issue as CLI and RPC share the same methods.
Example of steps taken to send coins then reunlock to allow for staking only:
Proposed change:
Even better security conscious change:
The last example would be best so that someone isn't able to extract a password and still can be fit into the CLI, perhaps.
The text was updated successfully, but these errors were encountered: