|
68 | 68 | //! (see the [`Keysend` feature assignment proposal](https://github.com/lightning/bolts/issues/605#issuecomment-606679798) for more information). |
69 | 69 | //! - `Trampoline` - supports receiving and forwarding Trampoline payments |
70 | 70 | //! (see the [`Trampoline` feature proposal](https://github.com/lightning/bolts/pull/836) for more information). |
| 71 | +//! - `DnsResolver` - supports resolving DNS names to TXT DNSSEC proofs for BIP 353 payments |
| 72 | +//! (see [bLIP 32](https://github.com/lightning/blips/blob/master/blip-0032.md) for more information). |
71 | 73 | //! |
72 | 74 | //! LDK knows about the following features, but does not support them: |
73 | 75 | //! - `AnchorsNonzeroFeeHtlcTx` - the initial version of anchor outputs, which was later found to be |
@@ -174,6 +176,10 @@ mod sealed { |
174 | 176 | ZeroConf | Keysend, |
175 | 177 | // Byte 7 |
176 | 178 | Trampoline, |
| 179 | + // Byte 8 - 31 |
| 180 | + ,,,,,,,,,,,,,,,,,,,,,,,, |
| 181 | + // Byte 32 |
| 182 | + DnsResolver, |
177 | 183 | ] |
178 | 184 | ); |
179 | 185 | define_context!(ChannelContext, []); |
@@ -562,6 +568,17 @@ mod sealed { |
562 | 568 | supports_trampoline_routing, |
563 | 569 | requires_trampoline_routing |
564 | 570 | ); |
| 571 | + define_feature!( |
| 572 | + 259, |
| 573 | + DnsResolver, |
| 574 | + [NodeContext], |
| 575 | + "Feature flags for DNS resolving.", |
| 576 | + set_dns_resolution_optional, |
| 577 | + set_dns_resolution_required, |
| 578 | + supports_dns_resolution, |
| 579 | + requires_dns_resolution |
| 580 | + ); |
| 581 | + |
565 | 582 | // Note: update the module-level docs when a new feature bit is added! |
566 | 583 |
|
567 | 584 | #[cfg(any(test, feature = "_test_utils"))] |
|
0 commit comments