Bitcoin Forum
May 25, 2024, 01:00:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the difference between a segwit address that starts with a 3 and a b?  (Read 215 times)
Mountaingoat (OP)
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile WWW
January 11, 2018, 09:55:53 PM
 #1

I have a few questions:
What is the difference between the two addresses?
Are they both Segwit?
Which one is the most recent version?
Which one is better to use?
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
January 11, 2018, 11:15:27 PM
Last edit: January 11, 2018, 11:29:49 PM by Xynerise
Merited by aso118 (5)
 #2

Segwit addresses that start with 3 are P2WPKH nested in P2SH.
(Not all addresses that start with 3 are Segwit addresses, they could be multisig addresses.
There is no way to tell the difference between the two until the address spends funds.)

The ones that start with bc1 are Bech 32 called "native segwit" in Electrum.
Defined in BIP173 by Peter Wuille
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

Bech32 transactions are 38% smaller than legacy (standard addresses that start with 1) transactions, while P2PWKH-P2SH transactions are 27% less than legacy transactions of the same number of inputs/outputs.

Unfortunately bc1 is not backwards compatible so users have to upgrade to a wallet with Segwit support to be able to send funds to this type of addresses.
Mountaingoat (OP)
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile WWW
January 12, 2018, 12:12:10 AM
 #3

What does bc1 mean? Is that the address that starts with a 1?

Another question, can you make a vanity Bech32 address like with the adressess that start with a 1 or is that not possible?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
January 12, 2018, 01:12:19 AM
 #4

What does bc1 mean? Is that the address that starts with a 1?
It's the beginning of every bech32 address, the ones that start with a "b".

Another question, can you make a vanity Bech32 address like with the adressess that start with a 1 or is that not possible?
Yes. You can make a vanity address with any type of address.

Mountaingoat (OP)
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile WWW
January 12, 2018, 02:06:51 AM
 #5

What does bc1 mean? Is that the address that starts with a 1?
It's the beginning of every bech32 address, the ones that start with a "b".

Another question, can you make a vanity Bech32 address like with the adressess that start with a 1 or is that not possible?
Yes. You can make a vanity address with any type of address.

How can I make a vanity Bech32 address? Are there any guides you can link me?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
January 12, 2018, 11:58:34 PM
 #6

How can I make a vanity Bech32 address?
The same way you make a P2PKH vanity address (begins with a '1'); generate random private keys, calculate their public keys, hash the public keys, and encode it using bech32. You will need some software that can do that, but I don't know of any that currently exist.

Are there any guides you can link me?
No.

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!