4 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
459a5728db multi: add new strict-verify CLI option to control invoice usage
In this commit, we add a new CLI argument that allows a user to control
if we use strict verification or not. Strict verification relies on
checking the actual invoice state against lnd, and requires more state
for the Aperture server.

When strict verification isn't on, we rely only on the preimage payment
hash relationship. Namely that the only way a user can obtain the
preimage is to pay the invoice, and as we check the HMAC on the
macaroon, we know that we created it with an invoice obtained from lnd.
2025-05-15 14:59:57 -07:00
Andras Banki-Horvath
94e80ab128 challenger: configurable invoice query batch size with sane default 2025-01-16 09:41:15 +01:00
Andras Banki-Horvath
8ec6c284ba challenger: paginage ListInvoices to avoid resource exhaustion 2025-01-13 15:58:25 +01:00
positiveblue
4e81f5ddb5 challenger: move challenger logic to its own package
The new package contains a new interface (`Challenger`) that any
new challenger must implement.

Because aperture uses the new interface instead of using directly the
`LndChallenger` struct I added the `Stop()` method to the
`mint.Challenger`. Instead of also adding the `Start()` method the constructor
returns a Challenger already "started".
2023-06-30 15:22:28 -07:00