stacker.news/fragments
ekzyis fd8510d59f Use payment hash instead of invoice id as proof of payment
Our invoice IDs can be enumerated.
So there is a - even though very rare - chance that an attacker could find a paid invoice which is not used yet and use it for himself.
Random payment hashes prevent this.

Also, since we delete invoices after use, using database IDs as proof of payments are not suitable.
If a user tells us an invoice ID after we deleted it, we can no longer tell if the invoice was paid or not since the LN node only knows about payment hashes but nothing about the database IDs.
2023-07-30 23:45:07 +02:00
..
comments.js Add anon zaps 2023-07-30 23:45:07 +02:00
invites.js hide cowboy hat setting 2023-05-01 16:52:02 -05:00
items.js Add anon zaps 2023-07-30 23:45:07 +02:00
notifications.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
price.js Add proxy with cache for coinbase API requests (#226) 2023-01-27 17:20:33 -06:00
subs.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
users.js fix nested comment sorting 2023-07-25 19:45:35 -05:00
wallet.js Use payment hash instead of invoice id as proof of payment 2023-07-30 23:45:07 +02:00