Bitcoin Forum
May 09, 2024, 12:31:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Walletlock and wallet.dat file  (Read 340 times)
columbo (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 1


View Profile
October 28, 2017, 04:01:55 PM
 #1

If walletlock is implemented on bitcoin core, bitcoin-cli send out commands are only working if wallet is unlocked for a certain period of time. What happens in this case with the wallet.dat file?

1. I assume, if somebody is maliciously accessing my wallet.dat file while the wallet is locked, he can import the wallet.dat to another bitcoin core but he can not spend anything without the walletpassphrase, right?
2. What happens if the wallet.dat file is maliciously accessed while the wallet is unlocked? For example, wallet is unlocked for 10 minutes between 5 and 5:10 PM. Somebody is downloading the wallet at 5:01 PM and imports it into another bitcoin core until 5:05 PM. Can he spend all the coins until 5:10 PM without having to unlock the wallet with the walletpassphrase? What about a later time?
1715257870
Hero Member
*
Offline Offline

Posts: 1715257870

View Profile Personal Message (Offline)

Ignore
1715257870
Reply with quote  #2

1715257870
Report to moderator
1715257870
Hero Member
*
Offline Offline

Posts: 1715257870

View Profile Personal Message (Offline)

Ignore
1715257870
Reply with quote  #2

1715257870
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715257870
Hero Member
*
Offline Offline

Posts: 1715257870

View Profile Personal Message (Offline)

Ignore
1715257870
Reply with quote  #2

1715257870
Report to moderator
1715257870
Hero Member
*
Offline Offline

Posts: 1715257870

View Profile Personal Message (Offline)

Ignore
1715257870
Reply with quote  #2

1715257870
Report to moderator
1715257870
Hero Member
*
Offline Offline

Posts: 1715257870

View Profile Personal Message (Offline)

Ignore
1715257870
Reply with quote  #2

1715257870
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4177



View Profile
October 28, 2017, 04:23:22 PM
 #2

1. I assume, if somebody is maliciously accessing my wallet.dat file while the wallet is locked, he can import the wallet.dat to another bitcoin core but he can not spend anything without the walletpassphrase, right?
Yes. The encrypted keys are stored in memory and unlocked and stored in memory for a specific period of time. The keys in the wallet.dat are never decrypted.
2. What happens if the wallet.dat file is maliciously accessed while the wallet is unlocked? For example, wallet is unlocked for 10 minutes between 5 and 5:10 PM. Somebody is downloading the wallet at 5:01 PM and imports it into another bitcoin core until 5:05 PM. Can he spend all the coins until 5:10 PM without having to unlock the wallet with the walletpassphrase? What about a later time?
No. The unlock timeframe really doesn't matter with the time. If Bitcoin Core were to decrypt wallet.dat instead, they would just decrypt it for X amount of time and lock it again afterwards. It shouldn't be associated with time.

They can't do anything with the wallet.dat when its encrypted, even if you unlock it. They will still need a malware or keylogger; which they should have if they can download the wallet.dat. The time function is basically the amount of time that the decrypted keys will be stored in memory. After that, that part of the memory is wiped clean.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
columbo (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 1


View Profile
October 28, 2017, 05:53:34 PM
 #3

Thank you for the explanation.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!