Author

Topic: Segwit to P2SH Nested Segwit (Read 288 times)

legendary
Activity: 2366
Merit: 2054
June 13, 2021, 07:04:13 PM
#20
Edit:
I was using an old version of electrum on my mobile. I just updated it to the latest version.
It no longer allows me to create a wallet with a non-BIP39 seed or a failed-checksum BIP39 seed after I check "BIP39".

Charles-Tim is right about the mobile version.

I don't know why developers designed the new version in this way.
This makes the recovery difficult for those who have made a wallet with a failed-checksum BIP39 seed and don't have access to the desktop version for any reason.

As stated by nc50lc above, this is why no one should use a non-standard method for creating a HD wallet.

I just tried also, The Next button can't be pressed when using electrum seed But worked fine when using Bip39 mnemonic seed.



maybe the next update, I just saw development on android in Github.



* just note, for all seed I have been posted is, for example, this means 0 funds and I never used.
legendary
Activity: 3472
Merit: 10611
June 09, 2021, 10:59:46 PM
#19
Keep in mind that there is a reason why Electrum creates native SegWit address types (Bech32) by default instead of letting you choose other types such as Nested SegWit, the later is inefficient and at this point which is nearly 5 years after activation of SegWit there shouldn't be any service out there that doesn't recognize Bech32 addresses and if they do those services should be avoided because they definitely have security flaws that have been accumulating due to the incompetency of their owners who can't implement SegWit after 5 years.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 09, 2021, 08:39:04 PM
#18
Bip39 wallets are not closed source.  This is inaccurate.  "BIP" stand for Bitcoin Improvement Project" and all BIPs are very much open source.

The simple explanation of A "Bip39 wallet" is that it's wallet backed up by a seed phrase that was generated from a specific (open source) word list.  Many wallet clients will allow you to import a Bip39 wallet.  Many of those wallet clients are also open source.
I know what BIP is all about, and I know everything about bitcoin is built using open source codes, but people are the ones that are making wallet to be close source. Because you can export BIP39 supported seed phrase does not mean the wallet it is generated from is not close source. There are two types of wallet in term of source codes (close and open source wallets) both can support BIP39 seed phrase so far they are noncustodial. With what I have noticed, only few of the wallets are open source, most are close source.

Bip39 wallets are not closed source.  This is inaccurate.  "BIP" stand for Bitcoin Improvement Project" and all BIPs are very much open source.
Coinomi, Exodus, Enjin, Jaxx, Trust Wallet and many more are BIP39 supported wallets and they are close source. I have noticed most BIP39 Bitcoin wallets that also support altcoins are completely close source wallets.

And I mentioned how Iancoleman open source tool can be safetly used offline for it, or running the source html file offline.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
June 09, 2021, 08:22:06 PM
#17
I will not advice you to use many of the BIP39 wallets because they are close source,

Bip39 wallets are not closed source.  This is inaccurate.  "BIP" stand for Bitcoin Improvement Project" and all BIPs are very much open source.

The simple explanation of A "Bip39 wallet" is that it's wallet backed up by a seed phrase that was generated from a specific (open source) word list.  Many wallet clients will allow you to import a Bip39 wallet.  Many of those wallet clients are also open source.
legendary
Activity: 2366
Merit: 2054
June 09, 2021, 07:03:05 PM
#16
Why would it show failed although I can use the address?
Sure, you can use the address because you have the private key and If you doubt, you should also keep the seed together with the 30's private key. who is knows what happens in the future. No need to hesitate If you keep the private key.
legendary
Activity: 2380
Merit: 5213
June 09, 2021, 07:34:16 AM
#15
Why it says failed? I'm not a pro. Can you please share more details on it? Why would it show failed although I can use the address?
All wallets I know create the BIP39 seed phrase with a correct checksum.
Electrum allows you to import a seed phrase even if the checksum is not correct. When electrum displays a message saying checksum is failed, it is actually warning you that the seed phrase you are using isn't standard and you will not be able to recover your private keys using other wallets.

Note that in a 12 word seed phrase, there are 132 bytes while the last 4 bytes are checksum. (Each word includes 11 bytes)
When you generate a BIP39 seed phrase, you actually select 128 out 132 bytes by chance and the last 4 bytes are a function of other bytes.
If the last 4 bytes are selected arbitrary, we will have a non-standard BIP39 seed with a failed checksum.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
June 09, 2021, 06:59:29 AM
#14
BIP39 (checksum: failed)
Why it says failed? I'm not a pro. Can you please share more details on it? Why would it show failed although I can use the address?
Electrum's seed isn't BIP39 compliant, the developers used their own mnemonic seed phrase implementation:
electrum.readthedocs.io/en/latest/seedphrase
legendary
Activity: 2156
Merit: 2100
Marketing Campaign Manager |Telegram ID- @LT_Mouse
June 09, 2021, 06:46:07 AM
#13
Not sure what's wrong with the android version, have never checked with android.
But in windows, I have tried it long ago and it worked perfectly for me. I had used a pre-generated seed phrase and checked the bip39. It worked.

BIP39 (checksum: failed)
Why it says failed? I'm not a pro. Can you please share more details on it? Why would it show failed although I can use the address?
legendary
Activity: 2380
Merit: 5213
June 09, 2021, 05:08:01 AM
#12
I used mobile electrum wallet for it, that means it is different from how desktop electrum wallet will work, while desktop electrum is far the best to use.
Are you sure you checked "BIP39" when creating the wallet?
I used the same seed phrase for creating the wallet.
As you see in the image below, it's possible to click on "Next".




If you check BIP39, Electrum can create the wallet even from random characters either in desktop or in mobile.
Look at images below.







Edit:
I was using an old version of electrum on my mobile. I just updated it to the latest version.
It no longer allows me to create a wallet with a non-BIP39 seed or a failed-checksum BIP39 seed after I check "BIP39".

Charles-Tim is right about the mobile version.

I don't know why developers designed the new version in this way.
This makes the recovery difficult for those who have made a wallet with a failed-checksum BIP39 seed and don't have access to the desktop version for any reason.

As stated by nc50lc above, this is why no one should use a non-standard method for creating a HD wallet.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 09, 2021, 02:13:19 AM
#11
Code:
session umbrella wood donor ahead climb gym pause frown siren electric polar

That will work;
the error he'll get is just a warning about the BIP39 checksum below the seed: BIP39 (checksum: failed) but the next button will is still be available.

But I wouldn't suggest that since it's a non-standard way of creating an HD p2sh-segwit wallet.
It'll force Electrum to get an entropy from the Electrum seed phrase that will be used as BIP39 seed.
Downloading an offline copy of iancoleman's BIP39 tool is easy, it's open-source and the current code is clean.
I used mobile electrum wallet for it, that means it is different from how desktop electrum wallet will work, while desktop electrum is far the best to use.

When I used the above seed phrase as normal electrum wallet seed phrase


When I checked it as BIP39 seed phrase


I used mobile electrum version 4.1.2 (32 bit).
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
June 09, 2021, 01:45:25 AM
#10
OP doesn't need to generate a new BIP39 seed using another tool. He already has an Electrum seed that can be used to generate Nested Segwit,

The step is the same way as the post above. in the beginning, choose I already have seed, write electrum seed, and tick BIP 39 on option, the nest step is derivation path then choose p2sh-p2wpkh.
This will not work. Supposing you use the seed phrase generated on electrum, the Next button will be available for you to click so the wallet can generate the keys and addresses, but once you checked it as BIP39 seed, the Next button will go unavailable at the time, and you will not be able to use it to generate BIP39 keys and addresses. This does not work and will not work because BIP39 seed phrase is different from electrum wallet seed phrase.
That will work;
the error he'll get is just a warning about the BIP39 checksum below the seed: BIP39 (checksum: failed) but the next button will is still be available.

But I wouldn't suggest that since it's a non-standard way of creating an HD p2sh-segwit wallet.
It'll force Electrum to get an entropy from the Electrum seed phrase that will be used as BIP39 seed.
Downloading an offline copy of iancoleman's BIP39 tool is easy, it's open-source and the current code is clean.
legendary
Activity: 2366
Merit: 2054
June 09, 2021, 01:41:20 AM
#9
OP doesn't need to generate a new BIP39 seed using another tool. He already has an Electrum seed that can be used to generate Nested Segwit,

The step is the same way as the post above. in the beginning, choose I already have seed, write electrum seed, and tick BIP 39 on option, the nest step is derivation path then choose p2sh-p2wpkh.
This will not work. Supposing you use the seed phrase generated on electrum, the Next button will be available for you to click so the wallet can generate the keys and addresses, but once you checked it as BIP39 seed, the Next button will go unavailable at the time, and you will not be able to use it to generate BIP39 keys and addresses. This does not work and will not work because BIP39 seed phrase is different from electrum wallet seed phrase.

Have you tried?, the goal is the wallet generated wallet with 3.

you have to check the electrum seed below for test

Code:
session umbrella wood donor ahead climb gym pause frown siren electric polar

and I know what the different bip39 and electrum seed
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 09, 2021, 12:57:08 AM
#8
OP doesn't need to generate a new BIP39 seed using another tool. He already has an Electrum seed that can be used to generate Nested Segwit,

The step is the same way as the post above. in the beginning, choose I already have seed, write electrum seed, and tick BIP 39 on option, the nest step is derivation path then choose p2sh-p2wpkh.
This will not work. Supposing you use the seed phrase generated on electrum, the Next button will be available for you to click so the wallet can generate the keys and addresses, but once you checked it as BIP39 seed, the Next button will go unavailable at the time, and you will not be able to use it to generate BIP39 keys and addresses. This does not work and will not work because BIP39 seed phrase is different from electrum wallet seed phrase.
legendary
Activity: 2366
Merit: 2054
June 09, 2021, 12:43:33 AM
#7
OP doesn't need to generate a new BIP39 seed using another tool. He already has an Electrum seed that can be used to generate Nested Segwit,

The step is the same way as the post above. in the beginning, choose I already have seed, write electrum seed, and tick BIP 39 on option, the nest step is derivation path then choose p2sh-p2wpkh.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
June 08, 2021, 02:52:59 AM
#6
-snip-
Electrum has never allowed direct creation of nested SegWit addresses - the only way was to have such an address in Electrum is to use Iancoleman's BIP39 seed generator and then enter such a seed into Electrum. For more information, see the following thread.

How to get SegWit addresses starting with a "3" in Electrum?
The linked thread is quite outdated since it's for older versions of Electrum.
Following step 7 will produce a different set of keys for BIP49 derivation path.
Instead of manually editing the path, all he has to do is to select p2sh-segwit (p2wpkh-p2sh) in the Script type and Derivation path window of the later Electrum versions.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 07, 2021, 09:27:35 PM
#5
How can I upgrade to Nested Segwit, addresses starting with 3 on Electrum.
I will not advice you to use many of the BIP39 wallets because they are close source, a wallet that its source code is not available for the public to check of vulnerabilities can not be trusted. If you want a nested segwit wallet (wallets that its addresses starts from 3), you can visit https://iancoleman.io/bip39/ and generate it offline.

Access https://iancoleman.io/bip39/, turn off all internet connections on your device, open another tab, access the site again through the new tab with no internet connection, the site will open. Then, you can generate your seed phrase. Alternatively, which is the best is to run its html file offline, you can download the source from https://github.com/iancoleman/bip39/releases/latest/.

Import the seed phrase on electrum by clicking on:
  • Next
  • Standard wallet
  • I already have a seed
Input the seed phrase generated safely from Iancoleman, check "BIP39 seed to enable Next
  • click Next
  • p2sh-p2wpkh
  • Next
  • input password

With this, you will be able to generate nested segwit keys and addresses also on electrum wallet, but know that the seed phrase is not stored on electrum, only the keys and addresses are stored. Make sure you have your backup offline. Also, the fee paid using native segwit (addresses that start from bc1) in transactions is still very low if compared to nested segwit, so I will still advice you to use native segwit which electrum will generate by default. Also, you can decide to use open source wallet like mycelium, but I have not used it before, make sure the keys and addresses of the nested segwit are the same as that on electrum after importimg it.
legendary
Activity: 3234
Merit: 5637
Blackjack.fun-Free Raffle-Join&Win $50🎲
June 07, 2021, 08:15:58 AM
#4
I have upgraded my Electrum Segwit bech 23 from Legacy Wallet.

Small correction, not bech23, correct name is bech32 (address starting with bc1) native SegWit.

How can I upgrade to Nested Segwit, addresses starting with 3 on Electrum.

Electrum has never allowed direct creation of nested SegWit addresses - the only way was to have such an address in Electrum is to use Iancoleman's BIP39 seed generator and then enter such a seed into Electrum. For more information, see the following thread.

How to get SegWit addresses starting with a "3" in Electrum?
legendary
Activity: 2380
Merit: 5213
June 07, 2021, 08:15:35 AM
#3
First of all, you should know that you can't upgrade an existing wallet to another type.
For example, you can't upgrade a legacy wallet to a segwit wallet. If you want to store your bitcoin in a segwit address while it's now in a legacy address, you have to create a new wallet and send all your fund from the old wallet to the new wallet.

Now let's back to your question.
Electrum doesn't generate a nested segwit wallet for you.
If you want to have a nested segwit wallet in electrum, you have to generate a BIP39 seed phrase somewhere else and import it into electrum. For this purpose, you must  select "I already have a seed", check BIP39 seed on "options" and select p2sh-segwit as the script type when creating the wallet in electrum.


By the way, is there any reason you want to use a nested segwit wallet?
You can pay lower fees using a native segwit (bech32) wallet.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
June 07, 2021, 08:02:40 AM
#2
If you go to the addresses tab or receive tab, what do the addresses begin with?

I don't think you've made sense from what you've done already as it sounds like you might have nested segwit (beginning with a 3) or native segwit (beginning with a bc1) if you have successfully managed to already change wallet type.
newbie
Activity: 2
Merit: 0
June 07, 2021, 07:55:52 AM
#1
I have upgraded my Electrum Segwit bech 23 from Legacy Wallet.
How can I upgrade to Nested Segwit, addresses starting with 3 on Electrum.
Jump to: