Bitcoin Forum

Bitcoin => Electrum => Topic started by: jackg on January 25, 2018, 04:57:15 PM



Title: Segwit address in electrum but not bech32
Post by: jackg on January 25, 2018, 04:57:15 PM
I want to experiment with SegWit but there doesn't seem to be many companies actually supporting Betch32 addresses and as electrum is the wallet I normally use, I've been wondering if anyone has managed to find a way to create an address beginning with a 3 as a segwit address. I know that these should be more widely accepted as I recall them first being used as something else like a 2FA address or something so they should be recognised much better?


I did find this:
Quote
Electrum also supports this kind of addresses but you need to manually import a BIP39 seed with a BIP49 derivation path.
ref (https://www.reddit.com/r/Electrum/comments/7dku5r/segwit_wallets_and_electrum/)

But is this the only way?


Title: Re: Segwit address in electrum but not bech32
Post by: TryNinja on January 25, 2018, 05:32:34 PM
Probably. But it's actually pretty simple. If you want to do it:

1. Go to iancoleman's BIP39 seed generator[1] (optional - download the source code and run offline for better security);
2. Select 12 words and generate a new seed;
3. SAVE THIS SEED AND DON'T LOSE IT! You can't see it again in Electrum and without the seed you can't restore your wallet in the future;
4. Download Electrum[2];
5. While creating the wallet, select: Standard Wallet -> I already have a seed -> Paste the seed from step 2.
6. Click Options -> check "BIP39 seed" -> Next.
7. In the Derivation part, paste m/49'/0'/0'/0 and click next.
8. Now you have an Segwit wallet with addresses starting with 3.


[1] https://iancoleman.io/bip39/
[2] https://electrum.org/


Title: Re: Segwit address in electrum but not bech32
Post by: jackg on January 25, 2018, 05:41:20 PM
Probably. But it's actually pretty simple. If you want to do it:

1. Go to iancoleman's BIP39 seed generator[1] (optional - download the source code and run offline for better security);
2. Select 12 words and generate a new seed;
3. SAVE THIS SEED AND DON'T LOSE IT! You can't see it again in Electrum and without the seed you can't restore your wallet in the future;
4. Download Electrum[2];
5. While creating the wallet, select: Standard Wallet -> I already have a seed -> Paste the seed from step 2.
6. Click Options -> check "BIP39 seed" -> Next.
7. In the Derivation part, paste m/49'/0'/0'/0 and click next.
8. Now you have an Segwit wallet with addresses starting with 3.


[1] https://iancoleman.io/bip39/
[2] https://electrum.org/

Thanks TryNinja.
There any way to do this with the Android app? I mainly use an Android phone and a Windows 7 laptop that cannot be upgraded (no matter how hard I try). Or do I need to simply switch wallets?


Title: Re: Segwit address in electrum but not bech32
Post by: TryNinja on January 25, 2018, 06:01:01 PM
Thanks TryNinja.
There any way to do this with the Android app? I mainly use an Android phone and a Windows 7 laptop that cannot be upgraded (no matter how hard I try). Or do I need to simply switch wallets?
I can't say for sure. I tried to create the same wallet in the android app, but I couldn't find a BIP39 seed option to specify the derivation path, so I don't think it's possible right now.


Title: Re: Segwit address in electrum but not bech32
Post by: jackg on January 25, 2018, 06:26:45 PM
Thanks TryNinja.
There any way to do this with the Android app? I mainly use an Android phone and a Windows 7 laptop that cannot be upgraded (no matter how hard I try). Or do I need to simply switch wallets?
I can't say for sure. I tried to create the same wallet in the android app, but I couldn't find a BIP39 seed option to specify the derivation path, so I don't think it's possible right now.

Alright. I'll try using that other method on my old version of electrum and ensure I remember to use a different computer to sign it using another computer. Hopefully that'll work.


Title: Re: Segwit address in electrum but not bech32
Post by: Alberto De Luigi on March 07, 2018, 05:16:39 PM
to import the wallet on android app, follow these steps (which are valid even on desktop version)

1)->4) as above
5) don't select “I already have a seed” but instead “Use public or private keys”
6) paste the master private key, which is the Account Extended Private Key in iancoleman tool


(I haven't tried yet on the new Electrum 3.1 but it should be the same)

if someone here knows italian, can read my complete guide:
http://www.albertodeluigi.com/2018/03/04/creare-wallet-segwit-electrum-non-bech32/


Title: Re: Segwit address in electrum but not bech32
Post by: Alberto De Luigi on March 07, 2018, 05:52:52 PM
I just tried on Electrum3.1, it's the same. Just select "Use a master key" instead the seed and paste the Account extended key from iancoleman page with derivation path bip49