Implement QR code scanning for air-gapped PSBT and policy input.
Hardware
- Camera: GC0308 0.3MP (VGA, DVP interface)
- Output: RGB565 (requires grayscale conversion)
Tasks
QR Type Detection
- Base64 PSBT (
cHNidP8...)
- UR format (
ur:crypto-psbt/...)
- Bitcoin addresses (bc1q, bc1p, 1..., 3...)
- Policy bundles (JSON with warden_pubkey)
Performance Targets
| Operation |
Target |
| QR scan |
< 3s |
| Grayscale conversion |
< 20ms |
| Frame rate |
~33 FPS |
Dependencies