Bitcoin Forum
June 21, 2018, 05:06:17 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Bitcoin Core 0.16.0 binaries available  (Read 243 times)
Carlton Banks
Legendary
*
Offline Offline

Activity: 2044
Merit: 1197



View Profile
February 27, 2018, 10:26:56 AM
 #21

What prevents wallet software from spending from non-segwit addresses using the segwit address corresponding to a common public key?
Nothing.

So that means P2PKH or P2SH inputs could be spent respectively as P2WPKH or P2WSH? Transferring to segwit addresses isn't strictly necessary, as wallet software could be programmed to write transactions using the segwit address corresponding to the common public key of legacy addresses holding funds?

Vires in numeris
1529557577
Hero Member
*
Offline Offline

Posts: 1529557577

View Profile Personal Message (Offline)

Ignore
1529557577
Reply with quote  #2

1529557577
Report to moderator
1529557577
Hero Member
*
Offline Offline

Posts: 1529557577

View Profile Personal Message (Offline)

Ignore
1529557577
Reply with quote  #2

1529557577
Report to moderator
Goat says: "Bitcoin is NOT Illegal in Thailand. There is no law against Bitcoin in Thailand!"
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1529557577
Hero Member
*
Offline Offline

Posts: 1529557577

View Profile Personal Message (Offline)

Ignore
1529557577
Reply with quote  #2

1529557577
Report to moderator
cellard
Legendary
*
Offline Offline

Activity: 1050
Merit: 1083


View Profile
February 27, 2018, 03:23:31 PM
 #22

Anyone that has an old wallet.dat from early Bitcoin-qt days has tested it by the way? Any problems?

Do legacy and segwit addresses show up fine the GUI? got some screenshots to see how it looks like? I can't install it currently, im out and will not be back home for a while.

The old wallet loaded OK but it is empty so I couldn't test beyond that. To use Segwit you need a new wallet anyway so I renamed that and it made a new Segwit one automatically. Getting a new receiving address give a Segwit one start '3'. I'm still trying to work out how to get a bech32 address.

Edit: Official release thread has appeared https://bitcointalk.org/index.php?topic=3024763.0


Well I remember reading achow101 saying that if you had an old bitcoin-qt wallet.dat and opened it with 0.16 it will automatically convert it to the new format and you don't need to do anything annoying like creating an empty one and sending all of your coins over the new wallet.dat which is hell.

And also I got some coins on a bech32 electrum address, I've read I can't export it because it will not work properly... when this will be fixed?

I guess I will leave them on electrum's wallet for the time being.

Im also still paranoid about the new format. I assume the seed is impossible to see and therefore safer than electrum's hd format right?

What do you mean "impossible to see"? The seed still has to be stored in the encrypted wallet.dat

As far as I know, in Bitcoin Core is impossible to show the seed of the wallet for security reasons, while in Electrum is very easy to show the seed and it is shown even in the wizard when creating a wallet. Maybe there is a way to show it with Bitcoin Core on the command line, but I hope not, since it's pretty stupid, I think it just adds an huge exploit possibility. A hacker gets your seed and he gets all future addresses you create... not fun. I would never feel safe that way. Also seed derivation was possible with Electrum if you had a master public key and some other keys I think... im just too paranoid to even bother and I stick to the basics.

Im going to get rid of Electrum as soon as I install 0.16. If I can't import the keys I guess I will need to send the coins to myself.

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 1442
Merit: 1352


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
February 27, 2018, 03:43:52 PM
 #23

So that means P2PKH or P2SH inputs could be spent respectively as P2WPKH or P2WSH? Transferring to segwit addresses isn't strictly necessary, as wallet software could be programmed to write transactions using the segwit address corresponding to the common public key of legacy addresses holding funds?
No, I misread your question.

The output type is specified by a script since addresses do not exist on the network. So P2PKH and P2SH outputs have a specific script that need to have specific input scriptsigs in order for them to be spent from validly. Likewise, P2WPKH and P2WSH outputs have their own output scripts which need to be spent in a specific way that is different from P2PKH and P2SH outputs.

#BitcoinCore
Sr. Member
****
Offline Offline

Activity: 462
Merit: 310


✪FOXBIT | Exchange✪


View Profile
February 27, 2018, 03:57:08 PM
 #24

Quote
As far as I know, in Bitcoin Core is impossible to show the seed of the wallet for security reasons, while in Electrum is very easy to show the seed and it is shown even in the wizard when creating a wallet. Maybe there is a way to show it with Bitcoin Core on the command line, but I hope not, since it's pretty stupid, I think it just adds an huge exploit possibility. A hacker gets your seed and he gets all future addresses you create... not fun. I would never feel safe that way. Also seed derivation was possible with Electrum if you had a master public key and some other keys I think... im just too paranoid to even bother and I stick to the basics.

Im going to get rid of Electrum as soon as I install 0.16. If I can't import the keys I guess I will need to send the coins to myself.
@cellard The core does not provide the seed of the wallet, but the master private key, and this master key is hidden and encrypted in wallet.dat, to have access to it you must export all the keys of the wallet at once giving the command in the console:
Code:
dumpwallet "destination"
the master key will be at the beginning of the document.






███████████   ▄▄███████▄▄    ▄█▄      ▄█▄   █████████▄▄   ████  ██████████████
████▀▀▀▀▀▀▀  █████████████  ▀████▄  ▄████▀  ████▀▀▀▀████  ████  ▀▀▀▀▀████▀▀▀▀▀
████        ███████████████   ▀████████▀    ████    ▄███  ████       ████
█████████   ███████████████     ██████      ███████████   ████       ████
████▀▀▀▀▀   ███████████████   ▄████████▄    ████    ▀███  ████       ████
████        ▄█████████████  ▄████▀  ▀████▄  ████▄▄▄▄████  ████       ████
████      ▄███ ▀▀██████▀▀    ▀█▀      ▀█▀   █████████▀▀   ████       ████
         ▐███▌       ▄▄▄▄
         ▐█████▄▄▄███▀  ▀█▄
          ▀██████████▄▀▀▀▀█▄
            ▀█████▀▀
██
║║
║║
║║
██
██
██
║║
║║
║║
██
██
║║
║║
║║
██
██
██
║║
║║
║║
██

▄████████████████▄
███████████▀▀▀▀███
█████████▀     ███
█████████   ██████
███████        ███
█████████   ██████
█████████   ██████
▀████████   █████▀



 █████████████████
████████▀██████████
████████   ▀███████
████████   ▄███████
████████▄██████████
 █████████████████
Pages: « 1 [2]  All
  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!