@@ -52,7 +52,7 @@ impl BaseSign for CustomSigner {
52
52
fn get_per_commitment_point (
53
53
& self ,
54
54
idx : u64 ,
55
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
55
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
56
56
) -> secp256k1_zkp:: PublicKey {
57
57
self . in_memory_signer
58
58
. lock ( )
@@ -78,7 +78,7 @@ impl BaseSign for CustomSigner {
78
78
. validate_holder_commitment ( holder_tx, preimages)
79
79
}
80
80
81
- fn pubkeys ( & self ) -> & lightning :: ln :: chan_utils :: ChannelPublicKeys {
81
+ fn pubkeys ( & self ) -> & ChannelPublicKeys {
82
82
& self . channel_public_keys
83
83
}
84
84
@@ -90,7 +90,7 @@ impl BaseSign for CustomSigner {
90
90
& self ,
91
91
commitment_tx : & lightning:: ln:: chan_utils:: CommitmentTransaction ,
92
92
preimages : Vec < lightning:: ln:: PaymentPreimage > ,
93
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
93
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
94
94
) -> Result <
95
95
(
96
96
secp256k1_zkp:: ecdsa:: Signature ,
@@ -104,11 +104,7 @@ impl BaseSign for CustomSigner {
104
104
. sign_counterparty_commitment ( commitment_tx, preimages, secp_ctx)
105
105
}
106
106
107
- fn validate_counterparty_revocation (
108
- & self ,
109
- idx : u64 ,
110
- secret : & secp256k1_zkp:: SecretKey ,
111
- ) -> Result < ( ) , ( ) > {
107
+ fn validate_counterparty_revocation ( & self , idx : u64 , secret : & SecretKey ) -> Result < ( ) , ( ) > {
112
108
self . in_memory_signer
113
109
. lock ( )
114
110
. unwrap ( )
@@ -118,7 +114,7 @@ impl BaseSign for CustomSigner {
118
114
fn sign_holder_commitment_and_htlcs (
119
115
& self ,
120
116
commitment_tx : & lightning:: ln:: chan_utils:: HolderCommitmentTransaction ,
121
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
117
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
122
118
) -> Result <
123
119
(
124
120
secp256k1_zkp:: ecdsa:: Signature ,
@@ -134,11 +130,11 @@ impl BaseSign for CustomSigner {
134
130
135
131
fn sign_justice_revoked_output (
136
132
& self ,
137
- justice_tx : & bitcoin :: Transaction ,
133
+ justice_tx : & Transaction ,
138
134
input : usize ,
139
135
amount : u64 ,
140
- per_commitment_key : & secp256k1_zkp :: SecretKey ,
141
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
136
+ per_commitment_key : & SecretKey ,
137
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
142
138
) -> Result < secp256k1_zkp:: ecdsa:: Signature , ( ) > {
143
139
self . in_memory_signer
144
140
. lock ( )
@@ -148,12 +144,12 @@ impl BaseSign for CustomSigner {
148
144
149
145
fn sign_justice_revoked_htlc (
150
146
& self ,
151
- justice_tx : & bitcoin :: Transaction ,
147
+ justice_tx : & Transaction ,
152
148
input : usize ,
153
149
amount : u64 ,
154
- per_commitment_key : & secp256k1_zkp :: SecretKey ,
150
+ per_commitment_key : & SecretKey ,
155
151
htlc : & lightning:: ln:: chan_utils:: HTLCOutputInCommitment ,
156
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
152
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
157
153
) -> Result < secp256k1_zkp:: ecdsa:: Signature , ( ) > {
158
154
self . in_memory_signer
159
155
. lock ( )
@@ -170,12 +166,12 @@ impl BaseSign for CustomSigner {
170
166
171
167
fn sign_counterparty_htlc_transaction (
172
168
& self ,
173
- htlc_tx : & bitcoin :: Transaction ,
169
+ htlc_tx : & Transaction ,
174
170
input : usize ,
175
171
amount : u64 ,
176
172
per_commitment_point : & secp256k1_zkp:: PublicKey ,
177
173
htlc : & lightning:: ln:: chan_utils:: HTLCOutputInCommitment ,
178
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
174
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
179
175
) -> Result < secp256k1_zkp:: ecdsa:: Signature , ( ) > {
180
176
self . in_memory_signer
181
177
. lock ( )
@@ -193,7 +189,7 @@ impl BaseSign for CustomSigner {
193
189
fn sign_closing_transaction (
194
190
& self ,
195
191
closing_tx : & lightning:: ln:: chan_utils:: ClosingTransaction ,
196
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
192
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
197
193
) -> Result < secp256k1_zkp:: ecdsa:: Signature , ( ) > {
198
194
self . in_memory_signer
199
195
. lock ( )
@@ -204,7 +200,7 @@ impl BaseSign for CustomSigner {
204
200
fn sign_channel_announcement (
205
201
& self ,
206
202
msg : & lightning:: ln:: msgs:: UnsignedChannelAnnouncement ,
207
- secp_ctx : & secp256k1_zkp :: Secp256k1 < bitcoin:: secp256k1:: All > ,
203
+ secp_ctx : & Secp256k1 < bitcoin:: secp256k1:: All > ,
208
204
) -> Result <
209
205
(
210
206
secp256k1_zkp:: ecdsa:: Signature ,
@@ -244,7 +240,7 @@ impl BaseSign for CustomSigner {
244
240
impl ExtraSign for CustomSigner {
245
241
fn sign_with_fund_key_callback < F > ( & self , cb : & mut F )
246
242
where
247
- F : FnMut ( & secp256k1_zkp :: SecretKey ) ,
243
+ F : FnMut ( & SecretKey ) ,
248
244
{
249
245
self . in_memory_signer
250
246
. lock ( )
0 commit comments