Bitcoin Forum
May 04, 2024, 02:51:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core 0.17.1 unable to create non segwit adresses  (Read 350 times)
asche (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1489


I forgot more than you will ever know.


View Profile
January 08, 2019, 07:55:50 PM
Merited by bones261 (2), LoyceV (1)
 #1

Hello all,

I have noticed something with Bitcoin Core's latest version.

Not sure if it's a problem with me, or with the app, maybe you can help me out here.

So until now I had only used non segwit adresses. Now I seem to be unable to generate new non segwit adresses. I only get segwit (starting with 3) or native segwit - bech32 (starting with bc).

Neither of which I can use to sign a message obviously.





Can you help me, or is this a bug?
1714791071
Hero Member
*
Offline Offline

Posts: 1714791071

View Profile Personal Message (Offline)

Ignore
1714791071
Reply with quote  #2

1714791071
Report to moderator
1714791071
Hero Member
*
Offline Offline

Posts: 1714791071

View Profile Personal Message (Offline)

Ignore
1714791071
Reply with quote  #2

1714791071
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
January 08, 2019, 08:11:49 PM
Merited by bones261 (2), vapourminer (1), LoyceV (1), asche (1), darosior (1)
 #2

You need to start Bitcoin with -addresstype=legacy added to the command. Then the wallet will generate the old style addresses.


Vires in numeris
asche (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1489


I forgot more than you will ever know.


View Profile
January 08, 2019, 08:13:41 PM
 #3

You need to start Bitcoin with -addresstype=legacy added to the command. Then the wallet will generate the old style addresses.



thank you man.
darosior
Sr. Member
****
Offline Offline

Activity: 279
Merit: 435


View Profile
January 08, 2019, 08:14:37 PM
Merited by HCP (2), vapourminer (1), mikeywith (1), bones261 (1)
 #4

Hi,

since you are on windows maybe you don't start bitcoin-core using the command line. You can still generate new legacy addresses by typing
Code:
getnewaddress "testLegacy" legacy
on the debug window.

Ref : https://bitcoincore.org/en/doc/0.17.0/rpc/wallet/getnewaddress/
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
January 08, 2019, 11:11:40 PM
Merited by S_Therapist (1)
 #5

You need to start Bitcoin with -addresstype=legacy added to the command. Then the wallet will generate the old style addresses.
It can be added to the bitcoin.conf file as addresstype=legacy. No need to change the startup command, especially for users who don't know how to do that.

bones261
Legendary
*
Offline Offline

Activity: 1806
Merit: 1827



View Profile
January 09, 2019, 01:51:05 AM
 #6

You need to start Bitcoin with -addresstype=legacy added to the command. Then the wallet will generate the old style addresses.
It can be added to the bitcoin.conf file as addresstype=legacy. No need to change the startup command, especially for users who don't know how to do that.

Can you start up your node with the switch; generate a legacy address; sign a message; close the wallet; then open the wallet normally; and go back to generating segwit addresses? I'm thinking to OP only wants to generate a P2PKH to sign a message.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
January 09, 2019, 02:00:23 AM
 #7

You need to start Bitcoin with -addresstype=legacy added to the command. Then the wallet will generate the old style addresses.
It can be added to the bitcoin.conf file as addresstype=legacy. No need to change the startup command, especially for users who don't know how to do that.

Can you start up your node with the switch; generate a legacy address; sign a message; close the wallet; then open the wallet normally; and go back to generating segwit addresses? I'm thinking to OP only wants to generate a P2PKH to sign a message.
Certainly. It's not a setting in the wallet file itself so this isn't persisted. Or OP can just use the getnewaddress command mentioned earlier.

buwaytress
Legendary
*
Offline Offline

Activity: 2800
Merit: 3443


Join the world-leading crypto sportsbook NOW!


View Profile
January 09, 2019, 12:20:48 PM
Merited by NeuroticFish (1)
 #8

Sorry to ask a stupid question, but does this mean it's possible to have legacy and SegWit addresses in one wallet? From the discussions seems it's possible but I had always thought this couldn't be the case and still maintain 2 wallets. Or does the getnewaddress command also generate a new wallet? If Bitcoin Core could do that then it solves one of my old issues (providing legacy address but maintaining in same wallet).

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
asche (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1489


I forgot more than you will ever know.


View Profile
January 09, 2019, 12:38:11 PM
 #9

Sorry to ask a stupid question, but does this mean it's possible to have legacy and SegWit addresses in one wallet? From the discussions seems it's possible but I had always thought this couldn't be the case and still maintain 2 wallets. Or does the getnewaddress command also generate a new wallet? If Bitcoin Core could do that then it solves one of my old issues (providing legacy address but maintaining in same wallet).

Yes it is possible to have both - see screenshot.
I think it is because Segwit is backwards compatible (being a soft fork).
HeRetiK
Legendary
*
Offline Offline

Activity: 2926
Merit: 2091


Cashback 15%


View Profile
January 09, 2019, 01:29:22 PM
 #10

Sorry to ask a stupid question, but does this mean it's possible to have legacy and SegWit addresses in one wallet? From the discussions seems it's possible but I had always thought this couldn't be the case and still maintain 2 wallets. Or does the getnewaddress command also generate a new wallet? If Bitcoin Core could do that then it solves one of my old issues (providing legacy address but maintaining in same wallet).

Yes it is possible to have both - see screenshot.
I think it is because Segwit is backwards compatible (being a soft fork).

SegWit being a soft fork has nothing to do with the way Bitcoin addresses are generated.

Good question though. From what I've gathered so far P2SH-SegWit and native Bech32 SegWit addresses follow different derivation paths, but I guess legacy addresses and P2SH-SegWit addresses share the same derivation path? Or maybe that's just specific to Bitcoin Core's HD Wallet implementation?

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
asche (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1489


I forgot more than you will ever know.


View Profile
January 09, 2019, 01:31:55 PM
 #11

SegWit being a soft fork has nothing to do with the way Bitcoin addresses are generated.

Good question though. From what I've gathered so far P2SH-SegWit and native Bech32 SegWit addresses follow different derivation paths, but I guess legacy addresses and P2SH-SegWit addresses share the same derivation path? Or maybe that's just specific to Bitcoin Core's HD Wallet implementation?

It actually does in my opinion. Their use is backwards compatible. Being able to receive through non segwit and send through segwit or the other way around is dependent to the fact it is a soft fork.

A hard fork would indeed make you have two wallets since there is no compatibility.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
January 09, 2019, 03:57:34 PM
Merited by HeRetiK (1)
 #12

Sorry to ask a stupid question, but does this mean it's possible to have legacy and SegWit addresses in one wallet?
Yes.

Or does the getnewaddress command also generate a new wallet?
No, it does not generate a new wallet.

Good question though. From what I've gathered so far P2SH-SegWit and native Bech32 SegWit addresses follow different derivation paths, but I guess legacy addresses and P2SH-SegWit addresses share the same derivation path? Or maybe that's just specific to Bitcoin Core's HD Wallet implementation?
Bitcoin Core does not use different derivation paths for different address types. They are all derived using the same derivation path because keys are derived before the address type is known.

buwaytress
Legendary
*
Offline Offline

Activity: 2800
Merit: 3443


Join the world-leading crypto sportsbook NOW!


View Profile
January 10, 2019, 10:43:36 AM
 #13

@achow thanks for that. Am quite surprised to learn this only now... Been using two different wallets just to have both Segwit and legacy. Now understand that Electrum has separate derivation paths.

Do you know of any other client other than Bitcoin Core that allows for this? (Legacy amd Segwit address in 1 wallet)

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
January 10, 2019, 11:00:38 AM
Merited by buwaytress (1)
 #14

Do you know of any other client other than Bitcoin Core that allows for this? (Legacy amd Segwit address in 1 wallet)
Not sure about desktop clients, but Samurai has this capability (Mobile). You can turn Segwit address generation on/off with 1 checkbox.

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
😼 Bitcoin Core (onion)
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
January 10, 2019, 05:06:14 PM
Merited by buwaytress (1)
 #15

Do you know of any other client other than Bitcoin Core that allows for this? (Legacy amd Segwit address in 1 wallet)
IIRC Armory allows you to have both address types in one wallet. This is because they also generate keys before the address type is known.

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!