Bitcoin Forum
May 17, 2024, 03:34:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin address inflation  (Read 193 times)
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 06, 2018, 10:40:16 PM
 #1

As I understand it last year (or possibly this year) we got a new set of public key/private key pairs for the bech 32/ native segwit addresses.

As I understand, the native segwit addresses have added to the pool of Bitcoin addresses, but by how much?

Normal segwit addresses (the non native ones beginning with a 3) share the same private keys as the legacy addresses so there's a theoretical no change in the number of private keys for that.
Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
November 07, 2018, 04:00:13 AM
 #2

Actually hard question not that beginner one Tongue.
I think address "pool" is same. Its extremely huge, to the point almost endless. If you can add to that with different address format?
That is real question, probably not, its just address "conversion" to another format. Correct me someone if im wrong.
pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10564



View Profile
November 07, 2018, 04:57:08 AM
Merited by dbshck (2), HeRetiK (1)
 #3

As I understand it last year (or possibly this year) we got a new set of public key/private key pairs for the bech 32/ native segwit addresses.

nothing has changed about number of key pairs or how they work. there is still the same number of private keys (0< key <n defined by secp256k1 curve) and there is the same public key corresponding to each private key.

Quote
As I understand, the native segwit addresses have added to the pool of Bitcoin addresses, but by how much?

Normal segwit addresses (the non native ones beginning with a 3) share the same private keys as the legacy addresses so there's a theoretical no change in the number of private keys for that.

what has changed is the new type of output that you can create which belongs to segwit so the addresses are also different. otherwise every step until creation of an address is the same:
private key --EC multiplication--> public key --SHA256 of RIPEMD160--> hash160
then if you encode that result with base58check you get address starting with 1. if you encode it with bech32 you get an address starting with bc1.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 07, 2018, 10:38:16 AM
 #4

As I understand it last year (or possibly this year) we got a new set of public key/private key pairs for the bech 32/ native segwit addresses.

nothing has changed about number of key pairs or how they work. there is still the same number of private keys (0< key <n defined by secp256k1 curve) and there is the same public key corresponding to each private key.

Quote
As I understand, the native segwit addresses have added to the pool of Bitcoin addresses, but by how much?

Normal segwit addresses (the non native ones beginning with a 3) share the same private keys as the legacy addresses so there's a theoretical no change in the number of private keys for that.

what has changed is the new type of output that you can create which belongs to segwit so the addresses are also different. otherwise every step until creation of an address is the same:
private key --EC multiplication--> public key --SHA256 of RIPEMD160--> hash160
then if you encode that result with base58check you get address starting with 1. if you encode it with bech32 you get an address starting with bc1.

Well that’s disappointing Grin.

So private key generation is the same. Is there a getbech32address command in bitcoin core?
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
November 07, 2018, 01:26:50 PM
 #5


Well that’s disappointing Grin.

So private key generation is the same. Is there a getbech32address command in bitcoin core?

I believe you'll need to use
Code:
getnewaddress "" "bech32"
As per, https://bitcoincore.org/en/doc/0.16.0/rpc/wallet/getnewaddress/ / https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/wallet/getnewaddress/

If that doesn't work, you'll need to set
Code:
addresstype=bech32
in your conf first, and then just call a new adress like you would normally call one, w/out any additional params according to https://bitcoin.stackexchange.com/questions/72057/how-to-generate-segwit-address-using-bitcoind

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!