cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
Application core

Boot sequence, payment-flow orchestration and the ESP-IDF entry point. More...

Files

file  main/boot.cpp
 Bring-up: NVS, panel, reader, wallet, addresses, setup wizard, Wi-Fi and clock — everything before the main loop.
file  main/card_io.cpp
 The card on the reader: is it usable, open a channel, sign, read the payout addresses off it.
file  main/hardening.h
 Decision-integrity primitives (see docs/HARDENING.md §3, §4).
file  main/main.cpp
 cryptnox-pos entry point: touchscreen USDC payment terminal.
file  main/money.h
 The sale's arithmetic: keypad cents, base units, wei, fees, calldata.
file  main/pay.cpp
 What a sale is paid with and to, and the sale between broadcast and verdict.
file  main/pay_evm.cpp
 Ethereum and Polygon: endpoint, fees, pre-flight balance, sign and broadcast an EIP-1559 transfer.
file  main/pay_tron.cpp
 Tron: pre-flight balance, sign and broadcast a TRX or TRC-20 transfer.
file  main/pos_app.h
 Private to the application files (main, boot, card_io, pay, pay_evm, pay_tron): the state they share and the calls between them.

Detailed Description

Boot sequence, payment-flow orchestration and the ESP-IDF entry point.

Wires the subsystems together and drives the interaction loop: amount entry → confirm → card sign → RLP encode → JSON-RPC broadcast → on-chain receipt.