What is Nostr?
brugeman
npub1xdt…ntxy
2025-01-20 20:10:29
in reply to nevent1q…w6a7

brugeman on Nostr: Seems like LN invoices included by Primal in zap receipts have empty payment_hash ...

Seems like LN invoices included by Primal in zap receipts have empty payment_hash field. The invoice parser I use discards those invoices as invalid. I guess I'll have to patch it, as this is an optional field for zap verification purposes - they generate a proper invoice for the actual payment.

They also strip the description/commit hash from the invoice in zap receipts, which seems to go against nip57: "SHA256(description) MUST match the description hash in the bolt11 invoice." It looks like I will have to strip this verification logic on my end since in practice many wallets violate nip57 anyway and everyone is just trusting the wallets.

cc miljan (nprofile…u6d7)
Author Public Key
npub1xdtducdnjerex88gkg2qk2atsdlqsyxqaag4h05jmcpyspqt30wscmntxy