<p><strong>If the <code>root.prv</code> file is all you have</strong>, you could &quot;recover&quot; it by re-deriving the secret key files using <code>cardano-address</code> and <code>cardano-cli</code> (which you should get from the official sources (e.g. <a href="https://github.com/input-output-hk/cardano-addresses" rel="nofollow noreferrer">cardano-addresses github</a>, etc.). Reminder to verify the binaries or source you build from).</p>
<p>Assuming you already have <code>cardano-address</code> and <code>cardano-cli</code> setup in your PATH. The commands could be something like this:</p>
<pre><code># Payment secret key from root.prv
cardano-address key child 1852H/1815H/0H/0/0 &lt; root.prv &gt; payment.xprv
cardano-cli key convert-cardano-address-key --shelley-payment-key --signing-key-file payment.xprv --out-file payment.skey
</code></pre>
<p>Note: you might need to update the derivation path accordingly if your wallet is a Byron-era wallet (e.g. 44H/1815H/0H/0/0).</p>
<p>From this point, you can derive your Verification Keys using <code>cardano-cli</code> if needed. Something like this:</p>
<pre><code>cardano-cli key verification-key --signing-key-file payment.skey --verification-key-file payment.evkey
cardano-cli key non-extended-key --extended-verification-key-file payment.evkey --verification-key-file payment.vkey
</code></pre>

CC BY-SA 4.0
2022-02-22T15:35:02.780Z
2022-02-22T15:35:02.780Z
Alo - RAMBO Pool
<p>You can copy the <code>wallets</code> directory in the Daedalus state directory of the old system to the new system. Daedalus Diagnostics in menu should have a link to where the state is on your operating system.</p>

CC BY-SA 4.0
2021-12-23T15:44:37.953Z
2021-12-23T15:44:37.953Z
Samuel Leathers
<p>I have a wallet for testnet that I was using for some experiments, I created it using cardano-wallet CLI, generated some recovery phrase that I thought I stored, but probably never did because it was of low importance on testnet and generated root.prv from that recovery phrase.</p>
<p>So, year later, now I am in a situation that I have this wallet on MacBook (I know its password), I don't have the recovery phrase and I want to also move it to another computer.</p>
<p>Daedalus only support recovery of wallet using recovery phrase, but I don't have that, I only have the root private key, which should be enough to regain full access to the wallet.</p>
<p>How can I &quot;recover it&quot;?</p>
<p>NOTE: I don't want to just transfer funds from there to a new wallet, this wallet is used as a testnet stake pool owner wallet, it would be too much work. Also this information could be useful to someone else in the future, so please try to answer the question instead of suggesting some workarounds or telling me it's a bad idea :-)</p>

CC BY-SA 4.0
2022-01-22T18:22:31.277Z
Does the root.prv file start with "root_xsk"?
zhekson
<wallet><private-key><recovery>
How to restore a wallet from root.prv file
# How to restore a wallet from root.prv file

(Asked by: username_0 on 2021-12-23)

I have a wallet for testnet that I was using for some experiments, I created it using cardano-wallet CLI, generated some recovery phrase that I thought I stored, but probably never did because it was of low importance on testnet and generated root.prv from that recovery phrase.

So, year later, now I am in a situation that I have this wallet on MacBook (I know its password), I don't have the recovery phrase and I want to also move it to another computer.

Daedalus only support recovery of wallet using recovery phrase, but I don't have that, I only have the root private key, which should be enough to regain full access to the wallet.

How can I "recover it"?

NOTE: I don't want to just transfer funds from there to a new wallet, this wallet is used as a testnet stake pool owner wallet, it would be too much work. Also this information could be useful to someone else in the future, so please try to answer the question instead of suggesting some workarounds or telling me it's a bad idea :-)

**Tags:** wallet, private-key, recovery
> **Comments:**
> **username_1**: Does the root.prv file start with "root_xsk"?  

---

## 2 answers

### Answer by username_2 on 2022-02-22. Score: 0

If the root.prv file is all you have, you could "recover" it by re-deriving the secret key files using cardano-address and cardano-cli (which you should get from the official sources (e.g. cardano-addresses github, etc.). Reminder to verify the binaries or source you build from).
Assuming you already have cardano-address and cardano-cli setup in your PATH. The commands could be something like this:
# Payment secret key from root.prv
cardano-address key child 1852H/1815H/0H/0/0 < root.prv > payment.xprv
cardano-cli key convert-cardano-address-key --shelley-payment-key --signing-key-file payment.xprv --out-file payment.skey

Note: you might need to update the derivation path accordingly if your wallet is a Byron-era wallet (e.g. 44H/1815H/0H/0/0).
From this point, you can derive your Verification Keys using cardano-cli if needed. Something like this:
cardano-cli key verification-key --signing-key-file payment.skey --verification-key-file payment.evkey
cardano-cli key non-extended-key --extended-verification-key-file payment.evkey --verification-key-file payment.vkey


---

### Answer by username_3 on 2021-12-23. Score: 0

You can copy the `wallets` directory in the Daedalus state directory of the old system to the new system. Daedalus Diagnostics in menu should have a link to where the state is on your operating system.


---

