Pages:
Author

Topic: Ian Coleman BIP39 / Derive P2SH addresses from Electrum generated Seed - page 2. (Read 799 times)

newbie
Activity: 8
Merit: 10
To generate p2sh-segwit, you can follow the simple trick with Electrum.
1. Install Electrum.
2. Generate Seed.
3. When you verify seed, click on option and mark the box with bip39
4. It will warn you as not valid but will allow you to proceed.
5. Enjoy p2sh-segwit.

Learn more here- https://bitcoinelectrum.com/creating-a-p2sh-segwit-wallet-with-electrum/

I'm aware of the steps to generate p2sh-segwit with Electrum (see second picture).

I'll try to rephrase my question/explain what I am trying:

I've Generated p2sh-segwit wallet with Electrum.
Got a Seed, got addresses.
Now I want Ians tool to show me the same addresses Electrum dervied from that seed.

[Why am I trying to do this? If the tool is able to derive the correct addresses (Like it normaly does with other address types and the correct settings) I am able to automatically bruteforce the 1-2 missing/wrong written words from a slightly incorrect remembered 12 word seed. But to do this I first need to make sure that Ians Tool and Electrum are deriving the same addresses to a correct seed (the one I created with Electrum just for testing purposes) or the brute force won't work. The address derivation from seed works well with other seed / address types, but I haven't figured out the settings/code changes to make it work with p2sh-segwit addresses.]

sr. member
Activity: 1372
Merit: 322
To generate p2sh-segwit, you can follow the simple trick with Electrum.
1. Install Electrum.
2. Generate Seed.
3. When you verify seed, click on option and mark the box with bip39
4. It will warn you as not valid but will allow you to proceed.
5. Enjoy p2sh-segwit.

Learn more here- https://bitcoinelectrum.com/creating-a-p2sh-segwit-wallet-with-electrum/
newbie
Activity: 8
Merit: 10
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://bitcointalksearch.org/topic/m.24316954

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.
Replaced the code in the jsbip39.js file of the 2017 ( 0.2.8 ) release and the tool let me put in the seed without giving me an error:
https://i.imgur.com/yINtzxz.png

Addresses didn't match the Electrum derived addresses so I tried with the latest version.

Replaced the jsbip39.js file from the latest release with the edited one from 2017 so I was able to generate addresses in the latest version too:
https://i.imgur.com/J5vREGP.png

Addresses do match the ones from the older version but not the ones from Electrum.

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
Pages:
Jump to: