-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get electrs source tarball with gpg verified sha256 and corresponding…
… helper script
- Loading branch information
1 parent
1131c79
commit 0862277
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash -p git gnupg curl dirmngr | ||
set -e | ||
|
||
# Creating temporary directory | ||
echo "Creating temporary directory" | ||
DIR="$(mktemp -d)" | ||
cd $DIR | ||
git clone https://github.com/romanz/electrs 2> /dev/null | ||
|
||
# Checking out latest release | ||
echo "Checking out latest release" | ||
cd electrs | ||
latesttagelectrs=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo "Latest release is ${latesttagelectrs}" | ||
|
||
# GPG Verification | ||
export GNUPGHOME=$DIR | ||
gpg2 --fetch-key https://keybase.io/romanz/pgp_keys.asc?fingerprint=15c8c3574ae4f1e25f3f35c587cae5fa46917cbb | ||
echo "Verifying latest release" | ||
git verify-tag ${latesttagelectrs} | ||
|
||
# Calculating sha256 | ||
echo "sha256 for ${latesttagelectrs} is $(git archive --format tar.gz --prefix=electrs-"${latesttagelectrs//v}"/ ${latesttagelectrs} | sha256sum )" | ||
|
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