]> git.bitcoin.ninja Git - rust-lightning/commit
Skip the implicit trailing `.` in `HumanReadableName`'s domain
authorMatt Corallo <git@bluematt.me>
Tue, 1 Oct 2024 18:06:19 +0000 (18:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 12 Nov 2024 15:53:12 +0000 (15:53 +0000)
commita39e274e3df8cd0790d45de14f19aa83a2f1f19f
tree99b3475f42374d1ddc036c0ba21e9d8eae00bd2c
parentb0bd4371d989722aa38ddfc2f35db8922e3304bb
Skip the implicit trailing `.` in `HumanReadableName`'s domain

Domain names implicitly have a trailing `.`, which we require in
bLIP 32 but generally shouldn't be exposing to the user in
`HumanReadableName`s (after all, they're human-readable). Here we
make sure the trailing `.` is dropped in `HumanReadableName`s
before we re-add them when building the bLIP 32 messages.
lightning/src/onion_message/dns_resolution.rs