]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Make BlindedPath::new_for_payment pub
authorValentine Wallace <vwallace@protonmail.com>
Thu, 9 Nov 2023 20:15:15 +0000 (15:15 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
Because we now support receiving to multi-hop blinded paths.

lightning/src/blinded_path/mod.rs

index d75b4f25b368481d8d8a08ca1966d416b0886745..b1fc9e1c0a443c36cbb5d3a772ac944a869d7268 100644 (file)
@@ -105,7 +105,7 @@ impl BlindedPath {
        ///
        /// [`ForwardTlvs`]: crate::blinded_path::payment::ForwardTlvs
        //  TODO: make all payloads the same size with padding + add dummy hops
-       pub(crate) fn new_for_payment<ES: EntropySource + ?Sized, T: secp256k1::Signing + secp256k1::Verification>(
+       pub fn new_for_payment<ES: EntropySource + ?Sized, T: secp256k1::Signing + secp256k1::Verification>(
                intermediate_nodes: &[payment::ForwardNode], payee_node_id: PublicKey,
                payee_tlvs: payment::ReceiveTlvs, htlc_maximum_msat: u64, entropy_source: &ES,
                secp_ctx: &Secp256k1<T>