-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Network: BIP44 indexes #285
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
Conversation
|
Thoughts on using: ...
bip44: {
index: 0
},
...It is a bit superfluous, but, it does mean it'll be a kind of standard way of introducing these constants. Otherwise, I'm +1. |
|
Also, @weilu, thoughts on including anything related to BIP44 considering it still isn't an accepted BIP? |
|
Probably the object is more consistent. I tossed it over for a while and figured since the object was only going to have one property it should just be a property without the nesting. The nesting does has a certain sense of consistency about it with bip32 above. Thing is, there's no correlation between the two bips so the bip44 object 'looking consistent' is really just a fluke. Either way... |
|
You also get the advantage of checking for network compatibility by simply using |
|
LGTM, squash and when weilu +1, good to merge. |
|
We are not using the added constants anywhere. As @dcousens mentioned the BIP is still in draft, so I'd err on the side of putting everything bip44 in its own module (e.g. https://github.com/weilu/bip39). |
|
@weilu now that you say it, I can see how these constants are better in their own module. At first it seemed to me that bip44 was too simple to need its own module, but given the various options for derivation paths, I can see how it could/should be a separate module. I'll close this since I agree these variables are better off elsewhere (albeit no current module exists). This possibly makes a case for moving the bip32 variables also, but that's a different thing to this pull request. |
|
@iancoleman you raise a valid point though. Perhaps we could take a master repo approach var bip32 = require('bips/bip32')
var bip39 = require('bips/bip39')
var bip44 = require('bips/bip44')
... etcWhere each dependency in that module is what we feel is the most standardized and well implemented (and naturally consistent with other modules) of the BIP modules? |
|
Thoughts @jprichardson |
|
BIP32 is accepted, BIP39 and 44 aren't |
|
That is exactly what I was proposing, a repo that would allow you to But otherwise, I'm OK with the |
See http://doc.satoshilabs.com/slips/slip-0044.html