Skip to content

How to generate addresses from an ElectrumMnemonic? #11

Discussion options

You must be logged in to vote

Electrum doesn't use BIP44 path (ie. m/44'/0'/0) to derive its child keys; instead it uses its own derivation path that depends on the mnemonic type which for a SegWit type is m/0'/0.

(though I've never seen that derivation path anywhere else, so I'm not even sure if the "h" is short-hand for something, or if the path is literally just m/0h...)

h is another way of representing hardened indexes in the derivation path. It is the same as '. You can pass the derivation path as a string to BIP0032Path constructor with either h, H or ' and it will parse it. Examples can be found among tests.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@underctrl
Comment options

Answer selected by underctrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants