Post
Topic
Board Beginners & Help
Merits 9 from 3 users
Topic OP
Ian Coleman BIP39 / Derive P2SH addresses from Electrum generated Seed
by
21sats
on 07/06/2020, 12:24:34 UTC
⭐ Merited by LoyceV (6) ,o_e_l_e_o (2) ,vapourminer (1)
Hello,

I've been playing around with Ian Colemans BIP39 tool trying to generate the same associated p2sh-segwit (p2wpkh-p2sh) addresses from a 12 word seed phrase with it that Electrum generated from said seed.

My problem is that I just can't get it to work properly, the addresses generated by Ians tool do not match the Electrum derived addresses:
https://i.imgur.com/w68rD3d.png https://i.imgur.com/0Wb7Isr.png

What I've done to get to this point so far...

As Electrum dosen't generate standard seed phrases (12th word isn't a cheksum),
to get addresses generated at all, I needed to edit the source code of Ians tool following the Instructions from here:
https://bitcointalk.org/index.php?topic=2373020.msg24316954#msg24316954

Used the 2017 version of the tool as I don't understand coding at all and the latest release didn't have the same code so I did not know what to replace.
So I replaced the code in the index file of the 2017 (0.2.Cool release and the tool let me put in the seed without giving me an error.
I then realised the derivaton path electrum used, m/49'/0'/0', isn't available in the old release so I replaced the Index file from the latest release with the edited one from 2017.
I am now able to put in the seed in the latest version and also choose the correct derivation path but like mentioned earlier my problem is the addresses don't match:
https://i.imgur.com/J5vREGP.png

If anyone knows what I am doing wrong or is just generally interested to find out how it would work too, I'd appreciate any solutions or ideas regarding the topic Smiley
Thanks for reading

Link to the online tool: https://iancoleman.io/bip39/
Link to the latest source code: https://github.com/iancoleman/bip39/archive/master.zip
Link to the 2017 version: https://github.com/iancoleman/bip39/archive/0.2.8.zip