SPB Git

Repository Public

STATUS.md 12.7 KB 162 lines markdown

1# QYVORA — status register23What is done, what really works, what does not. Updated 2026-12-05 (multi-chain section). Counts are from test runs on the4commit named in each line; nothing here is an estimate. "Passes" means "the tests listed pass", not "certified".56## Cryptographic engine (from scratch, Swift, zero dependency)78| Module | Content | Evidence |9|---|---|---|10| QyvoraKeccak | Keccak-f[1600], SHA3-224/256/384/512, SHAKE128/256, cSHAKE, KMAC | 20 tests; NIST ACVP SHA-3/SHAKE files (AFT, MCT, VOT); SP 800-185 samples; CryptoKit differential |11| QyvoraSymmetric | SHA-2 family, HMAC, HKDF, PBKDF2, MGF1, RIPEMD-160, BLAKE2b, Argon2 (d, i, id), AES + AES-256-GCM, ChaCha20-Poly1305 | 56 tests; ACVP SHA-2; RFC 5869 / 7693 / 8439 / 9106 vectors; NIST CAVP GCM (1125 encrypt + 1125 decrypt, 256-bit keys, 128-bit tags) |12| QyvoraMLKEM | ML-KEM-512/768/1024 (FIPS 203) | 21 tests; ACVP keyGen 75/75, encapDecap 165/165; CryptoKit interop for 768/1024 |13| QyvoraMLDSA | ML-DSA-44/65/87 (FIPS 204), pure and pre-hash | 19 tests; ACVP keyGen 75/75, sigGen 360/360, sigVer 180/180; CryptoKit interop for 65/87 |14| QyvoraSLHDSA | SLH-DSA, 12 parameter sets (FIPS 205), pure and pre-hash | 18 tests; full ACVP files keyGen 120/120, sigGen 624/624, sigVer 504/504 (opt-in replay); reduced set committed |15| QyvoraSecp256k1 | Field/scalar arithmetic, ECDSA (RFC 6979, low s), recovery, BIP-340 Schnorr | 7 tests; published vectors |16| QyvoraCrypto | Umbrella, algorithm catalogue, start-up known-answer self-test | 2 tests |1718Not done: independent audit; hardware AES/SHA instructions (the engine is Swift, plus a forty-line C shim that sets the19processor's data-independent-timing flag around operations on secrets); formal constant-time verification.2021## Wallet modules2223| Module | Content | Evidence |24|---|---|---|25| QyvoraCore | BIP-39, BIP-32, BIP-84 paths, Base58Check, Bech32/m, networks, 256-bit amounts, mainnet policy | 7 tests; BIP-32/39/84 vectors |26| QyvoraBitcoin | Scripts, addresses, transactions, BIP-143, P2WPKH + P2WSH multisig signing, descriptors, PSBT v0, coin selection, BIP-84 and multisig accounts, exposure analysis | 71 tests; BIP-143, BIP-173/350, BIP-174 (invalid 20/20, valid 10/10, full workflow byte-exact), BIP-380/383 vectors |27| QyvoraEthereum | RLP, EIP-55, EIP-1559 sign/decode, ERC-20 calldata, personal_sign, token list | 6 tests |28| QyvoraNetworking | Esplora, Ethereum JSON-RPC, Blockscout indexer, price client, endpoint validation, chain-identity checks | 4 tests + opt-in live read-only checks |29| QyvoraStorage / Vault | Atomic file store, Keychain and Secure Enclave abstractions, vault with password / device / PIN slots, rotation, integrity | 14 + 36 tests, incl. single-byte corruption sweeps |30| QyvoraIdentity | ML-DSA-87 + SLH-DSA-SHAKE-256f + ML-KEM-1024 + X25519 identity, dual signatures, rotation chain, hybrid envelope, transfer package | 24 tests |31| QyvoraRecovery | Recovery sheet, encrypted backup format, QR chunking | 17 tests |32| QyvoraQuantumShield | Three-section report (vault, key exposure, network resistance) | 8 tests |33| QyvoraMigration | Capability registry, migration plan | 3 tests |34| QyvoraWallet | Service actor: onboarding, sync, send, PSBT / cold flows, market data, shield, identity, backup, mainnet opt-in with limits | 35 tests against scripted network responses |35| QyvoraBenchmarks | 84 benchmarks, runner, CLI, reports | 24 tests; measured on three Macs (docs/BENCHMARKS.md) |36| QyvoraUI | Design system and value-driven components | 28 tests |3738## Multi-chain state (2026-12-05)3940Thirteen chains from one recovery phrase, each with its test networks: Bitcoin, Litecoin, Dogecoin, Bitcoin Cash;41Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Smart Chain, Avalanche C-Chain (one EVM account); Solana; TRON.42Details per chain: [CHAINS.md](CHAINS.md). Recovery in another wallet: [RECOVERY.md](RECOVERY.md).4344Modules added by the upgrade: QyvoraEd25519 (Ed25519 and SLIP-0010, from scratch), QyvoraSolana, QyvoraTron, and the45UTXO-coin, EVM-network, Solana and TRON parts of QyvoraCore, QyvoraBitcoin, QyvoraNetworking and QyvoraWallet.46The per-module test counts of the two tables above were recorded on 2026-12-04 and have grown since.4748### What was verified, and how4950- Package tests, whole package, release build, laptop (Swift 6.4), on the branch that closed the integration gaps:51  885 tests in 24 test targets, 0 failures (QyvoraWalletTests alone: 149 tests in 27 suites). Five of these targets52  (Wallet, QuantumShield, Recovery, Crypto, Migration: 186 tests) also pass on a cluster node with the Command Line53  Tools toolchain. Wallet tests run against scripted network answers (fake indexers, RPC nodes, Solana cluster, TRON54  node and index), not against real networks.55- Simulator, Debug build, a watch-only wallet of public test accounts with every chain enabled, real public56  endpoints: the receive picker, the send form (EVM fee estimates), the Quantum Shield (EVM account measured on its57  seven test networks by account nonce, TRON Nile measured from its history) and the cryptography catalogue were58  looked at on screenshots. This is reading, not paying.59- Opt-in live read-only tests exist (`QYVORA_LIVE=1`: Esplora, EVM RPC and indexers, UTXO indexers, Solana, TRON).60  They are outside the default run and outside the audit.6162### What works (by the tests above)6364- Synchronization, balances, receive addresses and history on every chain that has a history source; token lists65  (ERC-20, SPL and Token-2022, TRC-20), detected tokens kept apart, hidden tokens listed and restorable.66- Payments prepared, reviewed, signed locally and handed to the endpoint on every chain, with the per-family checks67  described in CHAINS.md; fee estimates before a recipient exists on EVM and Solana, a resource estimate on TRON.68- Last known state kept between launches for every chain, Litecoin, Dogecoin and Bitcoin Cash included (their record69  is rebuilt through the validation of a synchronization and flagged as the previous session's; nothing is spent70  from it; the next synchronization reads everything again: there is no incremental reuse for these three coins).71- Quantum Shield on every chain: per-coin UTXO exposure, the EVM account across its networks, approvals on every72  enabled EVM network that has a history source, Solana and TRON accounts; sweep of exposed outputs for the four73  UTXO coins; revocation of approvals on the network they are on.74- Mainnet gate and per-transaction limits on every chain (`MainnetPolicy`), stated before the opt-in in the same75  words as after (`ChainRegistry.previewLimits`).7677### Cold signing, per chain7879| Chain | Cold signing | Carrier |80|---|---|---|81| Bitcoin (mainnet, Signet, Testnet) | yes | PSBT (BIP-174) |82| Litecoin, Dogecoin, Bitcoin Cash | no: signed on the device that holds the keys | none |83| EVM networks | yes | the unsigned EIP-1559 payload (0x02…) |84| Solana | reviewed offline; signed only on a device that is online (see below) | `qyvtx1` envelope, base64 |85| TRON | reviewed offline; signed only on a device that is online (see below) | `qyvtx1` envelope, hexadecimal |8687While the build is unaudited, an offline device does not sign Solana or TRON transactions at all (QYV-APP-040,882026-12-05). Their bytes name no network and the account is the same key on every one, so a transaction labelled89as a test network could be valid on the main network, past the mainnet switch and the limits; offline, nothing can90check it. The offline device still decodes and shows the transaction and says why it does not sign. A device that91is online signs the same envelope after asking the main-network nodes, and after the warning was acknowledged. On a92main network the limits also need fresh prices, which an offline device does not have. Giving offline test-network93signing back needs a separate key for the test networks: an open design decision.9495### Rules added on 2026-12-05 (closing of the audit findings)9697- **Dollar ceilings.** A built-in dollar-pegged token (USDC, USDT, DAI, PYUSD, USDS and their bridged forms) counts98  for at least 0.90 USD a unit and is refused when the price source quotes it outside 0.50–2.00 USD. Every other99  token and every coin with a ceiling in dollars (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH) needs fresh prices from100  two independent sources (the price API and Kraken's public ticker, both configurable, never the same host) that101  agree within 5 %; the higher is used. A token the second source does not list (MKR, cbBTC, the wstETH forms)102  cannot be sent on a main network by an unaudited build.103- **Critical warnings.** The service signs only when the identifiers of the critical warnings of the review were104  acknowledged (`signAndBroadcast(_:acknowledged:)`, `signColdTransaction(…acknowledged:)`); the review screens105  carry one control per warning. The first payment to a Solana address is a critical warning.106- **Watch-only package.** Both devices show the code of the package and the first address of every account; the107  import needs the last group of the code typed from the signing device and is checked by the service.108- **Bitcoin Cash.** A payment whose coins all predate the split from eCash takes the smallest newer coin of the109  wallet with it, so that it cannot be replayed on eCash or Bitcoin SV; without such a coin the warning remains.110- **UTXO indexers.** The indexer sources of Litecoin, Dogecoin and Bitcoin Cash that are current must agree on a111  confirmed block; a source that is alone is named on the chain screen and on each transaction.112- **Payment requests.** Parsed in the engine with bounds; a request the wallet cannot honour entirely, or one for113  another network or asset than the form's, fills nothing in.114115Verified by the package tests (Swift 6.4) and by reading the screens on the simulator; the application target has116no automated interface test.117118### Networks without history, and other limits of the built-in endpoints119120- No history source ships for Base, Arbitrum One, Arbitrum Sepolia, Polygon PoS, Polygon Amoy, BNB Smart Chain and121  BNB Smart Chain Testnet: balances and payments work, history and token approvals are not shown, and the wallet122  says so.123- Dogecoin Testnet has no public indexer in the built-in endpoints: its balance and history cannot be read.124- TRON Shasta is configured (TronGrid) but only Nile was looked at.125- A TRON account with a long history: when the page read shows nothing sent, the index is asked once for what the126  account itself sent (`only_from=true`); an index that ignores the question leaves the exposure "not measured", and127  the reason is given.128129### Not proven130131- **No transaction has been broadcast by this application on any chain**, test or main, as far as the repository132  shows: every signing and broadcast path is exercised against scripted answers only. No record of a real broadcast133  was found in the code, the documents or the audit reports.134- **TRON broadcast has never been exercised against a real node.** The transaction encoding is the wallet's own135  (protobuf written from scratch); every TRON review says so.136- The main networks of the new chains have not been used at all.137- The security audit predates the multi-chain upgrade and must be re-run on this code before any build that contains138  it (CLAUDE.md); Ed25519, the Solana and TRON encoders and the UTXO-coin signers have had no audit run.139140## Application141142- Xcode project (XcodeGen), builds for the simulator; engine self-test on launch.143- Done and looked at on the simulator: boot, onboarding introduction, settings shell, endpoint editor, appearance,144  about, cryptographic information, benchmarks, migration engine.145- Built and looked at on the simulator since: onboarding flows, lock screen, dashboard, chain screens, send,146  receive, activity, Quantum Shield, vault, identity, recovery, cold mode, networks settings. Never run on a device.147- App Store Connect: bundle `ai.spboucher.qyvora`, app record 6843123750. No build uploaded yet.148- Landing site live at https://qyvora.spboucher.ai.149150## Not proven or not done151152- No transaction has been broadcast on any network of any chain: signing and broadcast are tested against scripted153  responses only (see the multi-chain section).154- Real Keychain, Secure Enclave, Face ID and camera code has never run on a device.155- Signet synchronisation through mempool.space failed in live runs (rate limiting); it worked through blockstream.info.156- Benchmarks and Argon2id unlock time have not been measured on an iPhone.157- Secrets pass through ordinary Swift strings and arrays in several places and cannot be reliably wiped.158- Security audit (CLAUDE.md, mandatory): an internal automated audit exists for the two-chain code (security/reports);159  it has not been re-run on the multi-chain code.160- No independent cryptographic review. The engine is not audited and not certified.161- Mainnet: off by default; can be enabled on the internal build only, with per-transaction limits.162
Files main
Menu

Theme