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 @@ -142,13 +142,12 @@ impl BlindedMessagePath {
142
142
/// introduction node.
143
143
///
144
144
/// Will only modify `self` when returning `Ok`.
145
- pub fn advance_path_by_one < NS : Deref , NL : Deref , T > (
145
+ pub fn advance_path_by_one < NS : Deref , NL : Deref , T : secp256k1 :: Signing + secp256k1 :: Verification > (
146
146
& mut self , node_signer : & NS , node_id_lookup : & NL , secp_ctx : & Secp256k1 < T >
147
147
) -> Result < ( ) , ( ) >
148
148
where
149
149
NS :: Target : NodeSigner ,
150
150
NL :: Target : NodeIdLookUp ,
151
- T : secp256k1:: Signing + secp256k1:: Verification ,
152
151
{
153
152
let control_tlvs_ss = node_signer. ecdh ( Recipient :: Node , & self . 0 . blinding_point , None ) ?;
154
153
let rho = onion_utils:: gen_rho_from_shared_secret ( & control_tlvs_ss. secret_bytes ( ) ) ;
Original file line number Diff line number Diff line change @@ -157,13 +157,12 @@ impl BlindedPaymentPath {
157
157
/// introduction node.
158
158
///
159
159
/// Will only modify `self` when returning `Ok`.
160
- pub fn advance_path_by_one < NS : Deref , NL : Deref , T > (
160
+ pub fn advance_path_by_one < NS : Deref , NL : Deref , T : secp256k1 :: Signing + secp256k1 :: Verification > (
161
161
& mut self , node_signer : & NS , node_id_lookup : & NL , secp_ctx : & Secp256k1 < T >
162
162
) -> Result < ( ) , ( ) >
163
163
where
164
164
NS :: Target : NodeSigner ,
165
165
NL :: Target : NodeIdLookUp ,
166
- T : secp256k1:: Signing + secp256k1:: Verification ,
167
166
{
168
167
let control_tlvs_ss = node_signer. ecdh ( Recipient :: Node , & self . inner_path . blinding_point , None ) ?;
169
168
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