diff options
| author | Adam Soltys <[email protected]> | 2026-09-05 19:38:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-05 19:38:10 -0700 |
| commit | ae85dc0afba70f40b333cf03c64abbbf4c8dfea0 (patch) | |
| tree | 869f84166f0ad9589ef85504d75376ef7446598d /src/format.js | |
| parent | efc4355b015a20fc346f3c9d985b75ae8dfd45c0 (diff) | |
| download | coinosv3-ae85dc0afba70f40b333cf03c64abbbf4c8dfea0.tar.gz coinosv3-ae85dc0afba70f40b333cf03c64abbbf4c8dfea0.zip | |
Point of sale: a coinos-pos terminal works against a name
Registrar: the owner mints a bearer POS token from Settings (NIP-98
POST /pos/token, DELETE revokes; /admin/pos/token for operators). With it
the terminal gets /pos/me, rings up sales at /pos/invoice (fiat via
coinos.io rates, or sats), reads /pos/payments, and holds a websocket at
/pos/ws that gets a payment message when the sale settles. Sales are
always minted on our node so the settle loop sees them and the ordinary
forward path delivers the sats to the name's ark address. The name's
lnurlp pins the newest unpaid sale under five minutes old — coinos.io's
/p/<name> rule — so an NFC tap or a scan pays exactly that invoice.
Wallet: a "Point of sale" section on the names card creates, copies and
revokes tokens.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMi2Y1oKPZ3TeeFmLej47y
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions
