Skip to content

Instantly share code, notes, and snippets.

@n8fr8
Created July 26, 2022 19:42
Show Gist options
  • Save n8fr8/69ba91627dc9cde3a4aac5964a712501 to your computer and use it in GitHub Desktop.
Save n8fr8/69ba91627dc9cde3a4aac5964a712501 to your computer and use it in GitHub Desktop.
#!/bin/bash
prooffile=$1
set $(sha256sum $1)
proofhash=$1
echo checking integrity for proofhash $proofhash
rm pubkey.asc.gpg
gpg --dearmor pubkey.asc
gpg --no-default-keyring --keyring ./pubkey.asc.gpg --homedir ./ --verify $proofhash.asc $prooffile
gpg --no-default-keyring --keyring ./pubkey.asc.gpg --homedir ./ --verify $proofhash.proof.csv.asc
gpg --no-default-keyring --keyring ./pubkey.asc.gpg --homedir ./ --verify $proofhash.proof.json.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment