Using the 'bitcoind' command line program is it possible to withdraw from a cold wallet as long as you have the private key such as:
./bitcoind sendfrom coldwallet customer 0.1 theprivatekey
What is the correct command/context to use and where do i supply the private key?
it's not so simple. if you want to create a transaction with a private key that's not in the wallet, you'll need to use the raw transactions api.
If inside of my source code script I was to supply the private key such as:
coldwalletkey = thEC0ldk3Yetcetcetc
and then ran it through a compiler so it cannot be reverse engineered and read (or at least is very difficult), then would this be a good solution to prevent hackers that access the server from spending funds from the wallet?
security through obscurity. what could possibly go wrong?