Bitcoin Forum
October 31, 2024, 01:40:15 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Seed Phrases and Private Keys  (Read 300 times)
hugeblack
Legendary
*
Offline Offline

Activity: 2688
Merit: 3951



View Profile WWW
May 05, 2022, 10:20:24 AM
 #21

 Can I bypass using them in the first place and go straight to the master private key?  That's what I really want to do.

What you're trying to say is like who wants a tree but doesn't want to plant a seed, Master Private Key is a 256-bit key generated from a seed phrase so you need to generate the seed first and if you think it's not safe then the following construct is considered unsafe.


Source ---> https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch04.html


If you don't want to generate multiple addresses, why not print one address with a private key on a piece of paper >> paper wallet --> https://www.bitaddress.org/

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18726


View Profile
May 05, 2022, 10:24:03 AM
Last edit: May 05, 2022, 10:35:21 AM by o_e_l_e_o
 #22

Hopefully getting the master private key dumped from the wallet is simple enough.
Using the GUI:
  • Open Core
  • Click File -> Create Wallet
  • Pick a name and check "Encrypt Wallet"
  • On the next screen, enter an encryption passphrase
  • Create the wallet
  • Click Window -> Console
  • Select the wallet you just created from the drop down list
  • Enter walletpassphrase YOURPASSPHRASE 60 (this will decrypt your wallet for 1 minute)
  • Enter dumpwallet NAME (this will create a file named NAME in your bitcoin directory)
  • Navigate to that file and open it with a text editor, and your master private key will be displayed at the top
  • Delete this file once you have your master private key

I'll need to be connected to the internet then to get it right, is that a drawback?
You can do all the above while offline, and indeed, should do it while offline for additional security. Even better if you can do it all on a computer which is permanently airgapped and has never and will never go online.

Or would I have to connect to the internet at some point regardless with other methods as well?
Unless you are planning to use a permanently airgapped set up, then at some point your master private key will be stored in a wallet which is exposed to the internet.
witcher_sense
Legendary
*
Offline Offline

Activity: 2450
Merit: 4415


🔐BitcoinMessage.Tools🔑


View Profile WWW
May 05, 2022, 10:35:24 AM
 #23

Hopefully getting the master private key dumped from the wallet is simple enough.
Keep in mind that:
While this may "backup" your Bitcoin Core HD wallet, you will not be able to restore it to Bitcoin Core. Currently, xprvs cannot be imported into Bitcoin Core. Furthermore, Bitcoin Core does not use the standard BIP 44/49/84 derivation paths so you will need to find a wallet that lets you enter a custom derivation path. And that wallet needs to let you also use hardened derivation for the addresses themselves.

I would not recommend anyone use this method of backing up your Bitcoin Core wallet.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
caveminer (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
May 05, 2022, 10:41:46 AM
 #24

Hopefully getting the master private key dumped from the wallet is simple enough.
Using the GUI:
  • Open Core
  • Click File -> Create Wallet
  • Pick a name and check "Encrypt Wallet"
  • On the next screen, enter an encryption passphrase
  • Create the wallet
  • Click Window -> Console
  • Select the wallet you just created from the drop down list
  • Enter walletpassphrase YOURPASSPHRASE 60 (this will decrypt your wallet for 1 minute)
  • Enter dumpwallet NAME (this will create a file named NAME in your bitcoin directory)
  • Navigate to that file and open it with a text editor, and your master private key will be displayed at the top
  • Delete this file once you have your master private key

I'll need to be connected to the internet then to get it right, is that a drawback?
You can do all the above while offline, and indeed, should do it while offline for additional security. Even better if you can do it all on a computer which is permanently airgapped and has never and will never go online.

Or would I have to connect to the internet at some point regardless with other methods as well?
Unless you are planning to use a permanently airgapped set up, then at some point your master private key will be stored in a wallet which is exposed to the internet.


Thank you for everything! I tried a couple times but the walletpassphrase (password) 60 command gives me the following:
04:40:31

Executing command using "1" wallet


04:40:31

walletpassphrase(…)


04:40:31

null

After which I'm unable to do the other steps successfully.

o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18726


View Profile
May 05, 2022, 10:51:56 AM
 #25

Thank you for everything! I tried a couple times but the walletpassphrase (password) 60 command gives me the following:
This is the correct response. If you had entered the wrong passphrase then it would return an error saying so. Are you getting an error trying to use the dumpwallet command? Maybe try entering a full path for your file.

What OS are you running, and what version of Core?
caveminer (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
May 05, 2022, 10:57:45 AM
 #26

Thank you for everything! I tried a couple times but the walletpassphrase (password) 60 command gives me the following:
This is the correct response. If you had entered the wrong passphrase then it would return an error saying so. Are you getting an error trying to use the dumpwallet command? Maybe try entering a full path for your file.

What OS are you running, and what version of Core?

getnetworkinfo                returns
"version": 220000
  "subversion": "/Satoshi:22.0.0/",
  "protocolversion": 70016,

dumpwallet NAME           returns

Cannot open wallet dump file (code -8)
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18726


View Profile
May 05, 2022, 11:42:45 AM
 #27

Did you try entering a full path? So on Windows, you would enter something like:

Code:
dumpwallet C:\users\me\desktop\file

For Linux, something like:

Code:
dumpwallet /home/user/file
kryptqnick
Legendary
*
Offline Offline

Activity: 3262
Merit: 1402


Join the world-leading crypto sportsbook NOW!


View Profile
May 05, 2022, 11:50:35 AM
 #28

The technical side was already covered in the thread, but I want to say that it's quite a peculiar way to store the keys, op. Are you sure engraving it on metal is a good idea? My first question is very simple: are you good at engraving and going to do it yourself? Because otherwise it seems like a very bad idea because you'll need to give somebody that string of symbols, so that they can engrave it, effectively sharing what you should never share. This is a huge risk to anything in the wallet, IMO. If you're doing it yourself, it's probably okay, but what if you lose that single plate of metal? What if it gets rusty? What if it attracts someone's attention at your home?

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
caveminer (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
May 05, 2022, 12:12:35 PM
 #29

Did you try entering a full path? So on Windows, you would enter something like:

Code:
dumpwallet C:\users\me\desktop\file

For Linux, something like:

Code:
dumpwallet /home/user/file

Sorry, win 10 64 bit and yeh I did try doing that.  By the way the reason I thought the error was with the walletpassphrase step is because there was no 60 second delay, it was almost instant that it returned null.  I tried a desktop filepath this time and still got code -8, although this time it took longer before I got the error message. 
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18726


View Profile
May 05, 2022, 12:38:14 PM
 #30

By the way the reason I thought the error was with the walletpassphrase step is because there was no 60 second delay, it was almost instant that it returned null.
Again, that's expected. The 60 seconds are until Core enables the encryption again, not the delay until it decrypts it in the first place.

I tried a desktop filepath this time and still got code -8, although this time it took longer before I got the error message.
Sorry, I forgot the quotation marks. Try:

Code:
dumpwallet "C:\users\me\desktop\file"

Also make sure that Bitcoin Core has write permissions to wherever you are trying to write to.
caveminer (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
May 05, 2022, 03:50:38 PM
 #31

By the way the reason I thought the error was with the walletpassphrase step is because there was no 60 second delay, it was almost instant that it returned null.
Again, that's expected. The 60 seconds are until Core enables the encryption again, not the delay until it decrypts it in the first place.

I tried a desktop filepath this time and still got code -8, although this time it took longer before I got the error message.
Sorry, I forgot the quotation marks. Try:

Code:
dumpwallet "C:\users\me\desktop\file"

Also make sure that Bitcoin Core has write permissions to wherever you are trying to write to.


Thank you so so much for your patience and help, the quotes worked and I have a master key for this test run!
caveminer (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 5


View Profile
May 11, 2022, 04:27:35 PM
 #32

Everything is working great, my last question would be how would I do this without ever connecting to the internet?  Since to use core you have to sync up
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18726


View Profile
May 11, 2022, 07:20:31 PM
 #33

Since to use core you have to sync up
You have to let it sync if you plan to use it as a node, but it is entirely possible to use only the wallet functionality of Bitcoin Core without an internet connection.

Simply take the Bitcoin Core binary to match your OS over to your offline computer by USB drive after you have verified it and install. It will never connect to any peers and it will never sync, but it will still let you create a wallet the usual way. From that wallet you can export the addresses and then taken them over to your online device to create a watch only wallet using importaddress. On your watch only wallet you can create a transaction, hit the "Create Unsigned" button, and save the .psbt file it generates. Then move that .psbt file over to your offline wallet, load the .psbt, sign it, save the signed transaction, move it back to your online computer, load it, and broadcast it.
coupable
Hero Member
*****
Offline Offline

Activity: 2478
Merit: 760



View Profile
May 11, 2022, 08:00:31 PM
Last edit: May 14, 2022, 09:19:16 PM by coupable
 #34

Everything is working great, my last question would be how would I do this without ever connecting to the internet?  Since to use core you have to sync up
If i am not wrong, you need internet connection to synchronize with the blockchain then you continue using core offline. I can't tell if the methods mentioned above (suitable to your needs) can be done offline (except for entering a full path).
This also brigns the question of whether this is possible using other wallets or not. I mean other decentralized clients.

█████████████████████████████████
████████▀▀█▀▀█▀▀█▀▀▀▀▀▀▀▀████████
████████▄▄█▄▄█▄▄██████████▀██████
█████░░█░░█░░█░░████████████▀████
██▀▀█▀▀█▀▀█▀▀█▀▀██████████████▀██
██▄▄█▄▄█▄▄█▄▄█▄▄█▄▄▄▄▄▄██████████
██░░█░░█░░███████████████████████
██▀▀█▀▀█▀▀███████████████████████
██▄▄█▄▄█▄▄███████████████████████
██░░█░░█░░███████████████████████
██▀▀█▀▀█▀▀██████████▄▄▄██████████
██▄▄█▄▄█▄▄███████████████████████
██░░█░░█░░███████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
 Crypto Marketing Agency
By AB de Royse

████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
██████████████████████████████████████████████████████████████████████████████████████████████████
WIN $50 FREE RAFFLE
Community Giveaway

██████████████████████████████████████████████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████
██
██████████████████████
██████████████████▀▀████
██████████████▀▀░░░░████
██████████▀▀░░░▄▀░░▐████
██████▀▀░░░░▄█▀░░░░█████
████▄▄░░░▄██▀░░░░░▐█████
████████░█▀░░░░░░░██████
████████▌▐░░▄░░░░▐██████
█████████░▄███▄░░███████
████████████████████████
████████████████████████
████████████████████████
Joshapat
Sr. Member
****
Offline Offline

Activity: 1526
Merit: 255



View Profile
May 12, 2022, 09:31:38 AM
 #35

Seed Phrases and Private Keys is the most important thing to control our assets, many things are unexpected if we only save bitcoin in wallet without a private key, a few years ago I kept Bitcoin in Xapo, but a few months ago when I know bitcoin price increase and try to login to Xapo account then they block and will close the service, I am given time to withdraw bitcoin if not it will be charged every month but funny things are my account is blocked.


       ▄▄███▄    ▄███▄▄
     ▄▀▀    █    █    ▀▀▄
    ██    ▄▄▀    ▀▄▄    ██
    ▀▄▄▄█▀▀        ▀▀█▄▄▄▀
  ▄▄█▀█▄              ▄█▀█▄▄
▄█▀     ▀▀█▄     ▄▄█▀▀     ▀█▄
██          ▀█▄▄█▀          ██
▀█▄     ▄▄▄█▀▀  ▀▀▀▄▄▄     ▄█▀
  ▀█▄▄▄▀▀            ▀▀▄▄▄█▀
   █▀▀▄▄▄            ▄▄▄▀▀█
   ██  ▀▀▀▄▄      ▄▄▀▀▀  ██
    ▀▄     █      █     ▄▀
      ▀▀▄▄▄▀      ▀▄▄▄▀▀
.
cogwise
  ▄
█  █
  █
█  █
  █
█  █

  █
█  █
  █
█  █
  █
█  █
  ▀
.
Hyper-charge your trading with intelligent insights   ▄
█  █
  █
█  █
  █
█  █

  █
█  █
  █
█  █
  █
█  █
  ▀
▄█████████████████████▄
███████████████████████
████▀███████▀   ▀▀▀▄███
███▌  ▀▀███▌       ▄███
███▀               ████
███▄              █████
████▄            ██████
█████▄▄        ▄███████
████▄       ▄██████████
███████████████████████
▀█████████████████████▀

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

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

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

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