From f537abd960d83f39bf4b1a66e76560136d8be199 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Thu, 18 Jul 2024 17:53:39 -0500 Subject: [PATCH] Add docs to Metadata::without_keys --- lightning/src/offers/signer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightning/src/offers/signer.rs b/lightning/src/offers/signer.rs index e161a7237..ca78bc422 100644 --- a/lightning/src/offers/signer.rs +++ b/lightning/src/offers/signer.rs @@ -106,6 +106,11 @@ impl Metadata { } } + /// Indicates that signing keys should not be derived when calling [`derive_from`]. Only + /// applicable to state [`Metadata::DerivedSigningPubkey`]; calling this in other states will + /// result in no change. + /// + /// [`derive_from`]: Self::derive_from pub fn without_keys(self) -> Self { match self { Metadata::Bytes(_) => self, -- 2.39.5