File tree Expand file tree Collapse file tree
lightning/src/blinded_path Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,6 +161,29 @@ impl BlindedPaymentPath {
161161 )
162162 }
163163
164+ /// Create a blinded path for a trampoline payment, to be forwarded along `intermediate_nodes`.
165+ #[ cfg( any( test, feature = "_test_utils" ) ) ]
166+ pub ( crate ) fn new_for_trampoline <
167+ ES : EntropySource ,
168+ T : secp256k1:: Signing + secp256k1:: Verification ,
169+ > (
170+ intermediate_nodes : & [ ForwardNode < TrampolineForwardTlvs > ] , payee_node_id : PublicKey ,
171+ local_node_receive_key : ReceiveAuthKey , payee_tlvs : ReceiveTlvs , htlc_maximum_msat : u64 ,
172+ min_final_cltv_expiry_delta : u16 , entropy_source : ES , secp_ctx : & Secp256k1 < T > ,
173+ ) -> Result < Self , ( ) > {
174+ Self :: new_inner (
175+ intermediate_nodes,
176+ payee_node_id,
177+ local_node_receive_key,
178+ & [ ] ,
179+ payee_tlvs,
180+ htlc_maximum_msat,
181+ min_final_cltv_expiry_delta,
182+ entropy_source,
183+ secp_ctx,
184+ )
185+ }
186+
164187 fn new_inner <
165188 F : ForwardTlvsInfo ,
166189 ES : EntropySource ,
You can’t perform that action at this time.
0 commit comments