> For the complete documentation index, see [llms.txt](https://support.safeheron.com/help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.safeheron.com/help-center/product-and-solution/support/offline-private-key-recovery.md).

# Offline Private Key Recovery

## Introduction&#x20;

As a decentralized enterprise-level wallet, Safeheron does not store customers’ private keys. Wallet private keys are stored directly by customers. When a customer terminates Safeheron service, or Safeheron’s service is no longer available, customers can use **Offline Private Key Recovery Tool** provided by Safeheron to recover all the private keys. The reovered private key can be imported into other hardware and software wallets.

Now, let’s learn how to recover your asset’s private key through the offline private key recovery tool.&#x20;

## Getting Started

<mark style="color:green;">**Note**</mark>: For the security of your private key shards, when using Safeheron's offline private key recovery tool should be disconnected from the Internet.

Two functions provided by the offline private key recovery tool are:&#x20;

**Verify Private Key Shard Backup** and **Recover Wallet Private Key**

![](/files/IlSYXJ399CoOKerEkh3v)

## Verify Private Key Shard Backup Function&#x20;

To make sure that all the 3 private key shards you back up can together 100% recover the original private key, we suggest you verify the usability and accuracy of the “backed up private key shard recovery phrase” through **Verify Private Key Shard Backup**.&#x20;

#### Step-by-step Guide

#### Select version

Following the algorithm upgrade, teams created based on the new algorithm won't need Chaincode for key recovery and can choose the **V2** version of the recovery tool. However, old teams (previously created before the launch of new algorithms) will still need to use Chaincode and go for the **V1** version.

1\. Click **Verify Private Key Shard Backup**.

2\. According to the offline recovery tutorial email sent to you by Safeheron, you can confirm the version you should choose by checking whether there is a Chaincode provided. The version you need to select will also be informed in the email.

![](/files/4AcB04goP4lM3unOKcK2)

### **V1: Verify Private Key Shard Backup**

1. For the recovery phrase’s security and remote verification, Safeheron does not verify the recovery phrases you back up. Instead, Safeheron verifies the corresponding public key (generated by the recovery phrase) for the private key shard. Click **Generate Private Key Shard's Public Key** lower left.

<figure><img src="/files/TdlB3wAcn4wDyvHhCYaR" alt=""><figcaption></figcaption></figure>

2. Enter one backed-up recovery phrase and your chaincode.

<figure><img src="/files/WDG9dwuhvZZInjBeCG1o" alt=""><figcaption></figcaption></figure>

3. After entering the correct recovery phrase and chaincode, click Generate. The newly generated private key shard’s public key will show up above the button. Then, click **Copy**.

<figure><img src="/files/fqC5nbfcS6baVW4zXTmV" alt=""><figcaption></figcaption></figure>

4. Paste one private key shard’s public key into one field. We suggest different backup individuals go through steps 3 & 4 on different computers to get other private key shard’s public keys, to avoid all recovery phrases on the same computer.

Only need to fill in three public keys, no specific sequence is required.

Click **Next** to generate extended public keys.

<figure><img src="/files/60vbEtivs7VCN9e05Fnt" alt=""><figcaption></figcaption></figure>

5. Compare the public key with the full extended public key (**Me-Team Info**) in Safeheron App.&#x20;

* If they are consistent, the verification is successful.&#x20;
* If they are inconsistent, please check whether the recovery phrase for generating the public key is the right one.&#x20;
* If your recovery phrase is correct but the verification fails, please contact Safeheron.

<figure><img src="/files/HYHgTU6hxY5mfaywBkcs" alt=""><figcaption></figcaption></figure>

### V2: Verify Private Key Shard Backup

1. For the recovery phrase’s security and remote verification, Safeheron does not verify the recovery phrases you back up. Instead, Safeheron verifies the corresponding public key (generated by the recovery phrase) for the private key shard. Click Generate Private Key Shard's Public Key lower left.

<figure><img src="/files/vpT47LMJsYTuR22jUSTZ" alt=""><figcaption></figcaption></figure>

2. Enter one backed-up recovery phrase and your chaincode.

<figure><img src="/files/4sWxPwkMgubJp7KvQpBi" alt=""><figcaption></figcaption></figure>

3. After entering the correct recovery phrase and chaincode, click Generate. The newly generated private key shard’s public key will show up above the button. Then, click Copy.

<figure><img src="/files/usswcQovDm1zguSsL9Sr" alt=""><figcaption></figcaption></figure>

4. Paste one private key shard’s public key into one field. We suggest different backup individuals go through steps 3 & 4 on different computers to get other private key shard’s public keys, to avoid all recovery phrases on the same computer.

<figure><img src="/files/FbqqQItEVIBPzJU0hIFs" alt=""><figcaption></figcaption></figure>

5. Compare the public key with the full extended public key (**Me-Team Info**) in Safeheron App.&#x20;

* If they are consistent, the verification is successful.
* If they are inconsistent, please check whether the recovery phrase for generating the public key is the right one.
* If your recovery phrase is correct but the verification fails, please contact Safeheron.

<figure><img src="/files/bVs6W7em82yyiv6j2Vch" alt=""><figcaption></figcaption></figure>

## Recover Wallet Private Key&#x20;

Recover the private key for your wallet assets when you terminate Safeheron service or Safeheron is unavailable.

#### Step-by-step Guide

#### Select Version

Following the algorithm upgrade, teams created based on the new algorithm won't need Chaincode for key recovery and can choose the V2 version of the recovery tool. However, old teams (previously created before the launch of new algorithms) will still need to use Chaincode and go for the V1 version.

1\. Click **Recover Wallet Private Key**.

2\. According to the offline recovery tutorial email sent to you by Safeheron, you can confirm the version you should choose by checking whether there is a chaincode. The version you need to select will also be informed in the email.

<figure><img src="/files/LcGuL3JrHPLg763S2GmU" alt=""><figcaption></figcaption></figure>

### **V1: Recover Wallet Priviate key**

1. Read the instruction, check “Got it” and then click **Next**.

<figure><img src="/files/To5qzSJym5fRH0iF1n3y" alt=""><figcaption></figcaption></figure>

2. Enter Chaincode: When you complete the recovery phrase backup, Safeheron will send you the *Original Private Key Offline Recovery Tutorial* by email and the chaincode can be found within the email.

<figure><img src="/files/g9QtAhQS5F3zLgzCGYip" alt=""><figcaption></figcaption></figure>

3. Click **Next** and complete verification of 3 recovery phrases, no sequence required.

<figure><img src="/files/WRe8QezPQybTUPPTFAUx" alt=""><figcaption></figcaption></figure>

4. Enter the last recovery phrase and then click **Next**. Then, click **Choose** to import the data file of the team wallet to which the backed-up recovery phrase belongs.

<figure><img src="/files/ELO3VsX9U6ph8oyhscDo" alt=""><figcaption></figcaption></figure>

5\. After importing the wallet data file, click Next to recover the wallet private keys.

6\. Click **Export**: Export the file including the wallet private key and keep it safe. Please note this file contains all the wallet private keys your team has. We suggest you keep them on offline devices.

<figure><img src="/files/TVd5idqMMIeKhtMKycv4" alt=""><figcaption></figcaption></figure>

### V2:  **Recover Wallet Private key**

1. Read the instruction, check “Got it” and then click **Next**.

<figure><img src="/files/mzhjo2RySmjCX8Yd19Ul" alt=""><figcaption></figcaption></figure>

2. Click **Next** and complete verification of 3 recovery phrases, no sequence required.

<figure><img src="/files/NEsPSY8JIjnM16r3M1KQ" alt=""><figcaption></figcaption></figure>

3. Enter the last recovery phrase and then click **Next**. Then, click **Choose** to import the data file of the team wallet to which the backed-up recovery phrase belongs.

<figure><img src="/files/d2c2FOdJwk5FMdxGFcOw" alt=""><figcaption></figcaption></figure>

4. After importing the wallet data file, click Next to recover the wallet private keys.
5. Click **Export**: Export the file including wallet private key and keep it safe. Please note this file contains all the wallet private keys your team has. We suggest you keep them on offline devices.

<figure><img src="/files/loVKA4v6pXy7fxzIS1lz" alt=""><figcaption></figcaption></figure>
