Repository Public
1# QYVORA — recovery23What the recovery phrase gives on every chain, so that the funds can be reached without QYVORA. The application4shows the same data for the wallet at hand in Settings → Quantum Recovery → Recovery sheet5(`RecoverySheet`, `Sources/QyvoraRecovery/RecoverySheet.swift`; the accounts of the other chains come from6`WalletService.recoveryAccounts`, `Sources/QyvoraWallet/WalletService+Shield.swift`).78The recovery phrase is a standard BIP-39 mnemonic (12 or 24 words). It is the only backup of the keys: QYVORA has no9server and cannot restore it. Everything below is derived from it with public standards; nothing is specific to10QYVORA except the encrypted backup file described at the end.1112Recovering in another wallet has not been tried by the project with each of the wallets named below: the paths and13formats are the standard ones, and the addresses of the public test phrase ("abandon … about") are checked in the14tests against published vectors (`Tests/QyvoraWalletTests/MultiChainTests.swift`,15`Tests/QyvoraBitcoinTests/UTXOReferenceVectors.swift`). Compare the first address the other wallet shows with the one16on the recovery sheet before relying on it.1718## Derivation, per chain1920| Chain | Path | Key and scheme | Address |21|---|---|---|---|22| Bitcoin | `m/84'/0'/0'` (test networks `m/84'/1'/0'`), then `/0/i` receive, `/1/i` change | BIP-32 secp256k1, BIP-84 | native SegWit Bech32, `bc1q…` / `tb1q…` |23| Litecoin | `m/84'/2'/0'` (test `m/84'/1'/0'`) | BIP-32 secp256k1, BIP-84 | `ltc1q…` / `tltc1q…` |24| Dogecoin | `m/44'/3'/0'` (test `m/44'/1'/0'`) | BIP-32 secp256k1, BIP-44 | legacy P2PKH, `D…` |25| Bitcoin Cash | `m/44'/145'/0'` (test `m/44'/1'/0'`) | BIP-32 secp256k1, BIP-44 | CashAddr, `bitcoincash:q…` / `bchtest:q…` |26| Ethereum and every EVM network | `m/44'/60'/0'/0/0` | BIP-32 secp256k1, BIP-44 | `0x…`, EIP-55 checksum; the same on Base, Arbitrum, Optimism, Polygon, BNB Smart Chain, Avalanche |27| Solana | `m/44'/501'/0'/0'` | SLIP-0010 Ed25519 | the public key, base58; the same on every cluster |28| TRON | `m/44'/195'/0'/0/0` | BIP-32 secp256k1 | Base58Check, `T…`; the same on mainnet, Nile and Shasta |2930The UTXO coins use a gap limit of 20 unused addresses on each of the receive and change chains.3132## Descriptors and extended keys3334The recovery sheet gives, for each UTXO network:3536- the master fingerprint and the account derivation path;37- the account extended public key. Bitcoin: `xpub` / `tpub` and the SLIP-132 form `zpub` / `vpub`. Litecoin,38 Dogecoin and Bitcoin Cash: written with Bitcoin's version bytes (`xpub` / `tpub`), as the sheet says next to them;39- the output descriptor of the receive chain, without checksum:40 `wpkh([fingerprint/84h/coin_typeh/0h]xpub…/0/*)` for BIP-84 accounts (Bitcoin, Litecoin),41 `pkh([fingerprint/44h/coin_typeh/0h]xpub…/0/*)` for BIP-44 accounts (Dogecoin, Bitcoin Cash). For Bitcoin the42 sheet also prints the change descriptor (`/1/*`); for the other coins the change chain is the same key with `/1/*`;43- the first receive address (`…/0/0`), to check against the other wallet.4445For the EVM account it lists the first addresses of `m/44'/60'/0'/0/i` (QYVORA uses index 0). For Solana and TRON46it gives the path and the address. Each account of another chain carries the registry identifier of its network47(`RecoverySheet.ChainAccount.chainID`); a sheet written before that field existed still decodes.4849The sheet holds public data only. The recovery phrase itself is added only when it is asked for explicitly, after a50fresh authentication (`recoverySheet(includePrivateMaterial:)`).5152## Recovering a chain in another wallet5354- **Bitcoin**: import the phrase in a wallet that supports BIP-84 (native SegWit, account 0), or import the55 descriptor of the sheet as watch-only and sign with the phrase elsewhere.56- **Litecoin**: a wallet that derives BIP-84 with coin type 2.57- **Dogecoin**: a wallet that derives BIP-44 with coin type 3 (legacy addresses).58- **Bitcoin Cash**: a wallet that derives BIP-44 with coin type 145 and shows CashAddr addresses.59- **EVM networks**: any wallet using `m/44'/60'/0'/0/0`; add the networks by their chain id ([CHAINS.md](CHAINS.md)).60- **Solana**: choose the path `m/44'/501'/0'/0'` when the wallet asks (the sheet's note names Phantom, Solflare and61 Ledger as using it).62- **TRON**: `m/44'/195'/0'/0/0` (the sheet's note: the path TronLink and Ledger use).6364Test networks use coin type 1 for the UTXO coins; the EVM, Solana and TRON addresses are the same on test and main65networks.6667## Encrypted backup file6869Besides the phrase, QYVORA writes an encrypted backup of the vault records (extension `.qyvora`, magic `QYVORABK`), protected70by its own password (Argon2id combined with PBKDF2, AES-256-GCM) and optionally signed by the wallet's post-quantum71identity. The byte layout is documented at the top of `Sources/QyvoraRecovery/BackupFile.swift`. This file is read72by QYVORA only: it is a convenience, not a substitute for the written phrase.73