diff options
| author | Your Name <you@example.com> | 2026-05-17 04:37:15 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 04:37:15 +0530 |
| commit | cb4bd7d7c10cadcb43f82c09b13ffed744e541f7 (patch) | |
| tree | 1f01c31083e9252b7f41e89ba201373d6606a47d /main/lnurl_pay.h | |
| parent | 78dd599277b8e8b2ddc39a4ae710ec91d737272e (diff) | |
Phase 5: Lightning auto-payout with LNURL-pay and NUT-05 melt
- New lnurl_pay.c/h: LNURL-pay protocol (GET .well-known/lnurlp + callback)
- New lightning_payout.c/h: threshold-based auto-payout with multi-recipient split
- Extended nucula_wallet bridge with nucula_wallet_melt() (NUT-05)
- Config: payout section with multi-mint, multi-recipient, fee_tolerance
- Default: enabled, TollGate@coinos.io, min_payout=128, min_balance=64
- 18 new unit tests (all passing), 134 total
Diffstat (limited to 'main/lnurl_pay.h')
| -rw-r--r-- | main/lnurl_pay.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/lnurl_pay.h b/main/lnurl_pay.h new file mode 100644 index 0000000..8969e38 --- /dev/null +++ b/main/lnurl_pay.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #ifndef LNURL_PAY_H | ||
| 2 | #define LNURL_PAY_H | ||
| 3 | |||
| 4 | #include "esp_err.h" | ||
| 5 | #include <stdint.h> | ||
| 6 | #include <stddef.h> | ||
| 7 | |||
| 8 | #define LNURL_MAX_BOLT11_LEN 2048 | ||
| 9 | #define LNURL_MAX_ADDR_LEN 128 | ||
| 10 | |||
| 11 | esp_err_t lnurl_get_invoice(const char *lightning_address, uint64_t amount_sats, | ||
| 12 | char *bolt11_out, size_t bolt11_out_size); | ||
| 13 | |||
| 14 | #endif | ||