This will be used by both the master daemon and the HSM to generate (hopefully) identical transactions for signature and broadcast.