Fix / Solution For [err] Dcrw: Invalid Passphrase For Master Public Key With Public Key

Discussion in 'Security' started by Krypto, Feb 8, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. Krypto

    Krypto New Member

    Dec 31, 2015
    8
    3
    Male
    Hello Decred team, supporters and future users,

    Today I was thrilled to initiate my setup and followed the detailed instructions on https://forum.decred.org/threads/br...with-basic-commands-os-neutral.478/#post-6984

    I followed everything by the book but on this step
    dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass
    I received an error
    [ERR] DCRW: invalid passphrase for master public key with public key

    I researched , and researched, and hit the wall, but just when I was about to give up I found the fix..

    if you use multiple words for your public passphrase use " " to pass the passphrase string value. The spaces between your words will kill the command .
    You are VERY welcome

    If you feel this saved you massive frustration, grief and time, feel free to donate some decred ;)

    DsUxLULopLsg7E5MhEqHWNSeUUvy5EacFsi
     
    sambiohazard likes this.
  2. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    Also dont use any special characters like " or - or -- which are interpreted as part of commands in your passphrase.
     
  3. Krypto

    Krypto New Member

    Dec 31, 2015
    8
    3
    Male
    Actually using quotes " " saved the day. If people have a public passphrase with spaces (ex. Decred is a cool currency) the command will not interpret it correctly.
    the fix that worked from me
    dcrwallet -u user -P pass --walletpass "Decred is a cool currency" --dcrdusername=user --dcrdpassword=pass
     
  4. sambiohazard

    sambiohazard Sr. Member

    Jan 21, 2016
    844
    372
    but quotes should not be part of the password. eg what""ever might cause problem
     
  5. Krypto

    Krypto New Member

    Dec 31, 2015
    8
    3
    Male
    got it, that would be double trouble lol
     
  6. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    And under Unix like OSs, \ is an escape character. For example a fiale named "two words.txt" could be called in Unix with two\ words.txt with the "\" saying that the next character is part of the field, not a separator.
     
  7. anusiak

    anusiak New Member

    Feb 9, 2016
    6
    1
    Male
    I still get invalid passphrase and I used only letters and numbers in one word. What to do can I create second wallet with the same seed?
     
  8. rustynail

    rustynail New Member

    Jan 31, 2016
    15
    3
    Male
    You just need to pass --walletpass=[the password with which you encrypted your wallet]
     
    drunkenmugsy likes this.
  9. QlooQl

    QlooQl New Member

    Feb 9, 2016
    4
    1
    Male
    I made the mistake of using a ? in my password. Don't do that.
     

Share This Page