forked from celestiaorg/celestia-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
10 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# DIR is the directory of this script | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
# KEYS_DIR is the directory of the keys | ||
KEYS_DIR="$DIR/keys" | ||
|
||
echo "Importing the public keys in $KEYS_DIR" | ||
|
||
# Loop over all keys in the keys directory | ||
for key in "$KEYS_DIR"/*; do | ||
# Check if it's a regular file (and not a directory or other type) | ||
if [[ -f "$key" ]]; then | ||
# Import the key | ||
echo "Importing $key" | ||
gpg --import "$key" | ||
echo "Imported $key" | ||
fi | ||
done | ||
# This script enables consumers to verify signatures on artifacts. | ||
|
||
# Check if the number of arguments is not 2 | ||
if [[ $# -ne 2 ]]; then | ||
|
@@ -26,5 +10,11 @@ if [[ $# -ne 2 ]]; then | |
exit 1 | ||
fi | ||
|
||
# PGP Key | ||
# celestia-app-maintainers <[email protected]> | ||
# BF02F32CC36864560B90B764D469F859693DC3FA | ||
echo "Importing the celestia-app-maintainers public key..." | ||
gpg --keyserver keys.openpgp.org --recv-keys BF02F32CC36864560B90B764D469F859693DC3FA | ||
|
||
echo "Verifying the signature of "$1" with "$2"" | ||
gpg --verify $1 $2 |