Skip to content
Logo

Keys

A wallet is one random seed, made on the device and written down as a 12-word recovery phrase. The wallet's keys come from it:

  • Root: HKDF of the seed.
  • Owner keys: a separate Stark key per network and account, from the root. This avoids linking accounts through a reused owner key; transfers and other activity can still link them.
  • Viewing key: from the owner key, as draft SNIP-44's account-leaf-v1 defines it, so another wallet that implements it finds the same private balance.
  • Wallet key: signs changes to the wallet's passkeys and its email copy in the vault, and nothing else.

Opening the wallet

A passkey or a password doesn't determine the wallet's seed or addresses. Each opens a copy of the seed sealed under it:

  • Passkey: sealed under a key from the passkey's PRF output.
  • Password: sealed under a key from the password (Argon2id).
  • Email and password: the same, with one more copy in the vault, handed to a new device after a code sent to the email and a check of the password. See Email sign-in.
  • Fingerprint, in the Android app, through the phone's keystore.

The recovery phrase reconstructs the seed locally, without any of them or the vault. Passkeys are separate credentials: each registered passkey opens its own encrypted copy of the same seed. See The vault for how a new device decrypts that copy and how passkeys can be added or removed.

The recovery phrase

The 12 words encode the wallet's random 16-byte seed (128 bits) using BIP39's English wordlist and checksum. Anyone with the phrase can recover the wallet's keys, without a password, passkey or vault access.

Recovery validates the phrase and decodes the same seed. Recovery software must implement Outis's key derivation and account parameters to find the same accounts.

Key derivation

Outis decodes the phrase to its seed and derives keys with HKDF-SHA256, without BIP39's PBKDF2 step or an additional passphrase.

Root and keys

HKDF derives a 32-byte root from the seed with the label outis/seed/v1. Each key then derives from that root with its own label:

KeyLabel
Account owneroutis/owner/v1/{chain}/{index}
Agent owneroutis/agent/v1/{chain}/{index}
Vault wallet keyoutis/vault/wallet/v1

chain is the network name, such as SN_MAIN or SN_SEPOLIA. Indices start at zero, separately for ordinary and agent accounts. The derived material is converted to a Stark curve key. The vault key authorizes changes to passkey registrations.

Addresses and viewing keys

An account's address follows from its owner public key and the account contract's deployment parameters. Agent accounts use their own class. Recovery reproduces both the key and the address. The first digits of a new wallet's first mainnet address can be chosen at setup. See Vanity address.

Viewing keys follow draft SNIP-44's account-leaf-v1 profile, using the owner private key, network, account address and pool address.

Recovery tool

The standalone Rust tool runs offline. Enter the phrase at its hidden prompt:

./outis-recovery --network SN_SEPOLIA --index 0

Use SN_MAIN for mainnet, --kind agent for agent accounts, and --pool 0xADDRESS for a viewing key. Output includes private keys, the derived address and deployment parameters. Keep it secret. The tool does not check balances or broadcast transactions.

Test vectors cover the seed, root, keys and addresses. These are public test values.