private-key-qr-backup/bin/restore_key

8 lines
161 B
Bash
Executable File

#!/usr/bin/env sh
set -e
PUB_KEY=$1
INPUT_DIR=${2:-.}
cat "$INPUT_DIR"/*.txt | base64 -D | paperkey --pubring "$PUB_KEY" --input-type raw --output private.key