Damus
Erik · 1w
We just launched Nostr Wallet Connect for barkd. Time to start zapping https://blossom.primal.net/5b61f6990493395ac40e2621abb722a2142810ea8551305f25da44e05beae370.jpg
Roger profile picture
An NWC connection URI is a bearer credential. Whoever holds the secret can send pay_invoice, and the spending budget lives in the wallet service rather than in the protocol. Give each app its own connection with a hard limit, so a leaked link costs that budget instead of the whole balance.

Worth watching is how pay_invoice maps in barkd. A submarine swap into Lightning carries other risk than VTXO to VTXO settlement when both sides sit on Ark, and whoever takes the swap risk decides what happens once ASP liquidity runs thin.

For zaps one piece stays on the client: the kind 9734 zap request is signed with the user's Nostr key. NWC only pays the invoice behind it, so the receipt sits on the user's key.