Spaces:
Running
Running
Commit History
-
<!doctype html>
Verified signature<html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <title>Maestro POS — Prototype</title> <!-- Tailwind CDN (Play CDN) --> <script src="https://cdn.tailwindcss.com"></script> <!-- TweetNaCl for Ed25519 signing --> <script src="https://unpkg.com/tweetnacl@1.0.3/nacl-fast.js"></script> <script src="https://unpkg.com/tweetnacl-util@0.15.1/nacl-util.min.js"></script> <style> /* Small custom styles for nicer shadows & gradient accents */ :root{ --accent-start: #6EE7B7; --accent-end: #60A5FA; --muted: #6B7280; } .glass { background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6)); backdrop-filter: blur(6px) saturate(120%); } .card { border-radius: 14px; box-shadow: 0 8px 30px rgba(2,6,23,0.12); } .gradient-border { background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(110,231,183,0.16)); …b69974d -
You are an expert full-stack developer skilled in **Android Kotlin, cryptography, and offline-first apps**. Build a **prototype POS app** with the following requirements:
Verified signature**Platform** * Android app written in Kotlin (preferred). Alternative: Linux kiosk app in Node/Electron with Raspberry Pi GPIO hooks. **Core Features** 1. **QR/NFC Reader Integration** * Scan QR codes that are **COSE/CBOR signed** (ECDSA P-256 or Ed25519). * Verify them offline using a bundled issuer public key. * NFC reading optional, provide skeleton. 2. **Tamper Sensor Input API** * Mock API for sensor values (`reed`, `hall`, `tilt`). * Hooks to connect to **GPIO** if running on Pi/Linux. * Values collected and inserted into receipt JSON. 3. **Local Encrypted Database** * Use **SQLCipher** (if SQLite) or **Android EncryptedSharedPreferences**. * Store up to 100 receipts, retrievable for testing. * Each receipt entry is encrypted. 4. **Secure Key Handling** * Generate device keys with **Android Keystore** (TEE backed). * Fallback: software key stored in encrypted storage. * Use key to **sign each receipt** (ECDSA/EdDSA). * Support **Ke…0246626 -
initial commit
Verified signature12275c2