Skip to Content
Whitepaper v18.3 · Chapter 10 / 17

Mobile Interface: Nexus Mobile Wallet (NMW)

← All chapters·Normative EN specification

The Arca provides sovereign custody but requires physical interaction for every operation — a deliberate trade-off for maximum security that is impractical for daily commerce. The Nexus Mobile Wallet bridges this gap: a smartphone application that operates as a delegated spending interface with cryptographically bounded authority, enabling the point-of-sale and remittance scenarios described in Section 1.5 without exposing the sovereign keys stored in the Arca.

10.1. Architectural Position & Design Philosophy

The Nexus Mobile Wallet (NMW) is the last-mile interface layer of the Aevum & Bond ecosystem — the application that a consumer carries in their pocket and uses with the fluidity of a conventional payment app, without surrendering self-custody, post-quantum resistance, or sovereignty over principal capital.

The NMW resolves a fundamental contradiction in self-custody: hardware wallets (Arca) provide maximum security but zero portability for daily commerce. Hot wallets provide portability but expose private keys on internet-connected devices. The NMW is neither — it is a delegated intent executor that possesses no private keys but carries a cryptographically bounded authorization token (SAT) issued by the sovereign device (Arca or Desktop Node).

10.1.1. Authority Hierarchy

The ecosystem enforces a strict, unidirectional authority hierarchy:

Arca (air-gapped, ML-DSA-65) → Desktop Node (Bond full node + Aevum light client, ML-DSA-44 + ML-DSA-65) → NMW (intent executor, SAT bearer) → Aevum Network (settlement)

Authority flows exclusively downward. The NMW cannot modify its own permissions, cannot elevate its access, cannot issue SATs, and cannot interact with the Bond RSC. The smartphone is a presentation and submission layer — never a signing or custody layer. Capture of the smartphone implies capture of the allowance remainder, never the Vault principal.

The Arca's authority in this hierarchy rests on two distinct keys with distinct roles: an ML-DSA-65 root custody signer (NIST Level 3) that governs BND settlement and the FCRC ceremony, and a delegated ML-DSA-44 capability (NIST Level 2) used only to issue SATs and PATs for Aevum-side NMW authorization. The SAT issuer_pubkey_hash (§10.3.1) therefore references the Arca's ML-DSA-44 delegation key, not its ML-DSA-65 custody root — the two are not the same key, and the delegation key carries no BND custody authority (recommended; pending ADR-0005 ratification).

10.1.2. No Sovereign Keys on Mobile

The NMW holds no ML-DSA sovereign or spending keys at any point in its lifecycle: it never generates, derives, receives, or processes sovereign or spending private key material, and it cannot by itself authorize any movement of funds. The only spending-authorization artifact stored on the smartphone is the Session Auth Token (SAT) — a signed authorization structure that grants bounded spending permission. The SAT is encrypted at rest with an Argon2id-derived key (from the user's Master PIN) and stored in the platform's hardware-backed secure storage (iOS Keychain / Android StrongBox).

Device-attestation key (no spend authority). The one private key the device does hold is a hardware-backed, non-exportable device-attestation keypair, generated inside the platform secure element (iOS Secure Enclave / Android StrongBox) at registration (§10.5.2). Its private half never leaves hardware; its public half is registered in the sovereign device's profile for this phone. This key confers no spending authority — it cannot sign SATs, PATs, or fund movements. Its sole function is per-operation device binding: each spendAllowance() UserOperation (UserOp) carries an attestation signature over (nonce, dest, amount), and the merchant Paymaster verifies that signature against the registered attestation public key off-chain, before sponsoring. Because stock secure elements implement only classical primitives (P-256; see §10.5.4), this attestation signature is a classical anti-theft / liveness proof deliberately kept off the consensus path — it is never verified on-chain, preserving the protocol's zero on-chain elliptic-curve exposure (Axiom 2). The on-chain PartFund continues to enforce the MA bound as the ultimate backstop, so attestation compromise can never exceed MA-bounded loss. The security consequences for device binding and SAT theft are stated precisely in §10.3.1.

Profile scope. The rule above states the custody model of the Delegated Profile — the SAT-bearing configuration described throughout §10.1–§10.7, in which a sovereign device (Arca or Desktop Node) holds the keys and the phone holds none. A second, additive configuration for users who own no sovereign device is proposed in §10.10. It is not in force: until ADR-0032 is counter-signed, this section admits no exception, and every guarantee stated here — including the MA-bounded worst case of §10.2.1 and §10.9 — is unqualified.

Formal-review pending (ADR-0005 counter-sign).

10.1.3. Display and Denomination

The NMW displays AEV as the primary unit for consumer-facing transactions (a coffee costs ~50 AEV, a grocery run ~1,500 AEV at LRP, §4.6.1). All protocol-level arithmetic (gas accounting, Paymaster rate limits, PartFund allowance tracking) operates in Vea internally for precision, converting to AEV for display. See Section 4.1.1 for the complete subunit definition (1 AEV = 1,000 Vea).

10.2. Partitioned Fund Contract (PartFund)

Acronym disambiguation (issue #34, 2026-05-10). This contract was previously abbreviated "PFC" in the whitepaper, which collided with two other corpus uses of the same three letters: (a) Paymaster Factory Contract (PFC; address 0x00...02), specified in the Engineering Blueprint companion (§2.3 — not part of this repository) and (b) Protocol Fee Container in the LAUNCH-THREAD-v0.1.md / MARKETING-PLAN-v0.2.md marketing companions (not part of this repository; MEV-elimination mechanism). To resolve the collision, this contract is now abbreviated PartFund throughout the whitepaper; PFC continues to denote the Paymaster Factory Contract; Protocol Fee Container appears unabbreviated in marketing surfaces.

The PartFund is a Smart Contract Wallet extension (Extension 0x01, Section 8.3.2) that partitions the user's AEV capital into two logically distinct zones:

10.2.1. Vault and Mobile Allowance

Partition Control Access from NMW
Vault (Principal) Controlled exclusively by the sovereign key (Arca/Desktop ML-DSA-44). Contains the user's total AEV capital, staking positions, and governance participation rights None — the NMW has zero access to the Vault. Not readable, not spendable, not delegatable
Mobile Allowance (MA) Configured by sovereign key. Mathematically bounded by on-chain contract invariants Spendable within configured limits via valid SAT. The NMW can spend up to the MA cap, subject to per-transaction limits, timeout, and whitelist

The MA is a contract-enforced allowance — even if the smartphone is fully compromised (root access, malware, physical theft), the attacker's maximum extractable value is the MA remainder. The Vault is architecturally unreachable from the NMW's authorization context.

10.2.2. Mobile Allowance Parameters

All parameters are set exclusively by the sovereign key (Arca/Desktop) and are immutable from the NMW side:

Parameter Range Description
cap 0 to configurable max AEV Maximum AEV spendable per cycle
timeout 1 hour to 30 days Cycle duration. After expiry, the MA is zeroed and requires sovereign renewal
tx_limit Configurable AEV per transaction Maximum AEV per individual operation
whitelist List of on-chain addresses (optional) If active, the NMW can only send to pre-approved destinations
geofence GPS coordinates + radius (optional) If active, spending restricted to a geographic region. Verified via off-chain optimistic proof with on-chain SHA3-256 commitment and fraud-proof dispute window (Section 10.2.3)
auto_renewal Active / Inactive If active, the MA renews automatically at cycle end with the same parameters without requiring a new SAT
emergency_revoke Always available Sovereign key can zero the MA and invalidate all SATs instantly via high-priority UserOp

10.2.3. Geofence Verification (Optional)

When geofence is active, the NMW generates a zero-knowledge proof attesting that the smartphone's GPS coordinates fall within the configured geofence radius, without revealing the exact coordinates:

The proof demonstrates: distance(GPS_current, center_geofence) ≤ radius_geofence without disclosing GPS_current (see Appendix 02 for the canonical typeset form of this predicate, the circuit constraint x² + y² ≤ radius², and the commitment definition).

Circuit Specification. GPS coordinates are angular (latitude/longitude in degrees), so a planar distance check cannot be applied to raw lat/lon — one degree of longitude contracts by cos(latitude), distorting the geofence with latitude and radius. The proof therefore operates on a local equirectangular (ENU) projection about the geofence centre: each coordinate is projected to metres via x = R⊕·(lon − lon_c)·cos(lat_c), y = R⊕·(lat − lat_c) (with R⊕ the Earth radius and angles in radians), then encoded as fixed-point integers in millimetres (metres × 10³) for the on-chain integer arithmetic. On this projection the check is a genuine 2D Euclidean distance range check: given public inputs (0, 0, radius) — centre at the projection origin — and private witness (x, y), prove that x²+y² ≤ radius². The equirectangular approximation is accurate to well under 1% for the geofence radii of interest (≤ ~50 km) at any single mid-latitude cell; the accepted distortion grows with radius and |latitude| and is bounded within that validity range — acceptable because geofence is an explicitly supplementary layer (below). The arithmetic circuit requires approximately 1,200 multiplication gates (coordinate squaring, subtraction, comparison via bit decomposition).

Post-Quantum Constraint and Design Decision. The most mature compact ZK proof systems for range proofs (Bulletproofs, Groth16) rely on elliptic curve discrete logarithm assumptions — broken by Shor's algorithm. Deploying such schemes on-chain would violate Axiom 2 (Quantum Threat as Present Danger) and introduce the only elliptic curve exposure in the entire protocol stack. Post-quantum ZK alternatives exist (STARKs are hash-based and quantum-resistant), but incur significantly larger proof sizes (~50-80 KB vs. ~1-2 KB) and correspondingly higher on-chain verification gas costs (~1.2-1.7M gas vs. ~715K gas for a Bulletproof equivalent).

The protocol resolves this tension via an Optimistic Off-Chain Verification model that preserves Axiom 2 compliance while maintaining low gas costs and practical geofence security.

Verification Architecture: Off-Chain Proof, On-Chain Commitment, Fraud-Proof Dispute.

The geofence verification operates in three layers:

Layer 1 — Off-Chain Proof Generation (NMW). The NMW generates the geofence ZK proof locally using the device's GPS coordinates as private witness. The proof system used client-side is implementation-flexible — the protocol does not mandate a specific ZK scheme for off-chain proof generation, since the proof never touches consensus. At launch, the reference NMW implementation uses a hash-based commitment scheme (SHA3-256 Merkle proof over a discretized geofence grid) rather than a full arithmetic ZK circuit, optimizing for mobile performance. Future NMW versions may adopt STARKs or lattice-based ZK constructions as these mature, with no protocol-level changes required.

Grid Resolution (Reference Implementation). The geofence grid uses a configurable cell size with a default of 500m × 500m (0.25 km²). For a typical urban geofence with 50 km radius, the grid covers ~100 km × 100 km = 200 × 200 = 40,000 cells, producing a Merkle tree of depth ~16. The Merkle inclusion proof (demonstrating that the user's cell is within the geofence boundary) is ~512 bytes (16 levels × 32 bytes per SHA3-256 sibling hash). The privacy-precision tradeoff: an on-chain observer who sees only the commitment cannot determine the user's location. The Paymaster, however, is the first-line disputer and must receive the exact coordinates off-chain — it needs the commitment preimage to raise a valid disputeGeofence (Layer 3 below) — so the 500m × 500m cell bounds what an on-chain observer could learn, not what the Paymaster learns. The Paymaster learns exact coordinates; location privacy holds against chain observers and third parties, not against the sponsoring Paymaster. The cell size is configurable per-geofence: smaller cells (100m) increase precision but reduce privacy; larger cells (1 km) increase privacy but may admit edge-case false positives near the geofence boundary.

Layer 2 — On-Chain Commitment (PartFund Contract). The NMW submits a geofenceCommitment as part of the spendAllowance() calldata:

geofenceCommitment=SHA3-256(gps_x∥gps_y∥noncegeofence∥block_height)

The PartFund contract stores the commitment hash (32 bytes) alongside the transaction record. The on-chain cost is minimal: one storage write (20,000 gas) + hash verification (100 gas) = ~20,100 gas incremental over a standard POS payment. Total gas for a geofence-verified POS payment: ~235,000 gas (standard POS 215K + commitment 20K).

Layer 3 — Fraud-Proof Dispute Window. Any observer (the Paymaster, a watchtower, or any full node) can challenge a geofence commitment within a dispute window of 120 blocks (~10 minutes). A challenger submits a disputeGeofence() transaction containing the revealed coordinates and nonce. The PartFund contract verifies:

  1. The revealed coordinates hash to the stored commitment (SHA3-256 preimage check — post-quantum safe).
  2. The revealed coordinates violate the geofence constraint — the contract projects them to the same local ENU fixed-point encoding as the Circuit Specification above and performs the Euclidean distance computation in pure integer arithmetic (no cryptographic assumptions). If the dispute succeeds (coordinates are outside the geofence), the original transaction is reverted and the offending NMW's SAT is invalidated. The challenger receives a reward from the Paymaster's deposited balance (incentivizing watchtower operation). If no dispute is raised within the window, the transaction is finalized.

Security Analysis.

The optimistic model shifts the trust assumption from "the ZK proof is valid" (synchronous verification) to "at least one honest observer will challenge an invalid proof" (optimistic verification). This is the same security model used by optimistic rollups (Arbitrum, Optimism) and is well-understood in the literature.

The Paymaster itself is the natural first-line verifier — the merchant's Paymaster has direct economic incentive to verify geofence proofs before sponsoring gas, since a successful dispute reverts the payment. The validatePaymasterOp() function performs the geofence check locally (off-chain, during UserOp validation) before agreeing to sponsor. An invalid geofence proof is rejected by the Paymaster before it ever reaches the chain in the common case.

The on-chain dispute mechanism serves as a backstop for the edge case where the Paymaster is compromised, colluding, or negligent. The 120-block dispute window (~10 minutes) is calibrated to exceed the POS payment confirmation time (~8-12 seconds) by a wide margin, providing ample time for independent watchtowers to verify and challenge.

Challenger Data Access. A dispute requires the challenger to know the actual GPS coordinates (to reveal them on-chain). The NMW transmits coordinates to the Paymaster off-chain during validatePaymasterOp() — so the Paymaster always has the data needed to dispute. For third-party watchtowers, the Paymaster may optionally publish coordinate hashes to a monitoring channel (off-chain, not on-chain) enabling independent verification. If the Paymaster is the entity being defrauded (a compromised NMW spoofing coordinates to bypass geofence), the Paymaster has the off-chain data and economic incentive to dispute. If the Paymaster itself is colluding (approving out-of-geofence transactions), only the wallet owner can detect this — via periodic audit of transaction locations in the Desktop Node. This is an acknowledged trust-on-Paymaster residual for the collusion scenario.

Post-Quantum Safety. The entire on-chain verification path uses exclusively SHA3-256 (hash commitment) and integer arithmetic (distance computation). No elliptic curve operations, no discrete log assumptions, no Shor-vulnerable primitives. The protocol maintains zero exposure to quantum-vulnerable cryptography through geofence verification (Axiom 2).

Future Migration Path. When post-quantum ZK proof systems (STARKs with SHA3-256, or lattice-based ZK constructions) reach production maturity with audited implementations, the protocol can migrate to synchronous on-chain verification via a soft fork introducing a VERIFY_STARK_GEOFENCE precompile. This migration is non-breaking — the PartFund contract interface (spendAllowance()) already accepts a geofenceProof bytes field, and the verification logic is abstracted behind the precompile boundary. The off-chain optimistic model serves as the secure, Axiom 2-compliant bridge until synchronous PQ-ZK verification becomes practical.

GPS Spoofing. GPS spoofing is the primary attack vector against geofence restrictions. The geofence is designed as a supplementary protection layer — not the sole defense. If GPS is spoofed, the SAT cap, timeout, whitelist, and biometric authentication still constrain the attacker. The geofence adds friction to an already multi-layered defense. The dispute mechanism provides an additional deterrent: if a watchtower detects spoofed coordinates (e.g., via cross-referencing with cell tower triangulation data provided by the merchant's infrastructure), the transaction can be challenged and reverted within the dispute window.

10.2.4. PartFund Contract Interface

Function Authorization Required Description
setAllowance(cap, timeout, txLimit, whitelist, geofence) Sovereign key (Arca/Desktop) Configures or reconfigures the MA. Emits AllowanceConfigured event
spendAllowance(dest, amount, sessionToken, geofenceProof) Valid SAT + NMW authentication Executes a payment within MA limits. Verifies: SAT validity, amount ≤ txLimit, cycle cumulative ≤ cap, destination in whitelist (if active), geofence commitment stored on-chain (if active). The geofenceProof field carries the SHA3-256 commitment hash for on-chain storage; full proof verification occurs off-chain in the Paymaster's validatePaymasterOp()
revokeAllowance() Sovereign key Immediate MA zeroing + SAT invalidation. Unspent MA returns to Vault
renewAllowance() Sovereign key or auto-renewal flag Resets cycle with same or updated parameters
emergencyFreeze(device_id) Sovereign key Freezes specific NMW device. Emits on-chain alert. Used for stolen/lost smartphone. Leaves the device profile registered
reclaimAllowance() Sovereign key Explicitly returns the unspent MA remainder to the Vault before the cycle timeout elapses (theft/loss flow, §10.7.1). Idempotent with the automatic post-timeout return
revokeDevice(device_id) Sovereign key Deregisters a device profile and invalidates its SAT on-chain (device migration, §10.7.3). Distinct from emergencyFreeze: the latter is a fast, alert-emitting freeze for a stolen/lost phone that leaves the profile registered, whereas revokeDevice permanently removes the profile (decommission/upgrade) and frees one of the registered-device slots (§10.5.2)

10.3. Session Auth Token (SAT)

The SAT is the cryptographic link between the sovereign device and the NMW. It is a structured data object signed with ML-DSA-44 by the Arca or Desktop Node, containing the bounded authorization for the NMW to operate within PartFund constraints.

10.3.1. SAT Structure

Field Type Description
device_id bytes32 SHA3-256(attestation\_pubkey ∥ platform\_attestation) — derived from the hardware-backed device-attestation public key (§10.1.2) and the platform attestation identifier (Android Hardware Attestation / iOS DeviceCheck), not the IMEI (which is unreadable to consumer apps on modern iOS/Android). Binds the SAT to a specific smartphone
allowance_cap uint256 Maximum AEV for this cycle. Immutable after issuance
tx_limit uint256 Maximum AEV per individual transaction
valid_until uint256 Expiration as an Aevum block height. Derived from the MA timeout (wall-clock) at issuance using the canonical Aevum block time of 5 s (§3.2 / CONSTANTS aevum.block_time): valid_until = issue_height + ⌈timeout_seconds / 5⌉. SAT expiry is aligned to a MA cycle boundary. Without auto_renewal, valid_until marks the end of the current cycle and a fresh SAT is required to continue; with auto_renewal active, valid_until is set to the end of the final auto-renewed cycle and the PartFund resets the cap counter at each intervening timeout boundary without a new SAT. After this block the SAT is invalid
whitelist_hash bytes32 Merkle root of approved destination addresses. Zero if whitelist inactive
nonce uint256 Incremental counter. The PartFund rejects SATs with previously consumed nonces (anti-replay)
issuer_pubkey_hash bytes32 SHA3-256(issuer_ML-DSA-44_pubkey). Verified on-chain against the PartFund's registered sovereign key
ml_dsa44_signature bytes (2,420) ML-DSA-44 signature over all fields above. Verified by the PartFund at every spendAllowance()

Serialization. The SAT is serialized in CBOR (Concise Binary Object Representation) and compressed with zstd before QR encoding. Total payload after compression: ~3 KB.

On-Chain Verification. The PartFund verifies the SAT at every spendAllowance() call: ML-DSA-44 signature validation, nonce freshness (anti-replay), expiration check, issuer_pubkey_hash match against the wallet's registered sovereign delegation key, and device_id match against the registered device profile.

Device binding — what the on-chain check does and does not prove. The on-chain device_id comparison matches the SAT's own device_id field against the registered value; it is a field-vs-registered check, not a proof that the submitter is the bound device. Submitter identity is proven off-chain by the per-operation device-attestation signature (§10.1.2), which the Paymaster verifies before sponsoring: an attacker who exfiltrates only the decrypted SAT bytes cannot produce that signature from another phone (the attestation private key is non-exportable), so a Paymaster enforcing attestation rejects cross-device replay. Honest residual: the attestation proof is off-chain, so it holds only insofar as the Paymaster (or the user's own submission path) enforces it. On-chain, the SAT remains a MA-bounded authorization — if the attacker uses the live device while it is unlocked, or the Paymaster is bypassed or colluding, the exposure reverts to MA-bounded spending from any device. The SAT is therefore best understood as a PIN-protected, hardware-attested authorization whose worst-case theft (post-decryption, attestation bypassed) permits at most MA-bounded spending — never Vault access.

Formal-review pending (ADR-0005 counter-sign).

10.3.2. SAT Transfer Protocol (ADQ-SAT)

The SAT is transferred from the Arca/Desktop to the NMW via Animated Dynamic QR (ADQ) using the UR 2.0 protocol:

Parameter Value
UR Type ur:nmw-sat (custom type registration)
Fragmentation Fountain Codes (LT Codes), 10% redundancy
Frame Size ~520 bytes per QR (Version 15, binary mode; §9.2.3)
Frame Rate 5–8 FPS, fixed (Arca outbound OLED, §9.2.3)
Total Frames ~6 source frames (~6–7 received with LT decode overhead) for a complete SAT (~3 KB with overhead)
Transfer Duration ~1.2–1.4 s at 5 FPS best case; ~2.0 s at 5 FPS (~1.3 s at 8 FPS) under 30% loss
Frame Loss Tolerance Up to 30%
Integrity SHA3-256 checksum verified after reconstruction

Redundancy vs. loss tolerance. The "10% redundancy" and "up to 30% frame loss tolerance" figures are not in tension: LT (Luby Transform) fountain codes are rateless, and the ADQ display loops continuously. The 10% figure is the baseline over-generation of encoded frames per loop pass; because the receiver accumulates fountain-code frames across successive loops until reconstruction succeeds, cumulative loss well above the per-pass budget — the stated ~30% single-pass tolerance, and in principle any loss rate below 100% — is recoverable simply by scanning additional frames (i.e. additional time), at the cost of a longer transfer.

Issuance Flow (Arca). User navigates to "Manage Mobile Wallet" on the Arca → configures MA parameters → Arca signs SAT with ML-DSA-44 → Arca displays ADQ-SAT animation on OLED → NMW scans via rear camera → NMW reconstructs and verifies SHA3-256 → NMW encrypts SAT with Argon2id(PIN) and stores in Secure Enclave/StrongBox → NMW displays acknowledge QR → Arca scans and logs active allowance.

Issuance Flow (Desktop). Identical flow but the Desktop displays the ADQ-SAT animation on the monitor, and the Desktop's ML-DSA-44 key (stored in TEE/HSM) signs the SAT.

10.4. Multi-Layer Authentication

The NMW operates in a fundamentally hostile environment (internet-connected smartphone with broad attack surface). The authentication strategy implements independent, non-bypassable layers:

10.4.1. Layer 1 — Biometric (On-Device Hardware)

Modality Implementation Requirement
Fingerprint BiometricPrompt API (Android) / LocalAuthentication (iOS) Class 3 (Strong) mandatory. False positive rate < 0.002%
Face Recognition Face ID (iOS A12+) / Android BiometricPrompt Class 3 Attention detection mandatory (prevents unlock by photo/sleeping)
Failure Handling Maximum 5 consecutive failures → 15-minute cool-down → Master PIN required Prevents brute-force biometric attempts
Template Storage Exclusively in Secure Enclave (iOS) / TEE-StrongBox (Android). NMW receives only boolean success/failure NMW never accesses biometric data. Template never leaves hardware enclave

10.4.2. Layer 2 — Master PIN

The Master PIN is the second independent authentication factor:

Parameter Specification
Minimum Length 8 alphanumeric characters (6-digit numeric accepted with security warning)
Key Derivation Argon2id (memory: 64 MB, iterations: 3, parallelism: 4) over PIN + installation-unique salt (stored in Secure Enclave/TEE)
Purpose Encrypts SAT at rest in secure storage. Required for: initial unlock after install/reboot, biometric cool-down override, high-value transaction confirmation
Brute-Force Protection Maximum 10 failed attempts with exponential backoff (1s, 2s, 4s... 512s). At 10th failure: local session storage wiped (SAT destroyed). Requires new SAT issuance from Arca/Desktop

10.4.3. Layer 3 — Session Auth Token (Sovereign Proof)

The SAT is the cryptographic proof that the sovereign device (Arca/Desktop) has authorized this specific smartphone to operate within defined bounds. It is verified on-chain by the PartFund at every spending operation. The SAT cannot be forged without the sovereign ML-DSA-44 private key.

10.4.4. Authentication Matrix by Operation Context

Operation Biometric Master PIN SAT Required Additional
View balance and history Required (OR PIN) Alternative to biometric No —
Payment ≤ 10% of tx_limit Required No Yes (active) —
Payment > 10% of tx_limit Required Required Yes (active) —
Payment above custom threshold Required Required Yes + QR confirmation from Arca (PAT)
Allowance renewal N/A (not performed on NMW) N/A New SAT via Arca/Desktop —
Parameter changes N/A (not performed on NMW) N/A Sovereign signature —
Emergency revocation N/A (not performed on NMW) N/A Sovereign signature —

10.5. Desktop Node

10.5.1. Architecture

The Desktop Node is a full-featured sovereign client combining blockchain node functionality with wallet management and NMW administration. It ships as a native application for Linux, Windows, and macOS (§10.5.4). It self-custodies both assets in software: an AEV key (ML-DSA-44) and a BND key (ML-DSA-65), both held in its hardware-sealed keystore (§10.5.4), and it runs a full Bond RSC node for independent BND validation. The air-gapped Arca is the recommended upgrade for BND custody but is not required at genesis (§10.1.1, §6):

Module Implementation Function
Bond Full Node Rust (native binary) Complete Bond RSC synchronization via Gossipsub/libp2p and independent validation of all pUTXOs and blocks. Provides maximum sovereignty over BND (full validation) and acts as the primary SPV-Challenge challenger against fraudulent bridge attestations (§7.5.5). Eliminates dependence on third-party public nodes
Aevum Light Client Rust (native binary) Aevum ESC light verification (SPV + oracle-assisted) for day-to-day AEV transactions — header verification and JMT (Jellyfish Merkle Tree) proof validation for Aevum state and OP_RETURN events, without running a full Aevum node
Sovereign Wallet Rust + ML-DSA-44 & ML-DSA-65 modules Key management via a local hardware-sealed keystore (TEE/HSM-backed, §10.5.4). Holds the AEV key (ML-DSA-44 — signs UserOps, SATs, PATs) and the BND key (ML-DSA-65 — signs Bond RSC pUTXOs); the air-gapped Arca is the recommended upgrade for BND custody. Manages PartFund configuration
ADQ Engine Rust + display driver Generates and renders UR 2.0 animated QR codes on the monitor for SAT transfer to NMW
PoD Validator (optional) Rust Participates in Aevum consensus as a Proof of Dedication validator, generating AEV rewards. Upgrades the Aevum light client to a full validating node (§14 Aevum Validator class). Requires staking
NMW Administration Rust + local UI Registers NMW devices, configures Mobile Allowances, manages multi-device profiles, monitors transaction history
Emergency Monitor Rust + alert system Dashboard for anomaly detection: out-of-whitelist spending attempts, excessive authentication failures, circuit breaker triggers. Sends alerts and enables emergency freeze

10.5.2. Multi-Device NMW Management

A single sovereign identity (Arca/Desktop) can administer multiple NMW devices, each with independent PartFund configurations:

Capability Mechanism
Device Registration Each NMW generates its non-exportable hardware device-attestation keypair (§10.1.2) inside the platform secure element and emits a registration QR carrying device_id and the attestation public key. Arca/Desktop scans, verifies platform attestation (Android Hardware Attestation / iOS DeviceCheck), and creates a device profile pinning that attestation public key
Registered-Device Limit The PartFund enforces a maximum of 5 concurrently registered NMW devices per wallet. Registration beyond the cap requires first freeing a slot via revokeDevice (§10.2.4)
Independent Allowances Each NMW has its own PartFund instance with separate cap, timeout, whitelist. Personal phone: daily allowance. Business phone: corporate expenses with vendor whitelist
Selective Revocation Desktop can revoke a single NMW's SAT without affecting other registered devices
Unified Audit Trail All NMW transactions are visible in the Desktop's administration panel, tagged by device_id
Cross-Device Isolation Compromise of NMW-A does not affect NMW-B. Each device's SAT is bound to its unique device_id

10.5.3. High-Value Transaction Authorization (PAT)

For operations exceeding the custom high-value threshold, the NMW cannot execute autonomously. A Partial Authorization Token (PAT) flow is required:

  1. The NMW generates an Intent QR (static) containing: destination, amount, memo, nonce, and hash of the active SAT.
  2. The user presents the Intent QR to the Arca or Desktop screen.
  3. The Arca/Desktop scans the Intent QR, displays a human-readable summary ("Send 500 AEV to address 0xABC... ?"), and requests confirmation (biometric/PIN on the sovereign device).
  4. Upon confirmation, the Arca/Desktop signs a PAT (ML-DSA-44 signature over the specific operation fields) and displays it as an ADQ animation.
  5. The NMW scans the PAT, constructs the complete UserOp (including both SAT and PAT), and submits via Bundler.
  6. The PartFund verifies both the SAT (general session authorization) and the PAT (specific operation authorization) before executing. This mechanism ensures that high-value transfers require physical interaction with the sovereign device — an attacker who has compromised only the smartphone cannot authorize large payments.

10.5.4. Platform Support and Distribution

The Desktop Node is distributed as a native application for the three major desktop operating systems, mirroring the cross-platform posture of the Nexus Mobile Wallet (iOS + Android, §10.8). A single Rust codebase compiles to a signed native binary per target, and one installation covers both ledgers with distinct roles (§10.5.1): software self-custody of AEV (ML-DSA-44) and BND (ML-DSA-65) through the Sovereign Wallet, backed by an embedded Aevum light client and a full Bond RSC node for independent validation (§10.5.1). Both keys live in the hardware-sealed keystore (below); the air-gapped Arca is the recommended upgrade for BND custody but is not required — self-custody of both assets works in software from genesis (Axiom 1).

OS Architectures Minimum version Hardware-backed key sealing Primary package format
Linux x86-64, aarch64 glibc ≥ 2.31 (Ubuntu 20.04+, Debian 11+, Fedora 32+); static musl build for other distributions TPM 2.0 via tpm2-tss; software keystore fallback Reproducible tarball, AppImage, Flatpak
Windows x86-64 (aarch64 to follow) Windows 10 21H2+ / Windows 11 TPM 2.0 via CNG Platform Crypto Provider (Windows Hello) Signed MSIX / MSI
macOS Apple Silicon (aarch64) + Intel (x86-64), universal binary macOS 12 (Monterey)+ Secure Enclave via Keychain Services Signed & notarized DMG / .app

Post-quantum keys cannot live inside stock secure elements. TPM 2.0, Apple's Secure Enclave, and Windows CNG Platform Crypto Providers implement only classical primitives (P-256 / RSA) — none can natively store or operate an ML-DSA key. The Desktop Node therefore keeps the sovereign ML-DSA private keys (ML-DSA-44 for AEV, ML-DSA-65 for BND) in an encrypted software keystore and delegates only the wrapping of that keystore to the platform secure element: the key material is sealed under a hardware-bound symmetric wrapping key, and unsealing requires both (a) the user's Master PIN via an Argon2id KDF — the same construction as the Arca key-at-rest encryption model (§9.6.1) and the NMW SAT-at-rest model (§10.1.2) — and (b) attestation that this is the same physical machine (TPM / Secure Enclave binding). This satisfies the "local TEE/HSM" requirement of §10.5.1 on commodity hardware that has no post-quantum secure element, without ever writing a raw ML-DSA key to disk.

Display requirement. The ADQ Engine (§10.5.1) renders UR 2.0 animated QR codes on the monitor for SAT/PAT transfer to the Arca and NMW, so a graphical session is required for wallet operation. A headless mode (full node + PoD validator, no wallet UI) is supported for server deployments but cannot issue SATs or PATs — SAT/PAT issuance is a sovereign-key operation that requires the interactive keystore unlock.

Hardware requirements. Authoritative per-role hardware profiles are specified in §14 (P2P node classes); the Desktop Node maps to the "Desktop Node (Arca)" class there, consistent with the consumer-hardware / "Negative Scalability" commitment (§2). Two run modes are offered:

Mode Description
Full Node Full-node validation plus the Sovereign Wallet. Storage and bandwidth per the §14 Desktop Node profile
Light Wallet Light-client (SPV) verification plus the Sovereign Wallet; no full-node synchronization — minimal storage and bandwidth

The Light Wallet mode reuses the Rust → WASM light-client stack (§13.1, "Light Clients — browser / Desktop") for users who want sovereign key custody and independent SPV verification without the storage and bandwidth cost of running a full node. It is the same application binary configured to skip full-node synchronization — not a separate product.

10.5.5. Reproducible Builds, Binary Attestation, and Updates

Because the Desktop Node custodies sovereign ML-DSA keys (AEV and BND), its binary is held to the same on-chain attestation discipline as Arca firmware (§9.9):

Property Mechanism
Reproducibility Built via Nix (§13.1). An auditor rebuilding from source obtains a byte-identical artifact per (os, arch) triple, verified by SHA3-256
Release signature Each artifact carries an ML-DSA-65 signature from the Cypherpunk Engineering release key — the same release-key discipline that signs Arca firmware (§9.9.2, §9.10)
On-chain hash announcement The DAO Treasury additionally publishes SHA3-256(binary) for every platform artifact via an OP_RETURN release transaction on the Bond RSC. This on-chain hash — not any OS-vendor signature — is the authoritative, vendor-independent integrity anchor
Self-attestation On launch, the Desktop Node reads the DAO Treasury OP_RETURN release hash directly from its Bond full node and compares it against the hash of its own executable, warning the user on mismatch. Unlike the air-gapped Arca, the Desktop has direct chain access — so this is continuous on-chain verification, closing the trust-on-first-verification gap that constrains the Arca (§9.9.2)
OS code signing Authenticode (Windows) and Apple notarization (macOS) are a secondary convenience layer that satisfies OS gatekeepers (SmartScreen / Gatekeeper). They are never the root of trust — a user on a hardened system may run a self-built, unsigned binary and verify it against the on-chain hash
Updates Opt-in only: an update is downloaded, its hash verified against the on-chain announcement, and applied only after explicit user consent. No silent auto-update — forcing code changes onto a custody application would violate Axiom 1 (Individual Sovereignty)

Distribution channels. The canonical channel is the project's reproducible release repository (source + per-platform binaries + hashes). Presence in app stores (Microsoft Store, Flathub, a notarized DMG mirror) is an optional convenience — never the sole or mandatory path — so that no OS vendor can gate a sovereign user's access to their own funds (Axiom 1). This mirrors the Arca firmware distribution model (§9.9.1): the user may always download, independently verify, and run.

10.6. Payment Modes

The NMW supports multiple payment modalities for consumer convenience:

Mode Flow Authentication
QR Push (Primary) NMW scans merchant's payment QR → confirms amount → biometric → submits UserOp with SAT + Paymaster Biometric (+ PIN if above threshold)
QR Pull (Receive) NMW displays a QR containing the user's AEV address + optional amount. Payer scans and sends None required to receive
NFC (Android HCE) NMW emulates Host Card via NFC. Terminal reads payment intent, NMW authenticates and submits Biometric (+ PIN / PAT per §10.4.4)
Peer-to-Peer User enters AEV address or selects from local contact book. Biometric + PIN for any amount (stricter than the amount tiers of §10.4.4) Biometric + PIN

10.7. Emergency Procedures

10.7.1. Smartphone Theft or Loss

  1. User accesses Desktop Node or Arca and invokes emergencyFreeze(device_id).
  2. Arca/Desktop signs a high-priority UserOp calling revokeAllowance() + emergencyFreeze() on the PartFund.
  3. The PartFund processes the revocation. All subsequent spendAllowance() calls from the stolen device revert (SAT invalidated on-chain).
  4. Unspent MA remainder returns to Vault after timeout (or via explicit reclaimAllowance() from sovereign key).
  5. User registers a new smartphone via the standard registration flow. Worst-case loss: The MA remainder at the moment of theft. Never the Vault principal.

10.7.2. Lost Master PIN (NMW)

The NMW's Master PIN protects the locally encrypted SAT. If the PIN is forgotten:

  1. The NMW's local session storage is inaccessible (Argon2id-encrypted SAT cannot be decrypted).
  2. The user resets the NMW app (factory reset) and completes the registration flow again with the Arca/Desktop.
  3. A new SAT is issued. The old SAT's nonce is invalidated on-chain via the PartFund.
  4. No funds are lost — the Vault and MA on-chain state are unaffected by local NMW data loss.

10.7.3. Device Migration (Phone Upgrade)

The SAT is bound to a specific smartphone via device_id = SHA3-256(attestation_pubkey ‖ platform_attestation) (§10.3.1). When a user upgrades to a new phone, the old SAT is invalid on the new device. The migration flow is:

  1. Install NMW on new phone. The app generates the new device's hardware device-attestation keypair (§10.1.2) inside the platform secure element and produces a registration QR containing the new device_id and the attestation public key.
  2. Scan registration QR with Arca (or Desktop Node). The sovereign device verifies the new phone's platform attestation (Android Hardware Attestation / iOS DeviceCheck) and creates a new device profile.
  3. Arca issues a new SAT for the new device_id with the same MA parameters (cap, timeout, tx_limit, whitelist, geofence, auto_renewal) as the previous device.
  4. Old SAT invalidation. The Arca submits a revokeDevice(old_device_id) UserOp to the PartFund, invalidating the old SAT on-chain. If the old phone is still accessible, its NMW app shows a "device deauthorized" notice. If the old phone is lost/sold, the on-chain revocation prevents any residual SAT usage. Required: physical access to Arca. Yes — every phone migration requires a one-time QR scan with the Arca (or Desktop Node). This is intentional: the Arca is the root of trust, and device authorization is a sovereign operation. The typical phone upgrade cycle (every 2-3 years) makes this an infrequent inconvenience that preserves the security model. Users who anticipate phone upgrades can pre-register the Desktop Node as a secondary SAT issuer (Section 10.5), allowing device migration without the Arca for MA-only operations.

Multi-device support. The PartFund supports up to 5 concurrent registered NMW devices per wallet (Section 10.5.2). A user can register the new phone before decommissioning the old one, ensuring zero downtime in payment capability.

10.8. Technology Stack

Component Technology Rationale
Framework Flutter (Dart) Single codebase for iOS + Android. Compiles to native ARM — no JIT in production
Cryptographic Module Rust plugin via Dart FFI ML-DSA-44 signature verification + SHA3-256 hashing in Rust. Crypto never touches Dart runtime
Secure Storage flutter_secure_storage iOS Keychain / Android EncryptedSharedPreferences + StrongBox backend
Biometrics local_auth plugin Delegates to Secure Enclave (iOS) / TEE (Android). Class 3 mandatory
QR Scanning mobile_scanner Runs in isolate (separate thread) to avoid blocking UI during ADQ decoding
QR Generation qr_flutter Registration QR, acknowledge QR, payment receive QR
Network gRPC/Protobuf over TLS 1.3 Communication with Aevum Bundlers (public or user's own Desktop Node)
Key Derivation argon2 package (Rust native binding) PIN → encryption key for local SAT storage
NFC nfc_manager + APDU over IsoDep / NFCISO7816Tag HCE (Android) for NFC payments. iOS Core NFC ≥ 13 for DESFire read+write. Aevum Bond physical card = MIFARE DESFire EV3 8K (NXP MF3DHX3), AID F0AEB0xx, AES-128 native + scrypt+AES-256-GCM passphrase fallback. See the DESFIRE-EV3-USE-CASES.md companion (not part of this repository)
ZK Proofs SHA3-256 commitment + geofence grid proof (Rust via FFI) Geofence off-chain proof generation and commitment construction (opt-in)

10.9. Threat Model

Threat Vector Impact Without NMW Architecture Impact With NMW Architecture Residual Risk
Smartphone theft (unlocked) Total loss — hot wallet private keys exposed Loss ≤ MA remainder. Vault untouched. Emergency freeze recovers unspent MA Attacker spends MA before owner triggers freeze (~minutes window). Mitigated by small MA sizing
Malware on smartphone Private key extraction → total fund theft No sovereign/spending keys on device (only the non-exportable device-attestation key, no spend authority, §10.1.2). SAT extracted is bounded by cap/timeout/whitelist. SAT invalidatable via emergency freeze Malware submits transactions within MA limits before detection. Bounded by cap and tx_limit
Network MITM Transaction interception or modification SAT is signed ML-DSA-44 — tampering invalidates signature. UserOp verified on-chain by PartFund regardless of network path None — cryptographic integrity is end-to-end
Bundler compromise Forged transactions PartFund verifies SAT and all parameters on-chain. Bundler cannot forge ML-DSA-44 signatures. Invalid UserOps are rejected by EntryPoint Bundler delays or drops transactions (censorship) — mitigated by permissionless Bundler market
Physical coercion Forced to reveal keys → total loss Forced to unlock NMW → attacker accesses MA only. Vault requires separate Arca/Desktop (different location, different PIN) Coercion at same location as Arca/Desktop — mitigated by Arca's 10-attempt wipe and geographic separation of devices
Phishing QR User scans malicious QR → sends to attacker address NMW displays human-readable transaction summary before biometric confirmation. Whitelist (if active) rejects unknown destinations User confirms a spoofed-but-plausible summary — mitigated by whitelist enforcement and amount display
Quantum attack ECDSA keys broken → all funds stolen SATs signed with ML-DSA-44 (NIST Level 2 PQC). Immune to Shor's algorithm. Quantum Canary provides early warning for ML-DSA parameter migration ML-DSA-44 broken (theoretical) — mitigated by sig_version migration (Section 6.6) and FCRC emergency procedures
Supply chain (smartphone) Hardware backdoor exfiltrates keys No sovereign/spending keys on device. Backdoor can extract SAT (bounded authorization) but not the Vault sovereign keys (on Arca/Desktop). SAT invalidatable Backdoor submits MA-bounded transactions — same as malware vector, same mitigation
GPS spoofing (geofence) N/A Attacker bypasses geofence restriction SAT cap + timeout + whitelist + biometric still enforce — geofence is supplementary, not sole defense

10.10. Mobile-Primary Profile (Proposed)

Proposed; pending ADR-0005 counter-sign (ADR-0032). Nothing in this section is in force. §10.1.2 stands unqualified until that ADR is ratified. Engineering design: mobile-primary-custody-profile.md.

10.10.1. The Gap

The authority hierarchy of §10.1.1 originates at a sovereign device, and §10.1.2 forbids spending keys on the phone. A user whose only computing device is a smartphone therefore cannot obtain a SAT (§10.5.4: a headless node "cannot issue SATs or PATs"), cannot spend, and so cannot custody AEV at all.

This is not a property of the threat model — the Delegated Profile is sound on its own terms. It is a limit on the addressable population, and it sits in tension with §1.5's commitment to a consumer who "never holds AEV for gas, never manages seed phrase": the seed phrase is eliminated, and a hardware prerequisite takes its place.

10.10.2. The Profile

The Mobile-Primary Profile is a second, additive configuration of the same application. The Delegated Profile is unchanged and remains the recommended option for any user who owns an Arca or a Desktop Node.

Delegated Profile Mobile-Primary Profile
Sovereign key location Arca / Desktop Node The phone
Spending authority SAT, bounded by the Mobile Allowance Own ML-DSA-44 signature, bounded by Extension 0x07
Bond RSC / BND authority None None
Recovery root Sovereign device Guardians (Extension 0x02)
Worst case on full device compromise MA remainder (§10.2.1) Everything inside the 0x07 bound

The profile introduces no new mechanism. It is the §10.5.4 Light Wallet run mode — "the same application binary configured to skip full-node synchronization — not a separate product" — hosted on ARM and restricted to the Aevum ESC. Key custody uses the §10.5.4 construction unchanged, which exists precisely because stock secure elements are classical-only: the ML-DSA-44 key sits in an encrypted software keystore whose wrapping key is sealed by the platform secure element, and unsealing requires both Argon2id over the Master PIN and same-device attestation. The device-attestation keypair of §10.1.2 is retained, non-exportable and with zero spend authority, so Axiom 2's zero on-chain elliptic-curve exposure is preserved.

§10.1.1's rule that the phone "cannot interact with the Bond RSC" is preserved verbatim. No ML-DSA-65 key material exists on the device, and this profile does not reach the Bond settlement surface, the FCRC, or any Tier-0 primitive.

10.10.3. Bounded Authority and Recovery

Extensions 0x02 (Social Recovery) and 0x07 (Spending Limits) are mandatory; 0x03 (Deadman's Switch) is recommended; gas is sponsored by a third-party wallet that registers 0x06 (Paymaster, §8.3.2), so the user never holds AEV for gas. 0x07 is load-bearing: it restores the Delegated Profile's contract-bounded loss property in the absence of a sovereign device.

Guardians replace the sovereign device wherever §10 routes an operation through one — emergency freeze (§10.7.1), lost-PIN recovery (§10.7.2), device migration (§10.7.3), and high-value co-signature (§10.5.3). A guardian credential may be an ML-DSA-44 key held by another phone running this profile, so guardianship requires no hardware purchase; on-chain state remains the guardian public-key hash alone (§11.2.1). Emergency freeze is proposed as 1-of-N with un-freezing requiring the full quorum plus the owner's biometric — a wrongful freeze costs an inconvenience, a wrongful drain costs the balance.

10.10.4. Disclosed Security Reduction

Under the Delegated Profile, full compromise of the phone costs the user the Mobile Allowance remainder; the Vault is architecturally unreachable (§10.2.1). Under this profile the same compromise costs everything inside the 0x07 bound, because the phone holds the signing key. Spending limits, partitioning, timelocks, and guardians bound and slow that loss; they do not eliminate it.

This is the same class of disclosed posture reduction the roadmap records for software custody in place of the Arca hardware root of trust, and it is accepted for the same reason: the alternative is not a stronger product for this user, it is no product, and the practical substitute is a custodial third party — a strictly worse outcome under Axiom 1.

Two parameters are explicitly unresolved and are recorded as open questions in the engineering design: the Argon2id parameter set must be re-derived for low-memory devices rather than inherited from §10.4.2, and the Extensions Registry ID space and first-registration timelock must be settled before the genesis freeze, because on this profile the phone key is the sovereign key.

Profile choice is not a one-way door. A user who later acquires a Desktop Node or an Arca promotes it to sovereign and demotes the phone to a SAT bearer via §8.3.3's 48-hour timelocked, sovereign-gated extension pointer.


User-facing stack complete — governance and recovery next. Sections 8–10 specified the full user-facing stack: Account Abstraction, Arca hardware, and the Nexus Mobile Wallet. Section 11 addresses the two remaining human-layer mechanisms — how the protocol evolves (bicameral governance) and how users recover from catastrophic key loss (Social Recovery / OP_DEADMAN).