cd
sudo apt install -y vlock
sudo apt install -y tmux


VERSION="1.8.2"
cd /tmp
wget https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-server-$VERSION-x86_64.tar.gz
wget https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-$VERSION-manifest.txt.asc
wget https://github.com/sparrowwallet/sparrow/releases/download/$VERSION/sparrow-$VERSION-manifest.txt

curl https://keybase.io/craigraw/pgp_keys.asc | gpg --import

gpg --verify sparrow-$VERSION-manifest.txt.asc

sha256sum --check sparrow-$VERSION-manifest.txt --ignore-missing

tar -xvf sparrow-server-$VERSION-x86_64.tar.gz

sudo mv /tmp/Sparrow /home/admin/

sudo ln -s /home/admin/Sparrow/bin/Sparrow /usr/local/bin/Sparrow

cd

rm sparrowserv.sh
