2
1
Im running a full node and am developing an application that interacts with it. One of its features is users should be able to create a pair of Bitcoin PrivKey and PubKey. But for security reasons, I dont want to save them. Not on my wallet.dat, not on database. I want to create the keys programmatically and serve them for the user to manage them.
I don't see a way of doing this through bitcoin-core. How could I accomplish this? Is there a library I could use? Should I create my own methods? Can you think of a workaround?
This is useful data @Nick ODell. Would you still use bitcoin-core to sign transactions having the user provide the PrivKey? – ntonnelier – 2017-07-11T16:06:28.720
Yes. The
signrawtransactionRPC command allows you to sign a transaction where you provide the RPC the private key. The private key will never enter the wallet. – Andrew Chow – 2017-07-11T16:11:38.6331
We are currently maintaining branch of bitcoind with bitcore patches at https://github.com/satoshilabs/bitcoin . I don't want to put that into npm since I can't promise long term commitment (also we would need to rename it etc)
– Karel Bílek – 2017-07-11T17:38:56.807You can also use watch-only functionality (which implies storing the address in Bitcoin Core's wallet file, but not the private key). – Pieter Wuille – 2017-08-11T05:48:18.437