Quick and dirty Rust Nostr ZAP Validation

https://gist.github.com/blakejakopovic/76714633f844e1a8b343805997fea5d7

Reply to this note

Please Login to reply.

Discussion

Unless I’m confusing it, one major downside of the current ZAPs NIP is that if I change my LNURL (lud06), it prevents unprocessed (or future processed) ZAPs from being validated.

How? Well, part of validating a ZAP is decoding your LNURL and doing a get request to look for the nostrPubkey JSON property. The sender of the 9735 event MUST match.

If you change your LNURL (like change wallets), that pubkey now won’t match.

This impacts client apps validating in real time as well. All previous ZAPs wouldn’t pass validation and only newer ones would validate successfully.