12 Commits

Author SHA1 Message Date
Slyghtning
4093998f85 Merge pull request #170 from shaojunda/challenger/start-call
challenger: remove redundant Start() call in NewLNCChallenger
2025-08-26 16:01:18 +02:00
Slyghtning
536bc0d241 linter: fix lint issues after linter v2 update 2025-08-20 14:42:42 +02:00
Slyghtning
6ee08290c5 challanger: cancel inv context when strictly verifying inv states 2025-05-27 20:30:18 +02:00
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
shaojunda
97c4c4b67d challenger: remove redundant Start() call in NewLNCChallenger 2025-04-16 11:17:21 +08:00
Elle Mouton
90941dc033 multi: update btclog, lnd and lndclient deps
Update the deps so that structured logging is available in aperture.
2025-03-05 11:12:29 +02: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
Boris Nagaev
a4431801ef multi: replace LSAT with L402
auth: LsatAuthenticator -> L402Authenticator
sed -i 's/LsatAuthenticator/L402Authenticator/g' aperture.go auth/authenticator.go auth/authenticator_test.go

rename package lsat to l402
git mv lsat/ l402
sed 's@aperture/lsat@aperture/l402@g' -i `git grep -l aperture/lsat`
sed -i 's@package lsat@package l402@' `git grep -l 'package lsat'`
sed -i 's@lsat\.@l402.@g' -i `git grep -l 'lsat\.'`
sed 's@l402.Id@lsat.Id@' -i mint/mint_test.go

replace lsat with l402 in the code
sed 's@lsat@l402@' -i mint/mint_test.go
sed 's@Lsat@L402@' -i l402/client_interceptor.go
sed 's@lsatstore@l402store@' -i l402/store_test.go

replace LSAT to L402 in comments
sed '/\/\//s@LSAT@L402@g' -i `git grep -l '//.*LSAT'`

replace LSAT -> L402 in the code, skip when a string starts with it
sed 's@\([^"/]\)LSAT@\1L402@g' -i `git grep -l LSAT`
2024-04-16 19:33:03 -03:00
Olaoluwa Osuntokun
599eb2ee99 challenger: skip trying to load+parse AMP invoices
AMP invoiecs don't have a payment hash, as it's based on payment addr
and set id.
2023-07-04 17:32:38 -07:00
positiveblue
a6ff4a9e7b challenger: add LNCChallenger 2023-06-30 15:22:28 -07: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