Bitcoin Forum
February 17, 2020, 07:55:27 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core 0.17.1 unable to create non segwit adresses  (Read 263 times)
asche
Hero Member
*****
Offline Offline

Activity: 784
Merit: 956


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?

1581926127
Hero Member
*
Offline Offline

Posts: 1581926127

View Profile Personal Message (Offline)

Ignore
1581926127
Reply with quote  #2

1581926127
Report to moderator
1581926127
Hero Member
*
Offline Offline

Posts: 1581926127

View Profile Personal Message (Offline)

Ignore
1581926127
Reply with quote  #2

1581926127
Report to moderator
Bitcoin Poker 3.0
The Largest Bitcoin Poker Site
Bad Beat Jackpot Available
No Limit Texas Hold'em Cash Games And Tournaments
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1581926127
Hero Member
*
Offline Offline

Posts: 1581926127

View Profile Personal Message (Offline)

Ignore
1581926127
Reply with quote  #2

1581926127
Report to moderator
1581926127
Hero Member
*
Offline Offline

Posts: 1581926127

View Profile Personal Message (Offline)

Ignore
1581926127
Reply with quote  #2

1581926127
Report to moderator
Carlton Banks
Legendary
*
Offline Offline

Activity: 2632
Merit: 2198



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
Hero Member
*****
Offline Offline

Activity: 784
Merit: 956


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: 247
Merit: 373



View Profile WWW
January 08, 2019, 08:14:37 PM
Merited by HCP (2), vapourminer (1), bones261 (1), mikeywith (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: 2044
Merit: 3086


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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: 1736
Merit: 1722



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: 2044
Merit: 3086


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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: 1260
Merit: 1164


https://bitcoin.watfordfc.com


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).

asche
Hero Member
*****
Offline Offline

Activity: 784
Merit: 956


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: 1372
Merit: 1221


the forkings will continue until morale improves


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?

asche
Hero Member
*****
Offline Offline

Activity: 784
Merit: 956


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: 2044
Merit: 3086


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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: 1260
Merit: 1164


https://bitcoin.watfordfc.com


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)

Lauda
Legendary
*
Offline Offline

Activity: 2492
Merit: 2398


Exchange Bitcoin quickly-https://blockchain.com.do


View Profile
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.

████████████████████████████
████████▀▀ █▀ █▀ ▀██████████
█████████▄ ▄▄▄▄▄▄███████████
██████████▀     ▀  ▀████████
███████▀ ▀  ▄█▀▀▀█▀▀████████
██████▄      █▄  ▀▀  ▀██████
██████         ▄▄█▄ ▄ ▀█████
█████ ▄         ▀▀ ▄ ▀ █████
██████▌          █▀█▀ ▐█████
███████  ▄▌         ▄ ██████
████████▄█         ▄████████
█████████▀     ▄▄ ▄█████████
████████████████████████████
.JACKMATE'S...........
.
MAJESTIC..
████████████████████████
███████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
████████████████████████
.
..WIN 1 BITCOIN ON EVERY PREMIER LEAGUE MATCHDAY..
████████████████████████████████
████████████▀█▀ ▀█▀█▀███████████
███████████▄ ▄▄▄▄▄▄▄████████████
███████████▀▀▄▄▄▄▄▄▄▄███████████
█████████▀▄ ██▀▄▄▄ ▀ ▄▀█████████
███████▀ ▀█████▄▄▄█▄▄▄██████████
███████▀▄████████▀  ▀█ █▐███████
███████ ▀█████████▄█▀▀██ ███████
████████ ███▀██████ ▄ ██ ███████
████████▌▐▀▄ ██████████ ▄███████
█████████▄██▌▐█████▀██ █████████
████████████▄▀▀▀▀▀▄ ▀▄██████████
████████████████████████████████
.
.JOIN US - IT'S FREE! .
achow101
Moderator
Legendary
*
Offline Offline

Activity: 2044
Merit: 3086


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


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:  

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!