Bitcoin Forum
May 10, 2024, 04:06:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: v0.17.0.1: Different EXE hashes in ZIP versus setup  (Read 184 times)
jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
November 20, 2018, 12:05:31 AM
Merited by ABCbits (1)
 #1

Core's ZIP and signed setup hold different EXE files.
The hashes of all contained EXE are different. Shouldn't they be the same?


In bitcoin-0.17.0.1-win64-setup.exe:

Code:
b6654d2434bfef6e8f81ff3bc549539374c940a844dcaf9469415132711a449b bitcoin-qt.exe
561442e669badd354d3dfefc9a7b5c4567edf5f68b56124954856d408c17e2c1 bitcoin-cli.exe
b0b3df442169f93bc62289964407c8a48b6ad1119e164c9d0b0996b5b9010a41 bitcoind.exe

In bitcoin-0.17.0.1-win64.zip:

Code:
cf3a82120ff04a5aee448e689a1dbb0e481c641c48492da4d664097fd330a0ac bitcoin-qt.exe
4119eefced33a5a91dd42eb1e68b3f492fd5218ffa544c92ce2365d6766c1ed2 bitcoin-cli.exe
cb6f8183c30e57ac1d5faea4cda4bbe1c3651598aa6a481108b9e9dbfc63e32a bitcoind.exe
1715313990
Hero Member
*
Offline Offline

Posts: 1715313990

View Profile Personal Message (Offline)

Ignore
1715313990
Reply with quote  #2

1715313990
Report to moderator
1715313990
Hero Member
*
Offline Offline

Posts: 1715313990

View Profile Personal Message (Offline)

Ignore
1715313990
Reply with quote  #2

1715313990
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cellard
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
November 20, 2018, 06:10:58 PM
 #2

I haven't double checked this but interesting if true.

Yes, they should be the same, just because it's compressed it shouldn't change... luckily I haven't updated yet but now that you mention this im worried. Please somebody confirm what's going on here.

Edit: I extracted bitcoin-qt.exe from the .exe installer and extracted bitcoin-qt.exe from the .zip and it's indeed different, im very confused now. Have you tried this with other versions?
Pmalek
Legendary
*
Offline Offline

Activity: 2758
Merit: 7137



View Profile
November 20, 2018, 08:41:24 PM
Merited by DarkStar_ (5), ABCbits (2)
 #3

Quote
when you add the file into the zip, you add the metadata (file modificacion datetime) to the zip. So, the zip is different, so are the chechsums.
source: https://stackoverflow.com/questions/19523063/zip-utility-giving-me-different-md5sum-every-time-in-linux

A similar topic can be found here with some suggestions how to bypass this:
https://unix.stackexchange.com/questions/31008/why-does-the-gzip-version-of-files-produce-a-different-md5-checksum

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
November 20, 2018, 09:05:51 PM
 #4

I'm pretty sure this is expected behavior. Other versions exhibit the same behavior.

jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
November 21, 2018, 02:41:19 PM
Merited by DarkStar_ (5), ABCbits (1)
 #5

It might be the expected behavior currently, but it makes more sense for it to be uniform, especially with the whole deterministic build idea. It's not exactly the same build, though the differences are small. If I recall correctly, stuff like timestamps in the header, and some changes at the end of the EXEs in the non-code areas.

And by the way, why not include in the gitian sigs also hashes for the compiled binaries, not just the total packages? These are the files people use daily.

Pmalek: I'm not talking about the ZIP or the setup EXE. The actual binaries inside are different.
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!