Bitcoin Forum
May 07, 2024, 06:08:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BASE58 (P2SH) vs BECH32 (P2WPKH)  (Read 405 times)
Chandu141 (OP)
Sr. Member
****
Offline Offline

Activity: 385
Merit: 251


Your Campaign Manager!


View Profile
December 28, 2019, 09:18:03 AM
 #1

Hello BTC Devs,

Just wanted to know how much difference it makes between "BASE58 (P2SH) & BECH32 (P2WPKH)"

security wise as well as anonymity wise does BECH32 (P2WPKH) really sound than BASE58 (P2SH) ?


1715105284
Hero Member
*
Offline Offline

Posts: 1715105284

View Profile Personal Message (Offline)

Ignore
1715105284
Reply with quote  #2

1715105284
Report to moderator
1715105284
Hero Member
*
Offline Offline

Posts: 1715105284

View Profile Personal Message (Offline)

Ignore
1715105284
Reply with quote  #2

1715105284
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
December 28, 2019, 09:48:54 AM
 #2

Hello BTC Devs,

Just wanted to know how much difference it makes between "BASE58 (P2SH) & BECH32 (P2WPKH)"

security wise as well as anonymity wise does BECH32 (P2WPKH) really sound than BASE58 (P2SH) ?



Base-58 and bech32 are two encoding schemes. P2WPKH and P2SH are two kinds of transactions.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
December 28, 2019, 09:59:05 AM
Merited by joniboini (2), ABCbits (1), hugeblack (1), Heisenberg_Hunter (1)
 #3

P2WPKH
this script is similar to P2PKH (addresses starting with 1) but using Segregated Witness. it is also referred to as native SegWit address. it requires one signature and is currently (version 0) using the same signature scheme (ECDSA) as always.
the transaction size is almost the same size as P2PKH (±2 byte) but has a smaller weight so you end up paying lower fees.

- P2WPKH addresses start with bc1 as they use bech32 encoding

the only problem you may face when using these address types is when the person wanting to send coins to you doesn't accept this type of address. eg. an exchange that has not yet updated their system after 3 years!

P2SH
is pay to script where the script can be anything. examples are multi-signature scripts, lock time scripts, witness redeem script,...
if you are looking into "nested SegWit" where you have an address starting with 3 but it is using SegWit then the correct term for these scripts are:
P2SH-P2WPKH
they are similar to P2PKH and they require only one signature.
P2SH-P2WSH
they are similar to regular P2SH but with SegWit. they require a "script" called redeem script to unlock.

- all P2SH addresses start with 3 as they use base58 encoding

in both cases the transaction size is moderately larger than their counterparts due to the leftover redeemscript and SegWit overhead but their weight is smaller so you end up paying a lower fee.

the benefit of nested SegWit compared to native SegWit


there is absolutely no difference between these scripts and their SegWit counterparts regarding anonymity or security (at least not on version 0 witness, there will be some additional privacy benefits in future versions with new proposals).

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Chandu141 (OP)
Sr. Member
****
Offline Offline

Activity: 385
Merit: 251


Your Campaign Manager!


View Profile
December 28, 2019, 11:47:09 AM
 #4



Base-58 and bech32 are two encoding schemes. P2WPKH and P2SH are two kinds of transactions.

Thanks!




there is absolutely no difference between these scripts and their SegWit counterparts regarding anonymity or security (at least not on version 0 witness, there will be some additional privacy benefits in future versions with new proposals).

Thanks for clarifying on this point and  Smiley

baro77
Member
**
Offline Offline

Activity: 90
Merit: 91


View Profile WWW
January 04, 2020, 06:14:26 PM
Merited by arulbero (3)
 #5

Sorry I have been offline for a while....

Just my humble visual summary:

https://medium.com/@baro77/btc-locking-and-unlocking-scripts-cheatsheet-ff6d515447de

best regars
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!