Repository Public
1# SP ID & Card Vault23**Private by design. Beautiful by engineering. Personal by purpose.**45SP Vault is a private, native iOS wallet for one owner. It photographs identity documents, bank cards and other physical cards, and keeps them as faithful virtual cards: the real photograph, at the card's true proportions, encrypted on the iPhone and opened only by Face ID. No server, no account, no network code.67| Wallet | Card | Full screen | Scanner | Security Center |8|---|---|---|---|---|9|  |  |  |  |  |1011Every card in these screenshots is fictitious (invented issuers, "SPECIMEN" watermark, published test numbers).1213## What it does1415- **Virtual Wallet** — stacked, carousel, grid and by-category layouts; favourites; drag to reorder; cards open from their place and turn over in 3D; reflections follow the tilt of the phone.16- **SP SmartScan Engine** — live edge detection, sharpness / glare / light checks, auto-capture, perspective correction, manual four-corner crop, on-device OCR that proposes the name, issuer, holder, number and expiry. Nothing is saved to Photos.17- **SP Virtual Card Engine** — Original, Premium, Privacy and Full Screen rendering; ID-1 (85.60 × 53.98 mm), ID-3 (passport) and custom formats.18- **SP Vault Security Engine** — AES-256-GCM, one key per card, master key in the Keychain bound to the current Face ID enrolment; locks when the app leaves the foreground; numbers masked until a fresh Face ID check.19- **Bank cards** — last four digits only in lists; the security code is blacked out in the photograph before encryption; no CVV, PIN or magnetic-stripe data is ever stored.20- **SP Privacy Shield** — curtain in the app switcher and during screen recording; screenshot detection.21- **Search** — instant, local, encrypted index; nothing in Spotlight.22- **Expiry dashboard** — valid, expiring soon, expired; local reminders at 180 / 90 / 60 / 30 / 7 days and on the day, with generic text.23- **Backup & Restore** — encrypted `.spvault` files protected by a passphrase; restore on a new iPhone.24- **Security Center** — live checks of Face ID, key, encryption self-test, file protection, storage, backups and recovery.2526## Status — 1.0.0 release candidate2728Built, signed and tested in the simulator: 95 unit tests, 25 UI tests and 2 real-LocalAuthentication tests pass; the Release build is signed for device with the provisioning profile of `ai.spboucher.idcardvault`.2930**Not yet done:** installation on the owner's iPhone and everything that only a device can show — real Face ID with the production Keychain protector, the real camera, file-protection enforcement, haptics and motion. No iPhone was connected during development. See [docs/SECURITY_AUDIT.md](docs/SECURITY_AUDIT.md) for the full list and [docs/INSTALLATION.md](docs/INSTALLATION.md) for the device checklist.3132## Build3334Requirements: Xcode 27+, XcodeGen, iOS 26+.3536```bash37scripts/build.sh debug # simulator build38scripts/build.sh unit # unit tests39scripts/build.sh uitest # UI tests (fictitious demo vault)40scripts/biometry-check.sh # real LAContext path with a simulated face41scripts/build.sh release # signed Release build for iPhone42scripts/shot.sh wallet -layout carousel # screenshot of a screen in the simulator43```4445Installing on the iPhone: [docs/INSTALLATION.md](docs/INSTALLATION.md).4647## Documentation4849| Document | Content |50|---|---|51| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Layers, the vault state machine, data flow |52| [docs/CRYPTOGRAPHY.md](docs/CRYPTOGRAPHY.md) | Key hierarchy, sealed-blob format, Keychain protection |53| [docs/THREAT_MODEL.md](docs/THREAT_MODEL.md) | Threats, mitigations, residual risks |54| [docs/BACKUP_FORMAT.md](docs/BACKUP_FORMAT.md) | `.spvault` version 1 |55| [docs/DESIGN_SYSTEM.md](docs/DESIGN_SYSTEM.md) | SP Vault Design System |56| [docs/SECURITY_AUDIT.md](docs/SECURITY_AUDIT.md) | What was tested, inspected and not verified |57| [docs/INSTALLATION.md](docs/INSTALLATION.md) | App ID, signing, installation, device checklist |58| [SECURITY.md](SECURITY.md) | Security summary and limits |5960## Project6162- Bundle identifier: `ai.spboucher.idcardvault` · display name: SP ID Vault · version 1.0.0 · TestFlight (internal), App Store Connect id 684224988863- Swift 6, SwiftUI, UIKit, AVFoundation, Vision, VisionKit, Core Image, Metal, Core Motion, Core Haptics, CryptoKit, Security, LocalAuthentication, UserNotifications. No third-party code.64- About 13 500 lines of Swift and Metal in the app, 2 500 in tests.6566## Repository6768- Source: https://git.spboucher.ai/sp-id-card-vault69- License: none specified (private, all rights reserved)70- Never commit a real card photograph or a `.spvault` file.7172## Author7374**Simon-Pierre Boucher** — Professor of Finance, Université du Québec en Outaouais (UQO)75SP Boucher · https://spboucher.ai · https://git.spboucher.ai7677- Contact: contact@spboucher.ai78- Development: dev@spboucher.ai79- Support: support@spboucher.ai80- Security: admin@spboucher.ai81