Tim Bouma on Nostr: Payment by NFC with #nostr #safebox I have the secure plumbing figured out. Still ...
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.
Published at
2025-06-03 18:53:44Event JSON
{
"id": "6a3f8cf11561f8cba6644076999ecb1bc1ad02d5c7a0529bdf0102d4597dade5",
"pubkey": "06b7819d7f1c7f5472118266ed7bca8785dceae09e36ea3a4af665c6d1d8327c",
"created_at": 1748976824,
"kind": 1,
"tags": [
[
"t",
"nostr"
],
[
"t",
"safebox"
],
[
"r",
"https://image.nostr.build/2ed14fab88d993a1c92c7514617333dd60437cc10ecb89fff511c4b641f5cedb.jpg"
],
[
"imeta",
"url https://image.nostr.build/2ed14fab88d993a1c92c7514617333dd60437cc10ecb89fff511c4b641f5cedb.jpg",
"x 7bf04747d16c08ab492488bcdcac4711a294828928546f7e34e3b566ab90880f",
"size 19901",
"m image/jpeg",
"dim 1080x681",
"blurhash r68gy-t700IU?b%MIURjRj~qofD%Rj%Mt7WBWBfQ4nWB_3xuIUM{xut7t7j[Rj_3%M9FIUt7xuWBofayxuofRjWBj[ofj[t7ofD%M{-;xuRjRjof",
"ox 7bf04747d16c08ab492488bcdcac4711a294828928546f7e34e3b566ab90880f",
"alt "
]
],
"content": "Payment by NFC with #nostr #safebox\n\nI have the secure plumbing figured out. Still more to implement but here is the gist:\n\n1. Reader acquires encrypted token from card and amount\n2. Generates lightning invoice.\n3. Acquited sends encrypted token and invoice to token vault endpoint\n4. Vault decrypts token and issues nwc command to pay invoice \n5. Wallet pays invoice\n6. Poll invoice and notify user invoice is paid. \n\nhttps://image.nostr.build/2ed14fab88d993a1c92c7514617333dd60437cc10ecb89fff511c4b641f5cedb.jpg",
"sig": "290362d971e1a17d5708e5436645383a0eee74e42374038b86ec1d9970c01083606afe681d94a774bd5ce809494dc1a053011cb15e2dac544cf15fd73eacdaad"
}