fix Sha3/keccak256 hash calculation for binaries (#10509)

https://github.com/paritytech/parity-ethereum/issues/10495
This commit is contained in:
Denis S. Soldatov aka General-Beck 2019-03-22 13:46:57 +03:00 committed by TriplEight
parent 375a8daeb4
commit f2c34f7ca2

View File

@ -47,5 +47,10 @@ echo "_____ Calculating checksums _____"
for binary in $(ls)
do
rhash --sha256 $binary -o $binary.sha256 #do we still need this hash (SHA2)?
rhash --sha3-256 $binary -o $binary.sha3
if [[ $CARGO_TARGET == *"x86_64"* ]];
then
./parity tools hash $binary > $binary.sha3
else
echo "> ${binary} cannot be hashed with cross-compiled binary (keccak256)"
fi
done