Skip to content

Commit

Permalink
feat: use dashcore-binaries.thepasta.org as keybase.pub is defunct an…
Browse files Browse the repository at this point in the history
…d validate all .asc files
  • Loading branch information
PastaPastaPasta committed Jan 15, 2024
1 parent dfc978a commit 4c5f651
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion contrib/verifybinaries/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TMPFILE="hashes.tmp"
SIGNATUREFILENAME="SHA256SUMS.asc"
RCSUBDIR="test"
HOST1="https://github.com/dashpay/dash/releases/download/v"
HOST2="https://pasta.keybase.pub/Dash-Core-Releases/"
HOST2="https://dashcore-binaries.thepasta.org/file/dashcore-binaries/"
BASEDIR=""
VERSIONPREFIX=""
RCVERSIONSTRING="rc"
Expand Down Expand Up @@ -149,6 +149,26 @@ for file in $FILES
do
echo "Downloading $file"
wget --quiet -N "$HOST1$BASEDIR$file"
wget --quiet -N "$HOST1$BASEDIR$file.asc"

GPGOUT=$(gpg --verify "$file.asc" 2>&1)
RET="$?"
if [ $RET -ne 0 ]; then
if [ $RET -eq 1 ]; then
#and notify the user if it's bad
echo "Bad signature."
elif [ $RET -eq 2 ]; then
#or if a gpg error has occurred
echo "gpg error. Do you have the Dash Core binary release signing key installed?"
fi

echo "gpg output:"
# shellcheck disable=SC2001
echo "$GPGOUT"|sed 's/^/\t/g'
clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2 $TMPFILE
exit "$RET"
fi

done

#check hashes
Expand Down

0 comments on commit 4c5f651

Please sign in to comment.