/PLAN_MAP.txt
Quantum Crypto Wallet Build Plan v1.4
=====================================
Project: Quantum-Resistant Wallet + Simulated Quantum Chain
Status: Expanded Spec — EXECUTION ENFORCED
Core Rules:
- Implement all features listed in the Feature Matrix.
- Use modular crypto adapters (no hardcoding).
- No scope drift. If any change deviates, emit:
"Plan Check: Rejected (Step #?). Reason: [explain]. Reverting to spec."
Build Steps:
1) Bootstrap Next.js app + folders (app, src/lib, tests).
2) Add PQCrypto abstraction:
- Interfaces: KeyGen, Sign/Verify, KEM, DRBG.
- Default to MOCK adapter in dev only.
3) Implement keystore (sealed JSON, PBKDF, versioned).
4) Implement wallet create/import APIs + UI.
5) Implement chain simulator (headers, epochs, staking).
6) Implement tx builder/signer + /api/tx/send (verify via sim).
7) Add tokens + NFTs (transfer/mint/burn) APIs + UI pages.
8) Add DEX (AMM pool) API + slippage calc + UI.
9) Add governance module (proposals/votes) + UI.
10) Tests: crypto, wallet, tx, staking, dex (must pass).
11) Persistence: local settings + encrypted key blobs.
12) Analytics (opt-in), theming, a11y, i18n.
13) Security review placeholders; swap-in real PQC libs.
14) Deploy devnet; document endpoints and ops.
Migration Path:
15) Testnet Deployment — swap mock crypto for audited PQC libs.
16) Mainnet Readiness — security audit + UX refinements.
17) Mainnet Launch — execute genesis block ceremony + monitor.
Self-Execution Rule:
Before any code step, include comment:
// Plan Check: Step X - Approved.
// Plan Check: Rejected (Step X). Reason: ...