trezor-agent/trezor_agent/gpg/trezor-git-gpg-wrapper.sh
2016-05-07 09:41:58 +03:00

8 lines
188 B
Bash
Executable File

#!/bin/bash
if [[ "$*" == *"--verify"* ]]
then
gpg2 $* # verify using GPG2 (for ECDSA and EdDSA keys)
else
trezor-gpg sign -o- # sign using TREZOR and write the signature to stdout
fi