Author

Topic: how to generate new type of addresses (Read 178 times)

legendary
Activity: 2268
Merit: 18711
April 24, 2021, 05:04:12 AM
#10
-snip-
I definitely wouldn't do this.

For starters, using getmasterprivate() with an Electrum generated segwit seed phrase does not return the master private key, but rather the extended private key at m/0'. If you then pasted that in and use the derivation path m/0, then your first address is being generated at the derivation path m/0'/0/0. Using non-standard generation methods and derivation paths like this usually results in running in to problems in the future

It also involves using a website which should be ran offline (but many people won't do this), and handling raw private keys, both of which are an additional security risk. And in your screenshot, I realize you have toggled off private keys, but it might be confusing for newbies who would end up importing a list of addresses and accidentally create a watch only wallet. Then there is the issue with the wallet not automatically creating new change addresses and the impact on privacy this has.

A far simpler and safer option is just to create a new wallet in Electrum using a BIP39 seed phrase and select the "p2sh-segwit" option when prompted.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
April 24, 2021, 03:14:50 AM
#9
electrum isn't generated address with 3, but you can generate it using iancoleman tool by getting the master key from electrum.
The way Electrum generates the seed makes the derivation path and the seed type unambiguous when compared to BIP39's implementation. It wouldn't help to try to derive an address of a different format using the other key. It makes the whole process far more complicated than needed.

Just generating a BIP39 seed (and selecting appropriate derivation methods) would be far better than going through additional loops that could be prone to user errors.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
April 23, 2021, 10:05:13 PM
#8
i would like addresses starting with 1 or 3 not bc. Smiley
I guess  the consensus is that I keep Electrum bc wallet and find a provider who can supply to bc wallets (not coinmama).
That's because bc1 address is recommended for your own good to save in fees and for the whole network as well.
Anyways, you can create P2WPKH-nested-in-P2SH, a.k.a. '3' SegWit addresses in Electrum by importing a BIP39 seed.
For that, you need to generate BIP39 seed, the most recommended for newbies is an offline copy of iancoleman's BIP39 tool (link in the post above).
Read "Offline Usage" below iancoleman's page.

There, you can generate 12/24-word seed phrase and import it to Electrum using these options:
  • "File->New/Restore" - type a wallet name, click 'next'
  • "Standard wallet->I already have a seed"
  • Paste the BIP39 seed, click "option" and tick 'BIP39 seed', see if the text below says "BIP39 (checksum: ok)", if yes, click 'next'
  • Select "p2sh-segwit (p2wpkh-p2sh)", click next; and lastly, type a strong password.
Your addresses tab (View->Addresses) should contain '3' SegWit addresses.
You won't be able to recover your seed phrase from the wallet so make sure to write it on a piece of paper as backup (who wouldn't?).
legendary
Activity: 2366
Merit: 2054
April 23, 2021, 07:41:51 PM
#7
  Great advice,
I guess the consensus is that I keep Electrum bc wallet and find a provider who can supply to bc wallets (not coinmama).
Cheers Ash.
Glad to see that provider accepted your request.

i would like addresses starting with 1 or 3 not bc. Smiley

If you want to create to standard address (begin with 1) on electrum, you should go to the console (it doesn't appear, click view and click show console) then type the code below:

Code:
make_seed(128,"","standard")


that's example empty balance seed

electrum isn't generated address with 3, but you can generate it using iancoleman tool by getting the master key from electrum.

go to electrum console then type: getmasterprivate ()

copy to iancoleman tool offline on BIP32 Root Key

on the Derivation Path click BIP 141 and choose Script Semantics to P2WPKH nested in P2SH

you can see the result box.



This means you will get the private key address with 3 then importing back to the electrum wallet.

but you should be learning about security wallets first. I won't recommend it to use with have balance inside. try it with zero or create a new wallet. I'm just for sharing.

dwyor.
newbie
Activity: 2
Merit: 0
April 23, 2021, 06:49:18 PM
#6
  Great advice,
I guess  the consensus is that I keep Electrum bc wallet and find a provider who can supply to bc wallets (not coinmama).
Cheers Ash.

HCP
legendary
Activity: 2086
Merit: 4361
April 23, 2021, 02:16:37 AM
#5
Hi, how can i Generate new seed type to generate addresses without native (true) segwit.

i would like addresses starting with 1 or 3 not bc. Smiley
If you're using Bitcoin Core... you can simply start the application using the -addresstype and -changetype parameters and set it to "legacy" (for "1"-type addresses) or "p2sh-segwit" (for "3"-type addresses).

Alternatively, you can edit the bitcoin.conf file and add:
Code:
addresstype="legacy"
changetype="legacy"

or

Code:
addresstype="p2sh-segwit"
changetype="p2sh-segwit"


I don't really recommend using either legacy or p2sh-segwit... but if you must, at least use p2sh-segwit, as you'll be getting partial benefit of SegWit using those addresses.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
April 20, 2021, 06:31:15 AM
#4
I don't see any reason for using old style addresses especially when fees are high like they are currently, and bech32 are best for saving fees.
Probably compatibility. Wallets like Blockchain.com or several other services do not recognize bech32 addresses. If you want to switch to a bech32 wallet, you'll need a non-bech32 address first.
legendary
Activity: 2212
Merit: 7064
April 20, 2021, 06:29:20 AM
#3
Hi, how can i Generate new seed type to generate addresses without native (true) segwit.

i would like addresses starting with 1 or 3 not bc. Smiley

If you are talking about Electrum wallet, they removed option for choosing Legacy (starting with 1) or P2WPKH (starting with 3) address formats but you can still generate them with console or with installing old Electrum version 4.0.9.
However I don't see any reason for using old style addresses now especially when fees are high like they are currently, and bech32 are better for saving fees.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
April 19, 2021, 06:47:30 PM
#2
What wallet are you using?

The process will be different for all the wallets. Generally for any wallet other than Electrum, seed types are interchangable and is only dependent on how the wallet treats the seeds.
newbie
Activity: 2
Merit: 0
April 19, 2021, 06:44:38 PM
#1
Hi, how can i Generate new seed type to generate addresses without native (true) segwit.

i would like addresses starting with 1 or 3 not bc. Smiley
Jump to: