Refine Snap verification message

Refine Snap verification message to accurately reflect it's checking secure hashes,
not signatures. Checking signature would entail verifying there is a signature from a
trusted person, not just that the hash matches a value in the known values list.
This commit is contained in:
Ross Nicoll 2021-07-14 21:26:56 +01:00
parent 5e4441235b
commit 0487794b7c
No known key found for this signature in database
GPG key ID: E679E30C312B94E0

View file

@ -37,10 +37,10 @@ parts:
wget https://github.com/dogecoin/dogecoin/releases/download/v${SNAPCRAFT_PROJECT_VERSION}/dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
wget https://github.com/dogecoin/gitian.sigs/archive/refs/heads/master.zip
unzip master.zip
echo "Verifying signatures..."
echo "Verifying secure hash matches signed values..."
checksum=$(sha256sum dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz)
if ! grep -r $checksum *; then
echo "Signature not verified."
echo "Secure hash not verified."
return
fi
tar -xvf dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz