-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Electrum #10
Comments
@ameba23 as you've thought about this more than I have do you mind adding where you think we will need that as it'd be great to flesh this issue out as it's a big one. The more small steps the easier it will be to pick up later. |
bip32 is the deterministic wallet-from-a-seed thing that pretty much all modern bitcoin wallets use. there used to be 'loose keys' wallets which required backing up constantly to prevent loosing money in case of broken computer. So we need bip32 utils for generating addresses deterministically from a seed. Theres already a function in our src/bitcoin-utils.js that turns a mnemonic seed into a master public key:
and the next step is to generate addresses. You can see how this is done in this rather cool web demo that dan posted somewhere: http://bip32.org/ its open source and uses bitcoinjs-lib. also see some other interesting stuff from ian coleman: https://iancoleman.io/bip39/ and i just found a simplified walkthrough of creating transactions with bitcoinjs |
electrum 3.1.4 just been released on github. this project works with 3.1.3. it seems there are pretty big differences in the json rpc even between minor version updates. so i suggest we stick with 3.1.3 and give an extra 👍 for remove electrum cos we can't keep adapting things but we also cant expect people to install and outdated electrum version. |
bit stuck on this one: (made extra complicated by the fact that btcnodejs's bip39 (mnemonic) functions are not in the node module but are on github... but i found the bitcoinjs ones work much the same)
|
although theres nothing 'wrong' here i would really like that we follow just the same key and address derivation procedure as electrum, such that exactly the same addresses would be generated for a given mnemonic, meaning one could effectively recover a wallet using either program. |
Electrum doesn't really do wallet creation and their RPC changes between versions.
Plan:
https://github.com/pocesar/node-stratum/blob/master/README.md to connect to the bitcoin network.
The text was updated successfully, but these errors were encountered: