Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: 3dc9b175d0e838b580a07aee1bb98887164910d1
https://github.com/conformal/btcwallet/commit/3dc9b175d0e838b580a07aee1bb98887164910d1
Author: Josh Rickmar <[email protected]>
Date: 2014-01-15 (Wed, 15 Jan 2014)
Changed paths:
M wallet/wallet.go
Log Message:
-----------
Use correct hash algorithm for chained addresses.
btcwallet originally correctly copied the behavior of armory when
chaining new private keys off the previous private key, but this
regressed in commit e8265eca41313ea5544a84ff5e0a784142c6a837 with a
switch from double sha256 to a single sha256.
This change reverts the behavior (using the clearly-named function
btcwire.DoubleSha256) to match armory's and old btcwallet's address
chaining algorithm.
If you have flipped the switch to use btcwallet on mainnet, any newly
generated addresses created for the keypool after Jan 6, 2014 (the
date the regression was committed) should be backed up with
dumpprivkey (using btcctl) and a new wallet backup should be made of
your current wallet file (~/.btcwallet/mainnet/wallet.bin on unix) to
avoid the possibility of losing any real money.