HWI icon indicating copy to clipboard operation
HWI copied to clipboard

allow "hwi signtx -"

Open 8go opened this issue 1 year ago • 2 comments

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 -.

8go avatar Sep 10 '24 12:09 8go

--stdin already exists to do that.

achow101 avatar Sep 12 '24 13:09 achow101

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?

8go avatar Sep 22 '24 12:09 8go