Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: morbius55 on April 15, 2021, 08:17:08 PM



Title: Bitcoin cli wallet unlock question
Post by: morbius55 on April 15, 2021, 08:17:08 PM
Can this command decrypt the wallet.dat in the directory even if it has never been loaded into bitcoin core? Also, does it leave that file sitting in the directory unencrypted? Thanks for any info.


Title: Re: Bitcoin cli wallet unlock question
Post by: HCP on April 15, 2021, 09:09:43 PM
bitcoin-cli is just the way to interact with bitcoind... it passes the commands to the bitcoind daemon and then returns the responses to you.

The wallet would already need to be loaded by bitcoind (which is essentially the same as having it loaded via the Bitcoin Core GUI) for the walletpassphrase option to work. Same with using dumpwallet with bitcoin-cli... the wallet would already need to be loaded by bitcoind.


Title: Re: Bitcoin cli wallet unlock question
Post by: morbius55 on April 15, 2021, 09:14:28 PM
bitcoin-cli is just the way to interact with bitcoind... it passes the commands to the bitcoind daemon and then returns the responses to you.

The wallet would already need to be loaded by bitcoind (which is essentially the same as having it loaded via the Bitcoin Core GUI) for the walletpassphrase option to work. Same with using dumpwallet with bitcoin-cli... the wallet would already need to be loaded by bitcoind.
So I'm assuming it would get mauled again, rather than being in it's original raw form?


Title: Re: Bitcoin cli wallet unlock question
Post by: HCP on April 15, 2021, 09:50:07 PM
Correct... Bitcoin Core is basically bitcoind with a pretty GUI on top... so anything that Bitcoin Core would do, bitcoind would also do.


Title: Re: Bitcoin cli wallet unlock question
Post by: morbius55 on April 15, 2021, 09:51:46 PM
Correct... Bitcoin Core is basically bitcoind with a pretty GUI on top... so anything that Bitcoin Core would do, bitcoind would also do.
Grrr, okay thanks for your help as usual. :)