You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
271 B

5 years ago
#!/usr/bin/env bash
seed=$1
echo "Importing seed or key..."
if ! electrum restore "$seed" > /dev/null 2>&1 ]]; then
if ! electrum restore "$(bip39toxprv $seed)" > /dev/null 2>&1; then
>&2 echo "Error: Seed or key not recognised."
exit 1
fi
fi
electrum --gui text