Title: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 20, 2015, 04:28:07 PM I did this:
What could possibly explain the fact that I got a different hash once? Can the encrypted backup file really change like that sometimes? Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 23, 2015, 04:57:25 PM Bump (hope bumping is okay).
It's just that I found that very strange. Something malicious could be going on. Unless there is a good explanation for this? Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: goatpig on July 23, 2015, 07:30:24 PM Tons of different operations will change the binary content of a wallet. From adding/modifying/removing comments, to generating new addresses, to spending coins, and so on.
A wallet should not change in between runs: if you turn off Armory, hash your wallet, don't run Armory for a couple days and hash the wallet again, you should expect the same hash. If you ran Armory in between, all bets are off. Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 24, 2015, 04:57:12 AM If you ran Armory in between, all bets are off. Do you know what could have happened to change my wallet's binary for a short while, even if I didn't modify the wallet file explicitly within Armory? Maybe the Armory did something to it temporarily. Again, like I said, the hash changed, but after exporting right afterwards the hash went "back to normal" again. I wonder what Armory could have done to it there in between. Do you guys, who are familiar with the Armory code, have any ideas? Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: goatpig on July 24, 2015, 11:18:15 AM Did you hash the wallet, the backup, or both?
Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 24, 2015, 01:08:26 PM Did you hash the wallet, the backup, or both? These are the steps I performed:
This is a mystery to me. Is there anything Armory can do sometimes that causes a wallet's encrypted backup to change like that? I wonder what could possibly have happened that one time in between. Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: goatpig on July 24, 2015, 02:27:34 PM Used a different password the second time around?
Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 24, 2015, 04:46:37 PM Used a different password the second time around? Armory doesn't ask me for a password when creating an encrypted backup. That makes sense to me, since the wallet is already protected with a password. So I presume it just uses that same password to protect the encrypted backup?Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 24, 2015, 05:18:48 PM Used a different password the second time around? Armory doesn't ask me for a password when creating an encrypted backup. That makes sense to me, since the wallet is already protected with a password. So I presume it just uses that same password to protect the encrypted backup?Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: goatpig on July 24, 2015, 09:04:45 PM The data in the wallet can change for a lot of different reasons, but I don't expect anything short of user action can modify data then roll it back. Maybe your log file could yield some information of what happened, but at this point I'm not so sure Armory is the culprit anymore. Did you change permissions on the file maybe? You should try to reproduce the faulty hash again.
Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: pf on July 25, 2015, 01:31:34 PM The data in the wallet can change for a lot of different reasons, but I don't expect anything short of user action can modify data then roll it back. Maybe your log file could yield some information of what happened, but at this point I'm not so sure Armory is the culprit anymore. Did you change permissions on the file maybe? You should try to reproduce the faulty hash again. I was able to produce a behavior that may give us some clues. This is what I did just now:
Then I did this:
What could explain this? Some Armory developer must have some ideas. The only thing that comes to my mind right now is something like this: If I type in a password to get to the paper backup window, my wallet changes somehow but only under certain conditions. Maybe it has something to do with the current date/time. I don't know. Anyone? This is mysterious indeed. Title: Re: Different hashes when creating encrypted backup twice (Bump. Nobody?) Post by: goatpig on July 25, 2015, 03:00:09 PM You unlocked the wallet so it used this opportunity to compute missing private keys. Armory wallets derive the public key chain without the need to compute the relevant private keys beforehand. This is how watching only wallets function. Specific to our format, when you unlock a wallet (i.e. make the private keys temporarily "visible" to Armory), the missing private keys are computed and saved to disk along the relevant public keys.
As I said a wealth of different operations can modify a wallet file, but that does NOT explain your issue. Your issue is that your wallet went from hash1 to hash2 (nothing out of the ordinary), yet it went back to hash1 later on. Certain operations in Armory could result in that but the steps you describe does not include any of these. Quote What could explain this? Some Armory developer must have some ideas. etotheipi developed the wallet format and I did the recovery tool. We are the only 2 at Armory with lots of experience on this wallet format, and I don't expect he has a different angle on this. You should start looking at the state of your environment as well. |