Bitcoin Forum
June 27, 2019, 11:25:24 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ledger Nano S and Electrum: Which address type to choose?  (Read 152 times)
tyz
Legendary
*
Offline Offline

Activity: 1918
Merit: 1111



View Profile
January 02, 2019, 09:16:59 PM
 #1

It's first time I use ledger nano s with Electrum wallet. On setup I got asked which address type the wallet should have. I can select legacy (p2pkh), p2sh-segwit (p2wpkh-p2sh) and native segwit (p2wpkh). Which one should I select, or better say, which one is current standard?
The most profitable cloud-mining from Siberia
Verified mining provider
No commissions
Everyday payouts
First payout in 1 hour
24\7 online support
Grab your
12% off
Sign Up
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1561634724
Hero Member
*
Offline Offline

Posts: 1561634724

View Profile Personal Message (Offline)

Ignore
1561634724
Reply with quote  #2

1561634724
Report to moderator
1561634724
Hero Member
*
Offline Offline

Posts: 1561634724

View Profile Personal Message (Offline)

Ignore
1561634724
Reply with quote  #2

1561634724
Report to moderator
1561634724
Hero Member
*
Offline Offline

Posts: 1561634724

View Profile Personal Message (Offline)

Ignore
1561634724
Reply with quote  #2

1561634724
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 1470
Merit: 1194


Beware on fake trezor website from google ads.


View Profile WWW
January 02, 2019, 09:39:16 PM
Merited by tyz (2)
 #2

I think it is better to choose "p2sh-segwit (p2wpkh-p2sh)" option because you can get less fee compared too legacy and the transaction is much faster than a legacy address.

Legacy address form starts from 1.... and P2sh segwit start from bc1 and for native segwit the address form starts from 3...
Read more about the differences about legacy and segwit addresses from here Legacy vs Segwit wallets. What's the difference?


If you need a guide about Ledger Nano S you can check this review with a guide from here

o_e_l_e_o
Hero Member
*****
Offline Offline

Activity: 602
Merit: 2160



View Profile
January 02, 2019, 11:06:06 PM
Merited by tyz (1), LoyceV (1)
 #3

Legacy address form starts from 1.... and P2sh segwit start from bc1 and for native segwit the address form starts from 3...

You've got that your "bc1" and "3" the wrong way round:

P2PKH are legacy addresses and start with 1. (All addresses which start with 1 are legacy i.e. not segwit.)
P2SH nested segwit addresses (which can be either P2SH(WPKH) or P2SH(WSH)) start with 3. (However, not all addresses which start with 3 are segwit.)
Native segwit addresses (P2WPKH or P2WSH) start with bc1. (All addresses which start with bc1 are segwit.)


I think it is better to choose "p2sh-segwit (p2wpkh-p2sh)" option because you can get less fee compared too legacy and the transaction is much faster than a legacy address.

This is the best option to pick if you are unsure about which one you want - it allows you to take advantage of lower fees of segwit whilst maintaining compatibility with all services, some of which do not yet support bc1 addresses.

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 1414
Merit: 1268


https://bit.ly/2FR9nyn - free python tutorials


View Profile
January 02, 2019, 11:10:16 PM
 #4

Is the derivation path for native segwit and non native segwith the same or different? I thought people were saying it was different which means you could have both afaik unless electrum does something different? I might be getting confused with another hardware wallet though.

bob123
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1150



View Profile WWW
January 03, 2019, 11:00:43 AM
Merited by LoyceV (3), HeRetiK (1), o_e_l_e_o (1)
 #5

I think it is better to choose "p2sh-segwit (p2wpkh-p2sh)" option because you can get less fee compared too legacy and the transaction is much faster than a legacy address.

The 'speed' of a transaction (i think you mean the confirmation time ? Or the propagation time ?) doesn't differ, regardless of which type of transaction you build.



Is the derivation path for native segwit and non native segwith the same or different?

Yes, they differ.

Native segwit is m/84'/0/.., where nested segwit is m/49'/0/..



@OP:

Choosing the type fully depends on your needs. Here is a quick summary:

Legacy (P2PKH):
- Pro:
  • Compatibility with each online service
  • The possibility to extract future forks exists (even tho not that necessary regarding the value of those forks)
- Contra:


Nested Segwit (P2SH nested into P2WPKH):
- Pro:
  • Fixes transaction malleability
  • Fees lower than legacy, but higher than native segwit (bech32)
- Contra:
  • No guaranteed compatibility with future (low quality) forks who don't support segwit



Native Segwit (P2WPKH)
- Pro:
  • Fixes transaction malleability
  • Lowest fees of all types (up to ~ 40% lower size (and therefore also fees) of the transaction compared to legacy)
- Contra:
  • No guaranteed compatibility with future (low quality) forks who don't support segwit
  • May not be accepted by older online services which haven't been updated for quite some time, they will show 'invalid address'



Native segwit is definitely becoming a new standard. You should either choose to use bech32 (bc1..) addresses or at least nested segwit (starting with 3...).

Lucius
Legendary
*
Offline Offline

Activity: 1456
Merit: 1226


Fortis Fortuna Adiuvat


View Profile WWW
January 03, 2019, 11:01:33 AM
 #6

Is the derivation path for native segwit and non native segwith the same or different? I thought people were saying it was different which means you could have both afaik unless electrum does something different? I might be getting confused with another hardware wallet though.

I'm pretty sure derivation paths are different for P2WKH / bech32 and P2SH address, and when Ledger add support for SegWit there is only option to create P2SH (which starts with 3) wallets. I am not sure how long Ledger support native SegWit, but it is possible to use it with Electrum and OP post is show that. 

Derivation path for native SegWit is m/84'/0'/0' - for P2SH nested segwit is m/49'/0'/0'.

It is important to know that some exchanges/wallets still do not support bc1 addresses, so user can have problems with send/receive coins:

More info: https://en.bitcoin.it/wiki/Bech32_adoption

pooya87
Legendary
*
Offline Offline

Activity: 1680
Merit: 1712



View Profile
January 04, 2019, 05:06:04 AM
 #7

Nested Segwit (P2SH nested into P2WPKH):
- Contra:
  • No guaranteed compatibility with future (low quality) forks who don't support segwit

+ you are wasting a lot of space on the blockchain with this form of transactions because you have to put a script in place of the signature while moving the signature elsewhere and that script is adding 23 bytes extra to the total transaction size. (you won't notice it because you are paying the fee based on virtual size not the real size)

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!