signtxwithkey: use prompt if privkey is not passed