Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Request: How to keep wallet offline and safe.

Discussion in 'Daemon and QT Wallet Guides' started by JMW, Mar 31, 2015.

  1. JMW

    JMW New Member

    Joined:
    Mar 31, 2015
    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    How do you keep a wallet offline? Lets say I purchase 1000 DASH and dont plan on trading it for awhile. How would you store them to ensure they don't go missing?
     
    • Like Like x 1
  2. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Dump your privkey and write it down or print it, keep it in a safe box or boxes. Also save your wallet.dat on multiple USB sticks and put them in a safe places.
     
    • Like Like x 1
  3. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Hi can u please walk me through a dash paper wallet withdrawal?
     
    • Like Like x 1
  4. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Here's the site that explains what you're looking for:
    https://walletgenerator.net/?currency=Darkcoin#

    Look under "How to spend the coins stored in a paper wallet ?"
    "You will need to import your private key in a real client, that you can download from the currency website. The exact method to do that will depend on the client. If there is no integrated method, you can usually fall back to the debug console and use the command “importprivkey [yourprivatekey]“."

    All you have to do is download and install Dash wallet from dashpay.io. Go to debug console and follow that instruction.

    The money should be back in your real wallet on your computer for you to spend! Have fun. :)
     
    • Like Like x 1
  5. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Thanks ......but my wallet has a passphrase how would the script look like? with passphrase on it?
     
    • Like Like x 1
  6. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    On your debug console, type: walletpassphrase <yourpassphrase> 99999 importprivkey <yourprivkey> (without those brackets < > ).

    "99999" is just an arbitrary number for seconds to keep your wallet open so you can import your privkey.
     
    • Like Like x 2
  7. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Slight correction - it's 2 separate commands:
    walletpassphrase <yourpassphrase> 99999
    importprivkey <yourprivkey> <label>
    And you can also assign <label> which will be shown in "Receiving addresses" next to corresponding address.
     
    • Like Like x 1
  8. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Thanks ill try that
     
  9. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Can I ask you a stupid question? The "99999" is that the time your wallet is going to be open?
     
  10. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Never mind all I had to do is read that post above you LOL.
     
  11. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Thank you the scripts work . Now my private key is not working. Invalid key it say code -5. Where can I look that up?
     
  12. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Sorry I overlooked an error in my previous post.. But did you follow Udjin's instruction exactly?

    Step 1: walletpassphrase <yourpassphrase> 99999
    (To open your wallet)

    Stepe 2: importprivkey <yourprivkey> <label>
    (To import your privkey. I normally disregard the label but you can type a name in there for your address)

    Not sure why it's not working but code -5 means the privkey is incorrect: "Invalid private key encoding (code -5)", so make sure you type it in the console correctly and try again?
     
  13. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Moli thanks for your patience with me brother I appreciate it. So step 1 worked for me. Step 2 gives me an invalid message. I got this paper wallet from a cryptocards website I copied and pasted both my public and private and sent it to them. I dunno if I messed up copying and pasting but who would mess that up? Anyway I was gonna ask you about that public key that is paired up with my privkey that keeps giving me invalid message. That public key is not linked to my dash qt wallet how do I link it. I think that's the issue
     
  14. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    That explains it pretty well - wallet do not accept bip38 encrypted private keys, you need to decrypt it first and then use importprivekey with the result.
    To decrypt it you can use https://walletgenerator.net/?currency=Darkcoin# for example. Go to "Wallet Details" tab, enter your bip38 privkey, click view detials, enter bip38 password, grab "Private Key WIF Compressed (52 characters Base58)" and import it into wallet. (You can do this completely offline to be safe)

    EDIT: try to grab this one instead - "Private Key WIF (51 characters) Base58"
     
    #14 UdjinM6, Apr 23, 2015
    Last edited by a moderator: Apr 28, 2015
    • Like Like x 3
  15. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    I should have said that in the first place huh LOL. Ok so after I import my privkey What script would I use to withdraw the funds to my wallet? Thanks bro that helped a lot
     
  16. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    When you import your privkey you import the money that is in the pubkey of that privkey. The money should show up right away once you got the privkey imported.
     
  17. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,637
    Likes Received:
    3,536
    Trophy Points:
    1,183
    Your money is on the blockchain and you private key is the key to unlock your money and move them on the blockchain (while your public key is the key to view your money on the blockchain but not to move them). It doesn't matter how many wallets you (or someone) have imported you private key to - all of them will have the same level of control of your money. That's why it is very important to keep it safe.
     
    • Like Like x 2
  18. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    OK thanks guys. Would you recommend getting paper wallets on a website using BIP38?
     
  19. moocowmoo

    moocowmoo Bovine Bit-flipper
    Foundation Member

    Joined:
    Jun 15, 2014
    Messages:
    483
    Likes Received:
    603
    Trophy Points:
    263
    Dash Address:
    XmoocowYfrPKUR6p6M5aJZdVntQe71irCX
    how to build a secure paper wallet:
    1. goto https://walletgenerator.net/
    2. save page as -> to a usb key
    3. on a secure laptop with networking turned off (or even better, a linux live cd) generate and print your wallets.
    4. to protect from flood/monsoon/zombies, print two copies (ignore the webpage warnings) and place them in waterproof bags/different buildings
    5. send funds to newly created addresses
    6. have a beer
    bip38 is great for protecting your paper wallets, just make sure you don't forget/lose the password.
     
    • Like Like x 3
  20. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Did you manage to import your privkey from the paper wallet successfully? You got all your coins in the wallet, correct? Please do tell us. I can't wait to hear how that turned out for you! :)
     
  21. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3

    Still no joy.... after I did wallet passphrase and then importprivkey I used the decrypted key "52 characters Base58" the funds still did not transfer. But I checked in the blockchain explorer the funds are still there.
     
  22. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Hmm.. that's odd. Did you follow Udjin's advice from his post: https://dashtalk.org/threads/request-how-to-keep-wallet-offline-and-safe.4535/#post-52112 ?

    I'm going to list the steps in his instruction to make it a bit clearer:
    1. Go to "Wallet Details" tab, enter your bip38 privkey,
    2. Click view details, enter bip38 password,
    3. Grab "Private Key WIF Compressed (52 characters Base58)" "Private Key WIF (51 characters) Base58" and import it into wallet.
    (You can do this completely offline to be safe)

    Maybe try this instruction again and see if it works? Note that he said to import your "Private Key WIF Compressed (52 characters Base58)" "Private Key WIF (51 characters) Base58" to your wallet.
     
    #22 moli, Apr 25, 2015
    Last edited by a moderator: Apr 28, 2015
  23. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    I tried twice with the above instructions. Still did not work. Is there anything else im missing on the script? Or do I have put the amount? importprivkey "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "12345"?
     
  24. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Hmm... I'm not sure what could go wrong... Maybe UdjinM6 or moocowmoo can help you out... Let's wait for them to respond here then... Sorry. :/
     
  25. moocowmoo

    moocowmoo Bovine Bit-flipper
    Foundation Member

    Joined:
    Jun 15, 2014
    Messages:
    483
    Likes Received:
    603
    Trophy Points:
    263
    Dash Address:
    XmoocowYfrPKUR6p6M5aJZdVntQe71irCX
    you have to unlock your wallet first

    Code:
    walletpassphrase <yourpasswordhere> 120
    importprivkey <yourwif> <a_label>
    where a_label is a label you want to attach to the address. e.g. "paper_wallet_Xblahbla"

    your wif will start with a X -- here's a random one as an example: XBKyyfrysJjh6mQJt9emW86xzieJDM4LfxAbanZXMYAmxdbRKDUz
     
  26. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    Yes, the WIF is the one I used and it started with an X. Still no joy. Ok I understand the pairing of the public key and the decrypted private key to access the funds. But here's my question. Whenever I import my decrypted privatekey to my dash qt wallet. How would I know that I am pairing it the public key that I have on my paper wallet? The scripts by the way are working fine I don't get any error message whenever I input them. Its just nothing happens when I enter the walletphrase "xxxxx" "label" and then importprivkey "xxxxxxxx"
     
    #26 JCM, Apr 26, 2015
    Last edited by a moderator: Apr 26, 2015
  27. splawik21

    splawik21 Grizzled Member
    Dash Core Team Foundation Member Dash Support Group Moderator

    Joined:
    Apr 8, 2014
    Messages:
    1,912
    Likes Received:
    1,273
    Trophy Points:
    1,283
    Hmmm strange....
    Do you get any kind of error msg?
    edit: moli LOL walletphrase just passed me and I didn`t saw the error ;)
     
    #27 splawik21, Apr 26, 2015
    Last edited by a moderator: Apr 26, 2015
  28. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    It's not "walletphrase". It's "walletpassphrase". So I guess you typed the wrong word in and that was why it didn't work? Again, here are the steps:
    • Step 1: walletpassphrase <yourpassphrase> 600
      (To open your wallet for 10 minutes)

    • Step 2: importprivkey <yourprivkey> <label>
      (To import your private key. You can disregard label or type a name for your address there.)
     
  29. JCM

    JCM New Member

    Joined:
    Jan 25, 2015
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    3
    I meant to type "walletpassphrase" pls ignore that part of the post that would've gave me an error message. I have tried multiple times with your instruction above. Now im thinking of backing up and then emptying my wallet uninstall and re install see If that works.
     
    #29 JCM, Apr 26, 2015
    Last edited by a moderator: Apr 26, 2015
  30. moli

    moli Grizzled Member

    Joined:
    Aug 5, 2014
    Messages:
    3,261
    Likes Received:
    1,837
    Trophy Points:
    1,183
    Any luck?