Skip to main content

Koperasi Kegelapan NFC Wallet — Specification Hub

This site contains the full specification for the Koperasi Kegelapan offline NFC wallet system: a tap-based payment system that operates without real-time backend connectivity, storing encrypted wallet state on NTAG215 NFC cards.

Spec Layers

LayerStatusFolder
1. Product Spec✅ Completedocs/product-spec/
2. System Design✅ Completedocs/system-design/
3. Tech Specs✅ Completedocs/tech-specs/
4. API Spec✅ Completedocs/api-spec/
5. Data Spec🚧 Planneddocs/data-spec/
6. Security Spec🚧 Planneddocs/security-spec/
7. Test Spec🚧 Planneddocs/test-spec/
ADRs✅ Completedocs/adr/

Architecture Decision Records

Six key decisions are recorded in the ADR folder:

  1. A/B buffer write strategy — NFC write non-atomicity and recovery
  2. AES-GCM cipher choice — Web Crypto API constraint and AEAD rationale
  3. NTAG215 production baseline — Commodity hardware, byte budget
  4. Offline trust model — Session grants, deferred reconciliation
  5. Hash-chain log — Tamper-evident on-card transaction log
  6. Balance ceiling — uint32 with Rp 16 M operational cap