Skip to content

Commit 53934a2

Browse files
committed
Use inline bounds for secp contexts, rather than where clauses
The bindings really should support this, but currently they don't and its late enough in the release cycle I don't want to try to fix that.
1 parent d7e4a44 commit 53934a2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lightning/src/blinded_path/message.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,12 @@ impl BlindedMessagePath {
176176
/// introduction node.
177177
///
178178
/// Will only modify `self` when returning `Ok`.
179-
pub fn advance_path_by_one<NS: Deref, NL: Deref, T>(
179+
pub fn advance_path_by_one<NS: Deref, NL: Deref, T: secp256k1::Signing + secp256k1::Verification>(
180180
&mut self, node_signer: &NS, node_id_lookup: &NL, secp_ctx: &Secp256k1<T>,
181181
) -> Result<(), ()>
182182
where
183183
NS::Target: NodeSigner,
184184
NL::Target: NodeIdLookUp,
185-
T: secp256k1::Signing + secp256k1::Verification,
186185
{
187186
let control_tlvs_ss = node_signer.ecdh(Recipient::Node, &self.0.blinding_point, None)?;
188187
let rho = onion_utils::gen_rho_from_shared_secret(&control_tlvs_ss.secret_bytes());

lightning/src/blinded_path/payment.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,12 @@ impl BlindedPaymentPath {
185185
/// introduction node.
186186
///
187187
/// Will only modify `self` when returning `Ok`.
188-
pub fn advance_path_by_one<NS: Deref, NL: Deref, T>(
188+
pub fn advance_path_by_one<NS: Deref, NL: Deref, T: secp256k1::Signing + secp256k1::Verification>(
189189
&mut self, node_signer: &NS, node_id_lookup: &NL, secp_ctx: &Secp256k1<T>,
190190
) -> Result<(), ()>
191191
where
192192
NS::Target: NodeSigner,
193193
NL::Target: NodeIdLookUp,
194-
T: secp256k1::Signing + secp256k1::Verification,
195194
{
196195
match self.decrypt_intro_payload::<NS>(node_signer) {
197196
Ok((

0 commit comments

Comments
 (0)