|
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
|
@@ -177,6 +179,10 @@ mod sealed {
|
177 | 179 | ZeroConf | Keysend,
|
178 | 180 | // Byte 7
|
179 | 181 | Trampoline,
|
| 182 | + // Byte 8 - 31 |
| 183 | + ,,,,,,,,,,,,,,,,,,,,,,,, |
| 184 | + // Byte 32 |
| 185 | + DnsResolver, |
180 | 186 | ]
|
181 | 187 | );
|
182 | 188 | define_context!(ChannelContext, []);
|
@@ -565,6 +571,17 @@ mod sealed {
|
565 | 571 | supports_trampoline_routing,
|
566 | 572 | requires_trampoline_routing
|
567 | 573 | );
|
| 574 | + define_feature!( |
| 575 | + 259, |
| 576 | + DnsResolver, |
| 577 | + [NodeContext], |
| 578 | + "Feature flags for DNS resolving.", |
| 579 | + set_dns_resolution_optional, |
| 580 | + set_dns_resolution_required, |
| 581 | + supports_dns_resolution, |
| 582 | + requires_dns_resolution |
| 583 | + ); |
| 584 | + |
568 | 585 | // Note: update the module-level docs when a new feature bit is added!
|
569 | 586 |
|
570 | 587 | #[cfg(any(test, feature = "_test_utils"))]
|
|
0 commit comments