File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
lightning/src/blinded_path Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,12 @@ impl BlindedMessagePath {
143
143
/// introduction node.
144
144
///
145
145
/// Will only modify `self` when returning `Ok`.
146
- pub fn advance_path_by_one < NS : Deref , NL : Deref , T > (
146
+ pub fn advance_path_by_one < NS : Deref , NL : Deref , T : secp256k1 :: Signing + secp256k1 :: Verification > (
147
147
& mut self , node_signer : & NS , node_id_lookup : & NL , secp_ctx : & Secp256k1 < T >
148
148
) -> Result < ( ) , ( ) >
149
149
where
150
150
NS :: Target : NodeSigner ,
151
151
NL :: Target : NodeIdLookUp ,
152
- T : secp256k1:: Signing + secp256k1:: Verification ,
153
152
{
154
153
let control_tlvs_ss = node_signer. ecdh ( Recipient :: Node , & self . 0 . blinding_point , None ) ?;
155
154
let rho = onion_utils:: gen_rho_from_shared_secret ( & control_tlvs_ss. secret_bytes ( ) ) ;
Original file line number Diff line number Diff line change @@ -162,13 +162,12 @@ impl BlindedPaymentPath {
162
162
/// introduction node.
163
163
///
164
164
/// Will only modify `self` when returning `Ok`.
165
- pub fn advance_path_by_one < NS : Deref , NL : Deref , T > (
165
+ pub fn advance_path_by_one < NS : Deref , NL : Deref , T : secp256k1 :: Signing + secp256k1 :: Verification > (
166
166
& mut self , node_signer : & NS , node_id_lookup : & NL , secp_ctx : & Secp256k1 < T >
167
167
) -> Result < ( ) , ( ) >
168
168
where
169
169
NS :: Target : NodeSigner ,
170
170
NL :: Target : NodeIdLookUp ,
171
- T : secp256k1:: Signing + secp256k1:: Verification ,
172
171
{
173
172
let control_tlvs_ss = node_signer. ecdh ( Recipient :: Node , & self . inner_path . blinding_point , None ) ?;
174
173
let rho = onion_utils:: gen_rho_from_shared_secret ( & control_tlvs_ss. secret_bytes ( ) ) ;
You can’t perform that action at this time.
0 commit comments