Bitcoin Forum
May 24, 2019, 12:18:23 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core 0.17.1 unable to create non segwit adresses  (Read 245 times)
asche
Hero Member
*****
Offline Offline

Activity: 518
Merit: 593


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?

1558657103
Hero Member
*
Offline Offline

Posts: 1558657103

View Profile Personal Message (Offline)

Ignore
1558657103
Reply with quote  #2

1558657103
Report to moderator
GET 25 FREE SPINS AT REGISTRATION
GET 100% BONUS ON FIRST DEPOSIT
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Carlton Banks
Legendary
*
Offline Offline

Activity: 2380
Merit: 1673



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: 518
Merit: 593


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

Activity: 171
Merit: 177



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/

Github profile ~ Crypto Lyon (french community)  ~ GPG key fingerprint : E13F C145 CD3F 430 ~ LN public key : 03678b4f041fbfbeebcafc076469df75decf81da20a53bd490172e83ce532df1fa
Tutorials/posts : Address from private keyBitcoin smart contracts ~ Setup a Bitcoin node ~ Raw P2PKH transaction in Python ~ P2SH ~ 51% attack
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1778
Merit: 2398


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
*
Online Online

Activity: 1568
Merit: 1539


My hat is in storage. https://ibb.co/YLkPgXb


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.

......
.L I V E C O I N . N E T.
.
..PROFITBOX..
██  █████████████████████████
  █████████▄      ▄██████████
█████████████▄  ▄████████████
    █████████████████████████
  ██████████▀    ▀█ ▀████████
████  █████▀  ▄▄  ▀█  ▀██████
  ████████▀  ▄██▄  ▀█   ▀████
    ██████   ▀██▀   ██   ████
  █████████▄      ▄██████████
██  █████████▄  ▄████████████
  ███████████████████████████
██  █████████████████████████
  █████████████████████▀ ███
█████████████████████▀   ███
    █████████████▀     ████
  █████████████▀   ██    ████
████  █████▀     ██    ████
  ███████▀   ██    ██    ████
    █████    ██    ██    ████
  ███████    ██    ██    ████
██  █████    ██    ██    ████
  ███████████████████████████
.....
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1778
Merit: 2398


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

Activity: 994
Merit: 890


I bit, therefore I am


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: 518
Merit: 593


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: 1120
Merit: 1049


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: 518
Merit: 593


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: 1778
Merit: 2398


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

Activity: 994
Merit: 890


I bit, therefore I am


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
GrumpyKitty
Legendary
*
Offline Offline

Activity: 2226
Merit: 2027


Red Trust Queen™️


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.

.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1778
Merit: 2398


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!