wren-linux / extras / sparrow-wallet.sh
#!/bin/bash
# retired: Whonix is the safer place for wallets: it runs behind Tor, and a hacked wallet there
# can't learn your real address or reach your files (wrenctl install whonix). Sparrow's own Tor
# setting still sends it through Tor, but as you. Its --remove leaves your wallets in ~/.sparrow.
# What is left of this extra is its --remove, for whoever still has it set up: update.sh offers it,
# and so does wrenctl remove sparrow-wallet. It can't be installed any more; the rest was deleted.
# Usage: bash sparrow-wallet.sh --remove
# summary: Sparrow Bitcoin wallet (signed .deb)
# security: some
# category: money
# status: apt:sparrowwallet
. "$(dirname -- "${BASH_SOURCE[0]}")/../lib.sh"
if [ "${1:-}" = --manual ]; then echo "Retired: only --remove is left (bash extras/sparrow-wallet.sh --remove)."; exit; fi
need_user
[ "${1:-}" = --remove ] || die "sparrow-wallet was retired; only --remove is left. Whonix is the safer place for a wallet: wrenctl install whonix"
# Its pre-removal script needs this folder too
sudo mkdir -p /usr/share/desktop-directories
apt_purge sparrowwallet
remove_bin sparrow
note "Your wallets are kept in ~/.sparrow. Back them up before deleting anything."