SPB Git

Repository Public

STATUS.md 12.7 KB

# QYVORA — status register

What is done, what really works, what does not. Updated 2026-12-05 (multi-chain section). Counts are from test runs on the commit named in each line; nothing here is an estimate. "Passes" means "the tests listed pass", not "certified".

# Cryptographic engine (from scratch, Swift, zero dependency)

Module Content Evidence
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
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)
QyvoraMLKEM ML-KEM-512/768/1024 (FIPS 203) 21 tests; ACVP keyGen 75/75, encapDecap 165/165; CryptoKit interop for 768/1024
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
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
QyvoraSecp256k1 Field/scalar arithmetic, ECDSA (RFC 6979, low s), recovery, BIP-340 Schnorr 7 tests; published vectors
QyvoraCrypto Umbrella, algorithm catalogue, start-up known-answer self-test 2 tests

Not done: independent audit; hardware AES/SHA instructions (the engine is Swift, plus a forty-line C shim that sets the processor's data-independent-timing flag around operations on secrets); formal constant-time verification.

# Wallet modules

Module Content Evidence
QyvoraCore BIP-39, BIP-32, BIP-84 paths, Base58Check, Bech32/m, networks, 256-bit amounts, mainnet policy 7 tests; BIP-32/39/84 vectors
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
QyvoraEthereum RLP, EIP-55, EIP-1559 sign/decode, ERC-20 calldata, personal_sign, token list 6 tests
QyvoraNetworking Esplora, Ethereum JSON-RPC, Blockscout indexer, price client, endpoint validation, chain-identity checks 4 tests + opt-in live read-only checks
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
QyvoraIdentity ML-DSA-87 + SLH-DSA-SHAKE-256f + ML-KEM-1024 + X25519 identity, dual signatures, rotation chain, hybrid envelope, transfer package 24 tests
QyvoraRecovery Recovery sheet, encrypted backup format, QR chunking 17 tests
QyvoraQuantumShield Three-section report (vault, key exposure, network resistance) 8 tests
QyvoraMigration Capability registry, migration plan 3 tests
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
QyvoraBenchmarks 84 benchmarks, runner, CLI, reports 24 tests; measured on three Macs (docs/BENCHMARKS.md)
QyvoraUI Design system and value-driven components 28 tests

# Multi-chain state (2026-12-05)

Thirteen chains from one recovery phrase, each with its test networks: Bitcoin, Litecoin, Dogecoin, Bitcoin Cash; Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Smart Chain, Avalanche C-Chain (one EVM account); Solana; TRON. Details per chain: CHAINS.md. Recovery in another wallet: RECOVERY.md.

Modules added by the upgrade: QyvoraEd25519 (Ed25519 and SLIP-0010, from scratch), QyvoraSolana, QyvoraTron, and the UTXO-coin, EVM-network, Solana and TRON parts of QyvoraCore, QyvoraBitcoin, QyvoraNetworking and QyvoraWallet. The per-module test counts of the two tables above were recorded on 2026-12-04 and have grown since.

# What was verified, and how

  • Package tests, whole package, release build, laptop (Swift 6.4), on the branch that closed the integration gaps: 885 tests in 24 test targets, 0 failures (QyvoraWalletTests alone: 149 tests in 27 suites). Five of these targets (Wallet, QuantumShield, Recovery, Crypto, Migration: 186 tests) also pass on a cluster node with the Command Line Tools toolchain. Wallet tests run against scripted network answers (fake indexers, RPC nodes, Solana cluster, TRON node and index), not against real networks.
  • Simulator, Debug build, a watch-only wallet of public test accounts with every chain enabled, real public endpoints: the receive picker, the send form (EVM fee estimates), the Quantum Shield (EVM account measured on its seven test networks by account nonce, TRON Nile measured from its history) and the cryptography catalogue were looked at on screenshots. This is reading, not paying.
  • Opt-in live read-only tests exist (QYVORA_LIVE=1: Esplora, EVM RPC and indexers, UTXO indexers, Solana, TRON). They are outside the default run and outside the audit.

# What works (by the tests above)

  • Synchronization, balances, receive addresses and history on every chain that has a history source; token lists (ERC-20, SPL and Token-2022, TRC-20), detected tokens kept apart, hidden tokens listed and restorable.
  • Payments prepared, reviewed, signed locally and handed to the endpoint on every chain, with the per-family checks described in CHAINS.md; fee estimates before a recipient exists on EVM and Solana, a resource estimate on TRON.
  • Last known state kept between launches for every chain, Litecoin, Dogecoin and Bitcoin Cash included (their record is rebuilt through the validation of a synchronization and flagged as the previous session's; nothing is spent from it; the next synchronization reads everything again: there is no incremental reuse for these three coins).
  • Quantum Shield on every chain: per-coin UTXO exposure, the EVM account across its networks, approvals on every enabled EVM network that has a history source, Solana and TRON accounts; sweep of exposed outputs for the four UTXO coins; revocation of approvals on the network they are on.
  • Mainnet gate and per-transaction limits on every chain (MainnetPolicy), stated before the opt-in in the same words as after (ChainRegistry.previewLimits).

# Cold signing, per chain

Chain Cold signing Carrier
Bitcoin (mainnet, Signet, Testnet) yes PSBT (BIP-174)
Litecoin, Dogecoin, Bitcoin Cash no: signed on the device that holds the keys none
EVM networks yes the unsigned EIP-1559 payload (0x02…)
Solana reviewed offline; signed only on a device that is online (see below) qyvtx1 envelope, base64
TRON reviewed offline; signed only on a device that is online (see below) qyvtx1 envelope, hexadecimal

While the build is unaudited, an offline device does not sign Solana or TRON transactions at all (QYV-APP-040, 2026-12-05). Their bytes name no network and the account is the same key on every one, so a transaction labelled as a test network could be valid on the main network, past the mainnet switch and the limits; offline, nothing can check it. The offline device still decodes and shows the transaction and says why it does not sign. A device that is online signs the same envelope after asking the main-network nodes, and after the warning was acknowledged. On a main network the limits also need fresh prices, which an offline device does not have. Giving offline test-network signing back needs a separate key for the test networks: an open design decision.

# Rules added on 2026-12-05 (closing of the audit findings)

  • Dollar ceilings. A built-in dollar-pegged token (USDC, USDT, DAI, PYUSD, USDS and their bridged forms) counts for at least 0.90 USD a unit and is refused when the price source quotes it outside 0.50–2.00 USD. Every other token and every coin with a ceiling in dollars (POL, BNB, AVAX, SOL, TRX, LTC, DOGE, BCH) needs fresh prices from two independent sources (the price API and Kraken's public ticker, both configurable, never the same host) that agree within 5 %; the higher is used. A token the second source does not list (MKR, cbBTC, the wstETH forms) cannot be sent on a main network by an unaudited build.
  • Critical warnings. The service signs only when the identifiers of the critical warnings of the review were acknowledged (signAndBroadcast(_:acknowledged:), signColdTransaction(…acknowledged:)); the review screens carry one control per warning. The first payment to a Solana address is a critical warning.
  • Watch-only package. Both devices show the code of the package and the first address of every account; the import needs the last group of the code typed from the signing device and is checked by the service.
  • Bitcoin Cash. A payment whose coins all predate the split from eCash takes the smallest newer coin of the wallet with it, so that it cannot be replayed on eCash or Bitcoin SV; without such a coin the warning remains.
  • UTXO indexers. The indexer sources of Litecoin, Dogecoin and Bitcoin Cash that are current must agree on a confirmed block; a source that is alone is named on the chain screen and on each transaction.
  • Payment requests. Parsed in the engine with bounds; a request the wallet cannot honour entirely, or one for another network or asset than the form's, fills nothing in.

Verified by the package tests (Swift 6.4) and by reading the screens on the simulator; the application target has no automated interface test.

# Networks without history, and other limits of the built-in endpoints

  • No history source ships for Base, Arbitrum One, Arbitrum Sepolia, Polygon PoS, Polygon Amoy, BNB Smart Chain and BNB Smart Chain Testnet: balances and payments work, history and token approvals are not shown, and the wallet says so.
  • Dogecoin Testnet has no public indexer in the built-in endpoints: its balance and history cannot be read.
  • TRON Shasta is configured (TronGrid) but only Nile was looked at.
  • A TRON account with a long history: when the page read shows nothing sent, the index is asked once for what the account itself sent (only_from=true); an index that ignores the question leaves the exposure "not measured", and the reason is given.

# Not proven

  • No transaction has been broadcast by this application on any chain, test or main, as far as the repository shows: every signing and broadcast path is exercised against scripted answers only. No record of a real broadcast was found in the code, the documents or the audit reports.
  • TRON broadcast has never been exercised against a real node. The transaction encoding is the wallet's own (protobuf written from scratch); every TRON review says so.
  • The main networks of the new chains have not been used at all.
  • The security audit predates the multi-chain upgrade and must be re-run on this code before any build that contains it (CLAUDE.md); Ed25519, the Solana and TRON encoders and the UTXO-coin signers have had no audit run.

# Application

  • Xcode project (XcodeGen), builds for the simulator; engine self-test on launch.
  • Done and looked at on the simulator: boot, onboarding introduction, settings shell, endpoint editor, appearance, about, cryptographic information, benchmarks, migration engine.
  • Built and looked at on the simulator since: onboarding flows, lock screen, dashboard, chain screens, send, receive, activity, Quantum Shield, vault, identity, recovery, cold mode, networks settings. Never run on a device.
  • App Store Connect: bundle ai.spboucher.qyvora, app record 6843123750. No build uploaded yet.
  • Landing site live at https://qyvora.spboucher.ai.

# Not proven or not done

  • No transaction has been broadcast on any network of any chain: signing and broadcast are tested against scripted responses only (see the multi-chain section).
  • Real Keychain, Secure Enclave, Face ID and camera code has never run on a device.
  • Signet synchronisation through mempool.space failed in live runs (rate limiting); it worked through blockstream.info.
  • Benchmarks and Argon2id unlock time have not been measured on an iPhone.
  • Secrets pass through ordinary Swift strings and arrays in several places and cannot be reliably wiped.
  • Security audit (CLAUDE.md, mandatory): an internal automated audit exists for the two-chain code (security/reports); it has not been re-run on the multi-chain code.
  • No independent cryptographic review. The engine is not audited and not certified.
  • Mainnet: off by default; can be enabled on the internal build only, with per-transaction limits.
Files main
Menu

Theme