HWI
HWI copied to clipboard
allow "hwi signtx -"
Enhanced signtx to accept special character - to indicate to read the base64-encoded PSBT from the stdin instead of from the command line. This allows running commands like
xclip -o -selection clipboard | hwi -t <device> signtx -.
--stdin already exists to do that.
Ok, I did not realize that. Now I do.
Before I close this PR, a question:
How about an option --clipin to read the PSBT from the clipboard? And a --clipout to write the resulting signed PSBT back onto the clipboard. As in:
# unsigned PSBT is on the clipboard
hwi -t $DEVICE --clipin --clipout signtx
# signed PSBT is on the clipboard
Would that be a worthwhile PR for me to make?