Before there is an official tool to directly generate an offline transaction with the standard mina-generate-keypair
generated private key, we can instead convert the key to the client-sdk compatible format and then use the client-sdk to generate the transaction.
A while ago I shared this idea with @nholland94, who in turn made a script that I then tweaked to use Docker and created this one. Thanks @nholland94 !
@nholland94's script minimizes the time that the private key is unencrypted by immediately creating the transaction as soon as the key is dumped.
Version 2 of this script replaces the key loading functionality from relying on the mina daemon via docker to doing everything through NodeJS -- thanks to Auro wallet ( https://github.com/bitcat365/auro-wallet-browser-extension/blob/0888a71dc6abde41ad72889c1826a722c3954553/src/background/accountService.js#L58 ) for the routine of loading the libsodium-encrypted wallet files.