Cavos

Recovery codes

Cavos wallets do not use recovery codes. Starknet, Solana, and Stellar restore the MasterDEK with an enclave sign-in or a passkey.

Cavos embedded wallets on Starknet, Solana, and Stellar do not use recovery codes. The embedded wallet (embedded wallet SDK) has one key derived from a MasterDEK, and a new device restores that MasterDEK in one of two ways:

Way backWhat the user doesSetup
Hardware-isolated recoverySigns in again with Google, Apple, GitHub, Telegram, or an email codesocialRecovery: true or deviceApproval: "enclave", plus the environment toggle in the dashboard
PasskeyVerifies with Face ID / Touch ID / PIN on a synced passkeyenrollPasskeyDefault() after sign-up
TypeScript
// Enclave: signing in again on the new device unwraps the MasterDEK.
// Passkey, when the user dismissed the prompt at sign-in:
const { approveDeviceWithPasskey, walletStatus } = useCavos();
if (walletStatus.needsDeviceApproval && walletStatus.hasPasskey) {
  await approveDeviceWithPasskey();
}

Product guidance

  • Turn on the enclave, offer a passkey, or both, before users hold real funds.
  • Verify restore on physical iOS and Android devices before a production release.
  • If the user loses every device and neither the enclave nor a passkey was enrolled, Cavos cannot restore access. That is the cost of a non-custodial wallet, not a gap in it.

See Recovery, Multi-device, and Passkeys.

On this page