Cavos

Recovery

The ways a Cavos user regains access to their wallet after losing a device, and which ones to offer.

Private keys never leave the user's device in plaintext and are never used to sign on a server. That is the Cavos embedded wallet (embedded wallets, embedded wallet SDK) custody model. Every account key is derived on the device from the wallet's master key (the MasterDEK), and every signature is made there. The enclave and a passkey hold only an encrypted copy of the MasterDEK, used to restore it on a device: the enclave opens its sealed copy only inside the attested enclave and re-encrypts it to the requesting device's key, and a passkey's copy is decrypted on the device with the passkey's PRF output.

That is the point, and it is also the risk: a device that is lost, wiped, or replaced takes its local copy with it.

So recovery is the work of setting up a way back before it is needed, because none of these can be arranged after the fact. On Starknet, Solana, and Stellar that way back is a copy of the MasterDEK the account key derives from.

The paths

PathThe user needsBest forCost
Multi-deviceAnother device that restores the MasterDEKUsers who already have a second deviceThe enclave or a passkey must be enabled
PasskeysFace ID / Touch ID / PINAlmost everyoneOne prompt after login (enrollPasskeyDefault): never during OAuth
Hardware-isolated recoveryTo sign in again with Google / Apple / GitHub / Telegram / emailStarknet, Solana, and StellarOpt-in per environment; the enclave wraps the MasterDEK

The first two answer "I still have something." The last one answers "I have nothing." A serious app wants at least one of each.

What to offer

Start with a passkey or the enclave, not both as the same deviceApproval. deviceApproval: "passkey" is one chain, and a passkey that was added can open the wallet. deviceApproval: "enclave" wraps the MasterDEK for every native chain in the session. Signing up never asks for a passkey; call enrollPasskeyDefault() when you want one.

Add a way back from nothing. On Starknet, Solana, and Stellar that is the enclave (sign in again) or a passkey the user added. New Cavos wallets do not use recovery codes.

Do not rely on multi-device alone: there is no second on-chain signer on native accounts. A second phone unwraps the same DEK.

If a user loses every device and every factor, and none of the above was set up, Cavos cannot restore access. No support ticket recovers that wallet, because no Cavos key can. This is what self-custody costs, and it is the reason to set up a second authority during onboarding rather than when it is needed.

What Cavos never does

None of these paths gives Cavos a key that can move funds. The enclave only holds a sealed copy of the MasterDEK and never signs for the wallet.

Hardware-isolated recovery is the only path that introduces a party beyond the user and the chain, and it is deliberately bounded: see Why this is still self-custodial.

Per-chain detail

Each adapter implements these with the primitives its chain offers. Hardware-isolated recovery covers what the enclave holds on each chain.

On this page