From: Wilmer Paulino <9447167+wpaulino@users.noreply.github.com> Date: Fri, 7 Apr 2023 17:11:36 +0000 (-0700) Subject: Merge pull request #2162 from jkczyz/2023-04-invoice-hash X-Git-Tag: v0.0.115~31 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a5ecb851716bc0819586894232653ec4b5e2c67f;p=rust-lightning Merge pull request #2162 from jkczyz/2023-04-invoice-hash --- a5ecb851716bc0819586894232653ec4b5e2c67f diff --cc lightning-invoice/src/lib.rs index 593701cab,523777455..9ff22b8a3 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@@ -212,11 -214,11 +214,11 @@@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY /// # Type parameters /// The two parameters `D` and `H` signal if the builder already contains the correct amount of the /// given field: - /// * `D`: exactly one `Description` or `DescriptionHash` - /// * `H`: exactly one `PaymentHash` + /// * `D`: exactly one [`TaggedField::Description`] or [`TaggedField::DescriptionHash`] + /// * `H`: exactly one [`TaggedField::PaymentHash`] /// * `T`: the timestamp is set /// -/// (C-not exported) as we likely need to manually select one set of boolean type parameters. +/// This is not exported to bindings users as we likely need to manually select one set of boolean type parameters. #[derive(Eq, PartialEq, Debug, Clone)] pub struct InvoiceBuilder { currency: Currency, @@@ -295,9 -299,9 +299,9 @@@ pub struct RawInvoice pub data: RawDataPart, } - /// Data of the `RawInvoice` that is encoded in the human readable part + /// Data of the [`RawInvoice`] that is encoded in the human readable part. /// -/// (C-not exported) As we don't yet support `Option` +/// This is not exported to bindings users as we don't yet support `Option` #[derive(Eq, PartialEq, Debug, Clone, Hash)] pub struct RawHrp { /// The currency deferred from the 3rd and 4th character of the bech32 transaction @@@ -881,11 -874,11 +886,11 @@@ impl RawInvoice ) } - /// Signs the invoice using the supplied `sign_function`. This function MAY fail with an error - /// of type `E`. Since the signature of a `SignedRawInvoice` is not required to be valid there + /// Signs the invoice using the supplied `sign_method`. This function MAY fail with an error of + /// type `E`. Since the signature of a [`SignedRawInvoice`] is not required to be valid there /// are no constraints regarding the validity of the produced signature. /// - /// (C-not exported) As we don't currently support passing function pointers into methods + /// This is not exported to bindings users as we don't currently support passing function pointers into methods /// explicitly. pub fn sign(self, sign_method: F) -> Result where F: FnOnce(&Message) -> Result