1
I am developing a Bitcoin Wallet in Javascript. I've worked on ETH but it's my first time on BTC. Here are following queries if anyone can help:
- How do we generate bitcoin Wallet like we do in Ethereum. PrivateKey -> PubKey -> Address and Private Key is used to sign a rawTx, searlize and then broadcast. What I'll need to make this happen in Bitcoin.
- I've gone through docs of some libraries Bitcore, Bcoin and cryptocoinjs but all of them tell to connect to a node(test/live) to generate wallet etc.
- Is there any way(lib) to generate a wallet, Load wallet from privatekey, sign TX from private keys all of this offline,and then propogating this to node. How this is done in Bitcoin.
- What Bitcoin node can i use for mainnet?
There is a lot here, but I would have a look at https://github.com/bitcoinjs/bitcoinjs-lib it has examples, and can do all you are looking to do. It requires a connection with a bitcoin node via RPC. Alternatively, Bitcore will run its own implementation of a full node.
– JBaczuk – 2018-12-10T18:19:43.450