Recovering the master seed
How the three Shared Owners recover the master seed of a hosted Workspace on a Ledger Nano S Plus, and how the master seed is derived from their recovery phrases.
This page explains how the master seed of a hosted Workspace is derived. It also gives the procedure that recovers it outside the Hardware Security Module (HSM).
Role: Shared Owners.
Warning: The recovered master seed controls the keys of every Account in the Workspace. Outside the HSM, the Rules and approval steps of the Workspace do not apply. Anyone who holds the recovered master seed can move the funds.
When this applies
Recovery is a disaster procedure. It puts the master seed on a device outside the HSM, so that you can move the funds to other addresses.
It applies to a hosted Workspace only. An on-premises Workspace has no Shared Owners. See Workspace onboarding.
It needs the 24-word recovery phrases of all three Shared Owner devices. With two phrases, the master seed cannot be recovered.
How the master seed is derived
The derivation uses the open standards BIP39 and BIP32.
Each Shared Owner device has a 24-word recovery phrase that follows BIP39. The derivation uses no BIP39 passphrase.
From each phrase, BIP39 gives a 512-bit seed, and BIP32 gives a master key.
From each master key, BIP32 derives the key at the path
m/5655636'/4932953'. This 512-bit key is the shard of that Shared Owner.The HSM combines the three shards with an XOR operation. The result is the master seed.
The master seed is the BIP32 seed of the root key of the Workspace. The keys and addresses of every Account derive from this root key.
During Workspace onboarding, each Shared Owner device sends its shard to the HSM over an encrypted channel. The HSM does the XOR operation. The master seed never leaves the HSM.
The derivation is one way. You cannot encode the master seed back into a 24-word recovery phrase.
Recover on a Ledger Nano S Plus
This is the method that Ledger recommends. The Nano S Plus computes the master seed offline, and keeps it in its secure environment.
What you need
A Ledger Nano S Plus with firmware version 1.0.4 or later.
A computer with the Ledger Wallet app, to update the firmware. See Ledger Wallet.
The recovery page: web.enterprise.ledger.com/recover.
The 24-word recovery phrases of the three Shared Owners.
Before you begin
Decide which Shared Owner starts the recovery.
The first Shared Owner sets the PIN of the Nano S Plus. The PIN has 4 to 8 digits.
If the recovery takes several sessions, the first Shared Owner gives the PIN to the two other Shared Owners. You can change the PIN at any time.
The Nano S Plus must have no PIN and no seed when the recovery starts.
Prepare the Nano S Plus
If the Nano S Plus is new, start at step 6.
Connect the Nano S Plus to the computer with its USB-C cable.
Enter the PIN.
Press both buttons briefly.
Go to Settings > Security > Reset device.
Confirm the reset. As an alternative to steps 2 to 5, enter a wrong PIN three times in a row.
Use Ledger Wallet to update the firmware to version 1.0.4 or later.
When the update is complete, disconnect the device.
To start the Nano S Plus in recovery mode, do these steps:
Connect the USB end of the cable to the computer.
Press and hold the left button of the Nano S Plus.
Connect the USB-C end of the cable to the Nano S Plus.
Keep the button pressed until the boot menu shows.
Select Recovery mode, the second entry in the menu.
Press both buttons to confirm.
Recover with the three Shared Owners together
Use this procedure when the three Shared Owners are at the same place at the same time.
Start the recovery:
Select Recover the master seed.
Select I’ve read the recovery process.
Select Start recovery.
Start the Nano S Plus in recovery mode.
On the recovery page, select My device is ready.
The first Shared Owner:
On the Nano S Plus, press both buttons on the Start screen of the recovery.
Press both buttons to create a PIN.
Use the right and left buttons to enter a PIN of 4 to 8 digits.
Select the check mark. Then press both buttons.
Enter the PIN again.
Select the check mark. Then press both buttons.
Press both buttons to start the entry of your 24 words.
For each word, select the correct word. Then press both buttons.
When the 24 words are entered, press both buttons to go to the next Shared Owner.
The second and the third Shared Owners, one after the other:
Press both buttons to start the entry of your recovery phrase.
For each word, select the correct word. Then press both buttons.
When the 24 words are entered, press both buttons to go to the next Shared Owner.
Finish the recovery:
On the Nano S Plus, press both buttons on the Done screen of the recovery.
On the recovery page, select I’ve completed all the steps.
Recover in several sessions
Use this procedure only when the three Shared Owners cannot meet. The device travels between the Shared Owners, with its PIN.
The first Shared Owner:
Do the steps in Start the recovery.
Do the steps for the first Shared Owner, up to the end of the 24 words.
Disconnect the Nano S Plus.
Send the Nano S Plus to the next Shared Owner.
Each of the two other Shared Owners, one after the other:
Select Recover a share.
Select I’ve read the recovery process.
Select Start recovery.
Start the Nano S Plus in recovery mode.
On the recovery page, select My device is ready.
On the Nano S Plus, press both buttons on the Start screen of the recovery.
Use the right and left buttons to enter the PIN from the first Shared Owner.
Select the check mark. Then press both buttons.
On the recovery page, select My device is ready again.
Press and hold both buttons to select the continue screen of the recovery.
Press both buttons to start the entry of your recovery phrase. The device shows Enter phrase 2 for the second Shared Owner, and Enter phrase 3 for the third.
For each word, select the correct word. Then press both buttons.
When the processing screen closes, disconnect the device.
On the recovery page, select I’ve completed all the steps.
The second Shared Owner then sends the Nano S Plus to the third Shared Owner. After the third phrase, the third Shared Owner presses both buttons on the Done screen of the recovery.
Result
The Nano S Plus holds the master seed of your Workspace. Use it with Ledger Wallet to reach the funds of your Accounts, and transfer them to other addresses.
Recompute the master seed on a computer
Ledger does not recommend this method.
You can recompute the master seed and the root key from the three recovery phrases with a computer:
With Ledger's open-source master seed recovery tool. It asks for the three recovery phrases, and gives the master seed and the root key.
With open-source BIP39 and BIP32 libraries, such as bip-utils, and the derivation on this page.
If you recompute the master seed on a computer, do it offline, on an air-gapped computer. Do not connect that computer to a network again until the funds are moved to new addresses that you control.
What can go wrong
A recovery phrase is missing. The master seed needs all three shards. Two phrases are not enough.
A word is wrong. A different phrase gives a different shard, and so a different master seed. Check each word against the recovery phrase of the Shared Owner.
You try to restore the master seed from a 24-word phrase. The master seed has no 24-word form. Recover it on a Nano S Plus, or recompute it from the three phrases.
Related
Last updated