I have a program running on a remote server which occasionally needs to send an Ethereum transaction. That transaction will need to be signed with my private key which I keep on a Trezor wallet on my desk.
What would be the easiest way to construct a transaction locally, get it signed by a local Trezor device, save the signed transaction on the server and then at a later point get the remote program send it to the network once it's required?
My question primarily is about choice of languages/packages/software on the client side (Windows) and server side (Linux).
At the moment my program is in perl which apparently has limited support of Ethereum, in particular I haven't yet found a way in Perl to get a transaction signed using Trezor.
I am happy to implement this function in a different language and then integrate with my perl program, just looking to find out which language/module/library would get me there faster.
My initial idea is creating a web page on the remote host that would connect via Trezor/connect on my local host in a Metamask fashion. This should allow me to create a raw transaction signed by Trezor. What would be the easiest method to create a linux executable that sends a raw transaction to the Ethereum network?
Thanks in advance!