]> 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, 8 Oct 2024 19:47:54 +0000 (19:47 +0000)
commitb527b4d6b4769c7d294f7f43d2cc5ce95796baad
treef7d64fc2c524c3b8bb26ea0a10ffd6f4ab5b0e1a
parente4ec9176c5ac0f79102dfb8002ef401fa11d39b7
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