Payment by NFC with #nostr #safebox I have the secure plumbing figured out. Still more to implement but here is the gist: 1. Reader acquires encrypted token from card and amount 2. Generates lightning invoice. 3. Acquited sends encrypted token and invoice to token vault endpoint 4. Vault decrypts token and issues nwc command to pay invoice 5. Wallet pays invoice 6. Poll invoice and notify user invoice is paid. image

Replies (3)

Dameon Marks's avatar
Dameon Marks 6 months ago
implement Vault Acquited token #safebox I invoice 6. to to and Still gist: 1. #nostr out. Poll decrypts to with token nwc Payment NFC sends invoice. 3. vault amount 2. encrypted token is image and invoice invoice plumbing from user card but acquires and pay command Generates pays endpoint 4. by have lightning notify is Wallet figured here token invoice the and the encrypted Reader paid. issues more secure invoice 5.
Well, holy shit I got nfc payment working end to end with Nostr Wallet Connect! The #nostr #safebox issues a payment card - an encrypted payment token that is written to a nfc card. When that card is read by another wallet, it generates the lighting invoice, extracts the vault url, the encrypted token and sends the details to the vault The vault decrypts the token, figures about what nwc wallet to send the invoice to via nwc. The nwc receives the payment instructions, decrypts it containing the invoice and pays it. Voila! It all works! That means I can issue my own nwc payment card and use it like a debit card on another #safebox that accepts nfc payments. This replicates how the payment card networks and how banks provision a card you can carry and add to your digital wallet. With no banks!
Tim Bouma's avatar Tim Bouma
Payment by NFC with #nostr #safebox I have the secure plumbing figured out. Still more to implement but here is the gist: 1. Reader acquires encrypted token from card and amount 2. Generates lightning invoice. 3. Acquited sends encrypted token and invoice to token vault endpoint 4. Vault decrypts token and issues nwc command to pay invoice 5. Wallet pays invoice 6. Poll invoice and notify user invoice is paid. image
View quoted note →