Passphrase recovery



  • Hi,
    I have a wallet on a node which is locked and I get error on passphrase. I do have the seed and the renter node has no contracts so I dont mind to destroy it.
    How do I restore the balance and wallet access using my seed?

    Thanks,
    Gadi


  • Global Moderator

    @gadi_sr You can only restore with the passphrase. If you don't have the passphrase the wallet is lost.

    Make sure you tag me @bryan if you need to me respond.
    Forum Mod. I cannot fix transactions. I can't help with Mac or Linux.

    0


  • @bryan said in Passphrase recovery:

    @gadi_sr You can only restore with the passphrase. If you don't have the passphrase the wallet is lost.

    I do not think the blockchains knows anything about your passphrase ??

    When you install the ui you are given the option to "create a new wallet" or "load a wallet from a seed"
    That should do the trick.


  • Global Moderator

    @Kermit Can't unlock the wallet without the passphrase. No need to load the seed if you don't have the passphrase.

    Make sure you tag me @bryan if you need to me respond.
    Forum Mod. I cannot fix transactions. I can't help with Mac or Linux.

    0


  • @bryan
    Since when can't one recover the wallet from seed (without passphrase)?
    The seed is the default passphrase after recovery. Or have I missed something again?
    I think the "recover from seed" means the blockchain is scanned for all transactions with all addresses belonging to the seed.
    Is the passphrase taken into account when generating addresses? Then you couldn't change your passphrase ever. But you can...

    @gadi_sr
    Just try. delete your sia app data directory, (leaving only consensus) .
    then recover from seed and try your seed as password when asked.

    If that does not work, there are reports that you could recover the coins by loading the seed into another wallet. And use the old seed as password... or the new seed as password...
    Sorry, I don't remember exactly.


  • Global Moderator

    @reinisp Hmm maybe it is me who is missing something. Isn't the phrase required to unlock the wallet?

    Make sure you tag me @bryan if you need to me respond.
    Forum Mod. I cannot fix transactions. I can't help with Mac or Linux.

    0

  • Global Moderator

    @reinisp Yes. Looking at the SIA WIKI it clearly says. "The UI will then ask for your wallet password (seed). A restart of siad is required."

    Meaning without the passphrase the wallet cannot be recovered.

    https://siawiki.tech/wallet/recovering_from_seed

    Now I'm confused.

    Make sure you tag me @bryan if you need to me respond.
    Forum Mod. I cannot fix transactions. I can't help with Mac or Linux.

    0


  • @bryan
    Yes, the password is needed to unlock, but it is not stored on blockchain. So the recovery process can't verify against anything.
    And when the wallet is recovered (recreated) the seed is the password as if it were never set to anything.

    But, it should.
    Some people report it is not working straight forward.



  • @bryan

    siac wallet init-seed
    

    is the command not

    siac wallet load
    

    if you want to recover your wallet.
    with load you load some old wallet into a new one.
    Though, I'm not sure how should a wallet work properly with more than one seed loaded simultaneously.

    That WIKI could be something from old times...
    My node shows me:

    siac wallet -h
    Generate a new address, send coins to another wallet, or view info about the wallet.
    ...
    Usage:
      /sia/bin/siac wallet [flags]
      /sia/bin/siac wallet [command]
    
    Available Commands:
      address         Get a new wallet address
      addresses       List all addresses
      balance         View wallet balance
      change-password Change the wallet password
      init            Initialize and encrypt a new wallet
      init-seed       Initialize and encrypt a new wallet using a pre-existing seed
      load            Load a wallet seed, v0.3.3.x wallet, or siag keyset
      lock            Lock the wallet
      seeds           View information about your seeds
      send            Send either siacoins or siafunds to an address
      sweep           Sweep siacoins and siafunds from a seed.
      transactions    View transactions
      unlock          Unlock the wallet
    
    Flags:
    ...
    

    Agreed, deleting the wallet and recreating from seed is a bit shooting with a bazooka instead of a sniper rifle. That makes only the SC balance survive. But you can't recover your files or contracts anyway yet.



  • I have just tested.

    1. Made a wallet via
      siac wallet init -p
      and set a password.

    2. Unlocked the wallet with the set password (different from seed).

    3. Then shutdown siad process and delete the wallet.db file.

    4. After starting siad no wallet found, can't be unlocked via password or seed.

    5. recovered wallet via "siac wallet init-seed" and the seed (generated at creation time). No password was asked.

    6. Try unlock with password (set at first creation) gives error "Could not unlock wallet: error when calling /wallet/unlock: provided encryption key is incorrect"

    7. Try unlock with seed as password, gives no error:

     /sia/bin/siac wallet unlock
    Wallet password:
    Wallet: scanned to height 118844...
    Done!
    

    Bingo! Restored and unlocked. Password is reset to the seed. And can be changed to encrypt the local wallet again (since version 1.3.0.).



  • Thanks !


Log in to reply