Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcwallet
  Commit: 1b7cd450291bd693a8305e424908ef69394dbb3e
      
https://github.com/btcsuite/btcwallet/commit/1b7cd450291bd693a8305e424908ef69394dbb3e
  Author: Josh Rickmar <jr...@conformal.com>
  Date:   2015-01-31 (Sat, 31 Jan 2015)

  Changed paths:
    M waddrmgr/manager.go

  Log Message:
  -----------
  Optimize unlocks for already unlocked addrmgrs.

This is performed by saving the SHA512(salt+passphrase) of the
waddrmgr.Manager private passphrase each time the manager is unlocked.
If another call to Unlock is performed before the next Lock, the hash
is applied to the new input.  If it matches, we know the passphrase is
(likely) equal, so return early and continue using the crypto keys
already in memory.  If it does not match, we know for certain the
passphrase is incorrect and the manager is locked.


Reply via email to