Suppose on my website, I have a private key. Whether in base58 / WIF format, or hex, whatever, I have the 256 bits.
Now I want to convert this
server side to an address. Preferably in PHP, but Python would work as well. I do NOT have a Bitcoin core client running there, and it can NOT depend on a remote API like blocktrail.com or blockchain.info or blockcypher.com etc. I need to do this purely server side.
Is there a trustworthy piece of code or library that can do this?
--- Mod merged from another post ----
Similar to my
question about converting private keys to addresses, I also would like to create and sign a transaction on my webserver. Again preferably in PHP, but Python would work as well. I do NOT have a Bitcoin core client running there, and it can NOT depend on a remote API like blocktrail.com or blockchain.info or blockcypher.com etc. I need to do this purely server side.
Suppose I have a private key + address along with all its spendable outputs (i.e. unspent outputs with txids etc), and a 2nd address where I want to send some coins. So all required data is there. How would I got about creating the tx, signing it, so I can manually push it to the network later?
Is there a trustworthy piece of code or library that can do this? I guess something like BitcoinJS, but in PHP or Python?